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

Uploaded CPython 3.9+Windows x86-64

advent_of_code-2022.0.10-cp39-abi3-musllinux_1_1_x86_64.whl (702.9 kB view details)

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

advent_of_code-2022.0.10-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (670.4 kB view details)

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

advent_of_code-2022.0.10-cp39-abi3-macosx_10_9_universal2.whl (1.2 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.10-cp39-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for advent_of_code-2022.0.10-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 fab5cd0f9503de1bbf7d58a23b4270ac1af76630f7bb18c240f8ef3b5be26970
MD5 d035c29321bccd0c7dc1696ad5ee7554
BLAKE2b-256 50cd4e67bafbecf2e8a934fb4ca30166d092b439486b181ddc41cb7c814fdc9b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for advent_of_code-2022.0.10-cp39-abi3-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 a9bd74df97b905bfd00ad1299a60af474734744232419879864e737e2edfd698
MD5 cd6ec9c27832c57c60af47d2aeecb1a8
BLAKE2b-256 39010426f0fa010187e458a09ce4d513f213fc505579a066980ce447c8bc2039

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for advent_of_code-2022.0.10-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3c06c6446cdfe45c8e7333640ab78ceffb63c2d06984823e00857cacf14a356e
MD5 8d1634854068810a7a335c86b7fb0a1d
BLAKE2b-256 c31772bd9cdd534d91a9686e9868b0f4c5864cd826740cddfb17e9dff03dc487

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for advent_of_code-2022.0.10-cp39-abi3-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 4daf0bd0eeac3fc162feb37daf1b34e50ba310da1fe7a53e435da9ab8010916a
MD5 45e7c57bc7199f02c86949904cd946d3
BLAKE2b-256 af2ffd7f1cf7389b27ba99236b24772f2857b76a377c83c8c03391bee1c27437

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