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

Uploaded CPython 3.9+Windows x86-64

advent_of_code-2022.0.20-cp39-abi3-musllinux_1_1_x86_64.whl (730.8 kB view details)

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

advent_of_code-2022.0.20-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (697.9 kB view details)

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

advent_of_code-2022.0.20-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.20-cp39-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for advent_of_code-2022.0.20-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 7cc1dfd7e9ecfd685e6ab43e8af2199721bc2264bcfa7743c87449df07415f7d
MD5 309e0982a081b8cb27a7df0e3b0d6da5
BLAKE2b-256 cf1e215094c4c2939871d153b1e366f501d5c2e0441864808c0ad5812db97c9c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for advent_of_code-2022.0.20-cp39-abi3-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 683a4f9b696459481a837f59d55f345d190e3c79e2530185990fc074d1cc66b6
MD5 b771d131023b3539a4a227e077492775
BLAKE2b-256 fdc1fc955f64d4fcbb6bb3b7ee2537b379697af3bc9a41daa8e21c4d1a3bc521

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for advent_of_code-2022.0.20-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2f281d0d389d95f1a12c2e6ba87a1e2618d2a0231fa4dc9df83b5398c93cc21c
MD5 f07d92ea116e5492944ff0f3472f2c0b
BLAKE2b-256 2e826b7cd153f2ea61a20cb76337e59168d8b307f2d85b97be4022509c517a07

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for advent_of_code-2022.0.20-cp39-abi3-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 8e193e6d8a6f4937da8169968b53d9c673f0ca2fa43369783e0c13297bc2fec3
MD5 f087e42e2ea237215d1f22e9dc8415f2
BLAKE2b-256 6769a45df4d976508a492b0f0827721dac36e5a52885ea2a5ca7afd491cdd337

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