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-2022.0.52-cp39-abi3-win_amd64.whl (662.7 kB view details)

Uploaded CPython 3.9+Windows x86-64

advent_of_code-2022.0.52-cp39-abi3-musllinux_1_1_x86_64.whl (757.3 kB view details)

Uploaded CPython 3.9+musllinux: musl 1.1+ x86-64

advent_of_code-2022.0.52-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (724.7 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ x86-64

advent_of_code-2022.0.52-cp39-abi3-macosx_10_9_universal2.whl (1.3 MB view details)

Uploaded CPython 3.9+macOS 10.9+ universal2 (ARM64, x86-64)

File details

Details for the file advent_of_code-2022.0.52-cp39-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for advent_of_code-2022.0.52-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 67a2c8d0fe582d7662b2395732a4ea00dd3d81d2be4d15c60b889b466d7f2767
MD5 62b8b5759f08e62572514bca379a326c
BLAKE2b-256 6b17db36ed15281447eb43fb13840be7ad48975ce875be0aced6255619327f27

See more details on using hashes here.

File details

Details for the file advent_of_code-2022.0.52-cp39-abi3-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for advent_of_code-2022.0.52-cp39-abi3-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 55872dc568af5c4f03681b1df969916bd6a173fba5b32ee162f42751ab02d38b
MD5 598a295a51c44f6757da586960aaf491
BLAKE2b-256 96f26afa7229ef5a09acbb56346b6b9fc851445010011c18c90047a09d52ddd6

See more details on using hashes here.

File details

Details for the file advent_of_code-2022.0.52-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for advent_of_code-2022.0.52-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e5ba806e256bed4f9e2c3beedb25b6b43734bc7dd94c335eea15155d4fe895ce
MD5 8bf13d560458e5caa028723e14829fd3
BLAKE2b-256 e9cb7459bc667288ba7c615a8c8493502a748f5866f50066a4ca69f7f07a02e2

See more details on using hashes here.

File details

Details for the file advent_of_code-2022.0.52-cp39-abi3-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for advent_of_code-2022.0.52-cp39-abi3-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 1236767a3914c24c52da287e2655c60775e65e45ac521207ee6df2da0f8da27c
MD5 438fba9b133fdd788b2e6b53a44e6a59
BLAKE2b-256 40f9313fb6cdbd8ef31e188a4406eb5e29a5e3d803ea730797a478ba2712bba5

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