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
Metadata
Release files for advent-of-code 2025.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| advent_of_code-2025.6.0-cp312-abi3-win_amd64.whl | CPython 3.12 | abi3 | Windows x86-64 | Details |
| advent_of_code-2025.6.0-cp312-abi3-musllinux_1_2_x86_64.whl | CPython 3.12 | abi3 | Linux musl 1.2+ x86-64 | Details |
| advent_of_code-2025.6.0-cp312-abi3-manylinux_2_28_x86_64.whl | CPython 3.12 | abi3 | Linux glibc 2.28+ x86-64 | Details |
| advent_of_code-2025.6.0-cp312-abi3-macosx_10_13_universal2.whl | CPython 3.12 | abi3 | macOS 10.13+ universal2 (ARM64, x86-64) | Details |
Total release size: 4.2 MB
Release files / advent_of_code-2025.6.0-cp312-abi3-win_amd64.whl
| Download URL | advent_of_code-2025.6.0-cp312-abi3-win_amd64.whl |
|---|---|
| Size | 775.2 kB |
| Tags | CPython 3.12 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
c2c9c14b7f00c6a07a6966885bacbe3db3ad8ce4b276d3f9c9aa5ede6172a34c
|
|
BLAKE2b-256 checksum How to use checksums |
ce4d614540244edbec4c59341bb3adbf447b39499da2c7c5d9e30ea159b3ae5f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / advent_of_code-2025.6.0-cp312-abi3-musllinux_1_2_x86_64.whl
| Download URL | advent_of_code-2025.6.0-cp312-abi3-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 961.1 kB |
| Tags | CPython 3.12 Linux musl 1.2+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
8a7e5cb452ef25ccc283f8b83bdd9ddf5c6e94d346b387b55846b98a52ba3674
|
|
BLAKE2b-256 checksum How to use checksums |
7f82820af75cf0b58d7a4cffc2e0bfcc72074ed881f70e2f6c58f559a9813fd2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / advent_of_code-2025.6.0-cp312-abi3-manylinux_2_28_x86_64.whl
| Download URL | advent_of_code-2025.6.0-cp312-abi3-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 888.9 kB |
| Tags | CPython 3.12 Linux glibc 2.28+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
d478e9d0d3a54d0cc8bb954eb38d4aa82f5c9f2a55501dbb65d2fd56d7bc9394
|
|
BLAKE2b-256 checksum How to use checksums |
d5aff934f0bfc139e0875f3dffc77086eeef52be66d054c7e97c576cad66747b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / advent_of_code-2025.6.0-cp312-abi3-macosx_10_13_universal2.whl
| Download URL | advent_of_code-2025.6.0-cp312-abi3-macosx_10_13_universal2.whl |
|---|---|
| Size | 1.6 MB |
| Tags | CPython 3.12 abi3 macOS 10.13+ universal2 (ARM64, x86-64) |
|
SHA-256 checksum How to use checksums |
572c40b95b5550787bae6a17fd85757d24bee1f29a8979c9dd8809b9c1ef3b95
|
|
BLAKE2b-256 checksum How to use checksums |
2d33ba78ce064938274ad487ad5652e24fd8bdd0299a7e03bf11669d901d6406
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|