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

Uploaded CPython 3.9+Windows x86-64

advent_of_code-2022.0.28-cp39-abi3-musllinux_1_1_x86_64.whl (748.5 kB view details)

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

advent_of_code-2022.0.28-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (716.3 kB view details)

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

advent_of_code-2022.0.28-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.28-cp39-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for advent_of_code-2022.0.28-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 f5a891917850ee4ce4edabffd732af23394b33ee88b3b2d5208ada972e34fc84
MD5 98e7b5472666a544edd3bf884f7220b9
BLAKE2b-256 d2b84327ffb0d0e3e9bce72c1808075fe7b01495177f307983004b27485210d0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for advent_of_code-2022.0.28-cp39-abi3-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 ec176a13e71b551ba2ff3a75f0548872f7058abd7056449afa45a01a1158dc53
MD5 63c44941448a27aa10c4356e53289a35
BLAKE2b-256 30be31fcc31dba2fa916d2589e85101b45e7cc44e2538af23806d006a0e58b1f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for advent_of_code-2022.0.28-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7663897190fc6ea826efa13594ac8a62d6b5114a8dfacd861b3c1cca4f27003b
MD5 42e37ff1c239f1fbb132a7940c4f3a98
BLAKE2b-256 ba836089d6bed3bdb1bb816b67d69adbd39f3bbd843b1aa2f8b1bb3438d2cb72

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for advent_of_code-2022.0.28-cp39-abi3-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 a7ca53fe0c8880062d52482d4959d4b1b072360bb7d0a2abbcd6f63abb132778
MD5 88a644016c814067aaf388556682dcf6
BLAKE2b-256 828355bde5d816e222743b51397a13a8695b69e0e7b50bf042934e24c2ac32dd

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