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-2025.6.0-cp312-abi3-win_amd64.whl (775.2 kB view details)

Uploaded CPython 3.12+Windows x86-64

advent_of_code-2025.6.0-cp312-abi3-musllinux_1_2_x86_64.whl (961.1 kB view details)

Uploaded CPython 3.12+musllinux: musl 1.2+ x86-64

advent_of_code-2025.6.0-cp312-abi3-manylinux_2_28_x86_64.whl (888.9 kB view details)

Uploaded CPython 3.12+manylinux: glibc 2.28+ x86-64

advent_of_code-2025.6.0-cp312-abi3-macosx_10_13_universal2.whl (1.6 MB view details)

Uploaded CPython 3.12+macOS 10.13+ universal2 (ARM64, x86-64)

File details

Details for the file advent_of_code-2025.6.0-cp312-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for advent_of_code-2025.6.0-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 c2c9c14b7f00c6a07a6966885bacbe3db3ad8ce4b276d3f9c9aa5ede6172a34c
MD5 4d064537779a293358dd10e955c337af
BLAKE2b-256 ce4d614540244edbec4c59341bb3adbf447b39499da2c7c5d9e30ea159b3ae5f

See more details on using hashes here.

File details

Details for the file advent_of_code-2025.6.0-cp312-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for advent_of_code-2025.6.0-cp312-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 8a7e5cb452ef25ccc283f8b83bdd9ddf5c6e94d346b387b55846b98a52ba3674
MD5 c3e13a42c34e00b47269b72eebe843ff
BLAKE2b-256 7f82820af75cf0b58d7a4cffc2e0bfcc72074ed881f70e2f6c58f559a9813fd2

See more details on using hashes here.

File details

Details for the file advent_of_code-2025.6.0-cp312-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for advent_of_code-2025.6.0-cp312-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d478e9d0d3a54d0cc8bb954eb38d4aa82f5c9f2a55501dbb65d2fd56d7bc9394
MD5 2ad1fb78c5b1ca7cd44fde74cd5a8767
BLAKE2b-256 d5aff934f0bfc139e0875f3dffc77086eeef52be66d054c7e97c576cad66747b

See more details on using hashes here.

File details

Details for the file advent_of_code-2025.6.0-cp312-abi3-macosx_10_13_universal2.whl.

File metadata

File hashes

Hashes for advent_of_code-2025.6.0-cp312-abi3-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 572c40b95b5550787bae6a17fd85757d24bee1f29a8979c9dd8809b9c1ef3b95
MD5 4eac4fa6f92d2a0aaccdbcbf20af6275
BLAKE2b-256 2d33ba78ce064938274ad487ad5652e24fd8bdd0299a7e03bf11669d901d6406

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