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

Uploaded CPython 3.9+Windows x86-64

advent_of_code-2022.0.49-cp39-abi3-musllinux_1_1_x86_64.whl (762.9 kB view details)

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

advent_of_code-2022.0.49-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (730.2 kB view details)

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

advent_of_code-2022.0.49-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.49-cp39-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for advent_of_code-2022.0.49-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 e41f9ea32f725db5d072fa552654525a1d63117e61ecf1caf5a9bff0ceed29aa
MD5 589afaf5b9d10b9f4a11e130a84e0ee9
BLAKE2b-256 12779abf3e6517542b929c644b97a533a941480ad3c9c334659cf26eae297f58

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for advent_of_code-2022.0.49-cp39-abi3-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 d132c3b54fcf6d538af137dc2fc34886569d71124392f38f30a790cd9786c37b
MD5 cb77b47f50043f33491df8fb59cd8ab1
BLAKE2b-256 cea0ca45fcbe9a545d994cd05d86f2e6c18f823fddbd5b8eaec5b4b448fdf5cd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for advent_of_code-2022.0.49-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 59a0e6b4420b344e6e88683336033cb38addc669983a183cb9713b95e16ff64e
MD5 1db6dba3b738d0fa7579ba355ed98fe2
BLAKE2b-256 07dd351d9807099f6128f4b3184f0ee6e04ac23e121fed2ce83715237e522b8a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for advent_of_code-2022.0.49-cp39-abi3-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 e8460cf6e40c2a81296d620d2e8a766973dce073b34d68bf37e57c7a95922000
MD5 bbdc3b268d6e868a0537f4e3de988b20
BLAKE2b-256 afecb59d91421baf404bdd1886720a88528f63e9dc90810c2aab7c33acbdf3aa

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