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

Uploaded CPython 3.9+Windows x86-64

advent_of_code-2022.0.32-cp39-abi3-musllinux_1_1_x86_64.whl (755.8 kB view details)

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

advent_of_code-2022.0.32-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (722.9 kB view details)

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

advent_of_code-2022.0.32-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.32-cp39-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for advent_of_code-2022.0.32-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 83cddde48766a0388ea477d148b837caa1025e075a4d06462914f8449a9ff78f
MD5 d25d6940418977c4d011ea822bc6e228
BLAKE2b-256 7e3492e13c3ba7e51294d4a33f8e6e06dd9a96d7dcbb2ea7b613552bc3755753

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for advent_of_code-2022.0.32-cp39-abi3-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 2c99b9a914124bc47b52f86318a7a46e52c3c130d964a599771b2c76cdc37fba
MD5 958d8d1d7a27c94399e5437aa9eb7e7e
BLAKE2b-256 dc597e75e4916d77fa73d9585ce49f07f8c21be041d688905110d559133e674d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for advent_of_code-2022.0.32-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5a56ee0bc3d4d2c9fe44d0f133147cb876dfe91671f52bab8255cb411bfa9fde
MD5 460118042aef7bd522d793bf50c06657
BLAKE2b-256 74e6763a341ec0332704962f7a11a45b75b788f6ca6f320b27893f747dacb877

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for advent_of_code-2022.0.32-cp39-abi3-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 5163a13008680e30081aa4179f3f52423e4a54a5dfde2db82cfba882d45ac110
MD5 800ee7776b84dfc8227862121db461ff
BLAKE2b-256 6c7e2de03be47dedbb9aa04a1f75b8cd4e850efe09be7bf843d0905560c7fd33

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