advent-of-code
What it is and what it does
This package bundles pre-computed solutions to Advent of Code puzzles, implemented in Rust and exposed to Python via PyO3. It exports a single `solve(year, day, part, input)` function that takes a puzzle year, day, part number, and input string, then returns the answer as a string. It also provides a command-line interface (`advent-of-code-py`) for the same purpose.
The package is useful if you want to quickly retrieve answers without solving puzzles yourself, verify your own solutions, or integrate AoC answers into other tools. It has no runtime dependencies and is actively maintained. Installation uses pre-compiled wheels across major platforms with medium friction.
Use it for:
- Look up solutions to Advent of Code puzzles without solving them manually
- Verify your own puzzle solutions against pre-computed answers
- Build tools or scripts that need quick access to AoC answers for reference or testing
- Use as a CLI tool to fetch answers directly from the command line
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides pre-computed solutions to Advent of Code puzzles as a Python library and CLI tool, with Rust-backed implementations exposed via PyO3.
Yes, if you need quick access to pre-computed Advent of Code solutions for reference, verification, or integration into other tools. The package is actively maintained, has no runtime dependencies, and works across major platforms. Install friction is moderate due to compiled wheels, but that is a one-time cost. Not suitable if you want to solve puzzles yourself.
Install
advent-of-code on PyPI
pip
pip install advent-of-codeuv
uv add advent-of-codepoetry
poetry add advent-of-codeInstalling advent-of-code
Before you install
Medium install friction due to compiled wheels (cp312-abi3 binaries for macOS, Linux, Windows). Active maintenance with recent commits; last release 160 days ago and repository not archived.
Quickstart
pip install advent-of-code
from advent_of_code import solve
result = solve(2019, 1, 1, "14")
print(result) # "2"
Compiled wheels (cp312-abi3) limit platform support to macOS, Linux, and Windows; exact Python version requirement unspecified in metadata.
Verify before relying
- Which Advent of Code years are covered by the package
- Whether the solve() function requires exact input formatting or handles whitespace/line-ending variations
- Performance characteristics for large or complex puzzle inputs
- Minimum Python version requirement (wheels suggest 3.12+ but requires_python is unspecified)
Package facts
| License | not declared (unclear) |
| Python support | not specified |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 160 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 85,349/month — #13,929 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: advent_of_code-2025.6.0-cp312-abi3-macosx_10_13_universal2.whl; advent_of_code-2025.6.0-cp312-abi3-manylinux_2_28_x86_64.whl; advent_of_code-2025.6.0-cp312-abi3-musllinux_1_2_x86_64.whl; advent_of_code-2025.6.0-cp312-abi3-win_amd64.whl
Tags
More Utilities packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
charset-normalizerDetects and normalizes text encoding from…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
PygmentsPygments is a syntax highlighter that colorizes…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
clingoClingo is a Python binding to the clingo Answer…
permissive · top 15,000 on PyPI
anticaptchaofficialSolves CAPTCHAs and related challenges (image…
permissive · top 15,000 on PyPI
setuptools-rustsetuptools-rust is a setuptools plugin that…
permissive · top 5,000 on PyPI
regressProvides Python bindings to the Rust regress…
permissive · top 5,000 on PyPI
chia-puzzles-pyProvides Python bindings to the standard Chia…
unclear · top 15,000 on PyPI
rustworkxA high-performance graph library for Python,…
permissive · top 5,000 on PyPI
cbcboxcbcbox is a self-contained Python distribution…
copyleft · top 15,000 on PyPI
retworkxA deprecated package name for rustworkx, a…
permissive · top 15,000 on PyPI
trianglesolverSolves for unknown sides and angles of a…
permissive · top 15,000 on PyPI
pycosatProvides efficient Python bindings to PicoSAT,…
permissive · top 15,000 on PyPI