Skip to main content

No project description provided

Project description

PyPi

advent-of-code-python

Solutions to Advent of Code implemented in Rust and exposed to Python using PyO3.

Usage as a library

Add dependency:

pip install --upgrade advent-of-code

The advent_of_code package exports a single solve function with the following signature:

def solve(year: int, day: int, part: int, input: str) -> str

Examples:

from advent_of_code import solve

assert solve(2019, 1, 1, "14") == "2"
assert solve(2019, 3, 2, "R8,U5,L5,D3\nU7,R6,D4,L4") == "30"

Usage as a command line tool

$ pip install --upgrade advent-of-code
$ echo 14 | advent-of-code-py 2019 1 1
2

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

advent_of_code-2022.0.27-cp39-abi3-win_amd64.whl (654.2 kB view details)

Uploaded CPython 3.9+Windows x86-64

advent_of_code-2022.0.27-cp39-abi3-musllinux_1_1_x86_64.whl (748.0 kB view details)

Uploaded CPython 3.9+musllinux: musl 1.1+ x86-64

advent_of_code-2022.0.27-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (716.2 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ x86-64

advent_of_code-2022.0.27-cp39-abi3-macosx_10_9_universal2.whl (1.3 MB view details)

Uploaded CPython 3.9+macOS 10.9+ universal2 (ARM64, x86-64)

File details

Details for the file advent_of_code-2022.0.27-cp39-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for advent_of_code-2022.0.27-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 4d8e76cf0918633e46d3cb2599ca0cc1ed09c268258b4d99eb833d0c771ec34c
MD5 1018421a00642917d6531ce1336702b1
BLAKE2b-256 b7e839c1aed84eadb23bd510cee528aca43fd1329f5e2d85871e6a17041851a6

See more details on using hashes here.

File details

Details for the file advent_of_code-2022.0.27-cp39-abi3-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for advent_of_code-2022.0.27-cp39-abi3-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 cc60ffbe6cd1f260b389df6f945b394520db29a391cab2859ab2ada12a196761
MD5 8ffdca51166d8a2cd7a7fffe64c1dfe1
BLAKE2b-256 7ae8de2790188a69821935e129b093b39f1e30e5ef8eb403007d5811e0c44758

See more details on using hashes here.

File details

Details for the file advent_of_code-2022.0.27-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for advent_of_code-2022.0.27-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ea2b6f7080e6f51a9ec1a009acea6605ab2cbed043325123edc18a0fd0311807
MD5 9c579ba4d682a3e3783a133cb9c3ae1f
BLAKE2b-256 393dea7a2f288957dcc543f2bbf5cbf6e83271537e06ca837c5e552e16e143c2

See more details on using hashes here.

File details

Details for the file advent_of_code-2022.0.27-cp39-abi3-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for advent_of_code-2022.0.27-cp39-abi3-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 059888b7ead93a41ac56b223ce03f790361942647f1a269ce58691e688e929a6
MD5 b80d8518a778a4716d3a75e941b7e9d4
BLAKE2b-256 710ef6317ed5fafbde18282b1366e76650039bebba5a4acbbd1b884a8025611e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page