skillfed

advent-of-code

advent-of-code v2025.6.0 85.3K downloads/30d#13,929 on PyPI50
License unclear Active released

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-code

uv

uv add advent-of-code

poetry

poetry add advent-of-code

Installing 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

advent of code solveradvent of code solutions libraryaoc puzzle solver pythonadvent of code cli toolpre-computed aoc answers
puzzle-solvingadvent-of-code

More Utilities packages