Catalog PyPI
Back to packageRELEASE DETAILS

2025.6.0

PyPI

advent-of-code

[![PyPi](https://img.shields.io/pypi/v/advent-of-code.svg)](https://pypi.org/project/advent-of-code/) # advent-of-code-python Solutions to [Advent of Code](https://adventofcode.com/) implemented in Rust and exposed to Python using [PyO3](https://pyo3.rs/). # Usage as a library Add dependency: ```sh pip install --upgrade advent-of-code ``` The `advent_of_code` package exports a single `solve` function with the following signature: ```python def solve(year: int, day: int, part: int, input: str) -> str ``` Examples: ```python 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 ```s

Published7 Mar 2026
Direct dependencies0
Transitive dependenciesNot calculated

README

Version 2025.6.0 documentation

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

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 0

Native requirements
0 direct targetsNot calculated transitive count
No declared dependencies in this collected response

Declarations describe requirements; they are not a resolved dependency graph.

Distribution files

4 collected
advent_of_code-2025.6.0-cp312-abi3-macosx_10_13_universal2.whl

bdist_wheel · 1,582.9 KB · Python cp312

Source file
advent_of_code-2025.6.0-cp312-abi3-manylinux_2_28_x86_64.whl

bdist_wheel · 868.02 KB · Python cp312

Source file
advent_of_code-2025.6.0-cp312-abi3-musllinux_1_2_x86_64.whl

bdist_wheel · 938.54 KB · Python cp312

Source file
advent_of_code-2025.6.0-cp312-abi3-win_amd64.whl

bdist_wheel · 757.08 KB · Python cp312

Source file

Repository

PENDING
fornwall/advent-of-code

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 20:01 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:df87e660c524fe893d145e06c36d10029b0baecb158e67c94130dee7018c1007

Other collected versions

View all collected versions →