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

Uploaded CPython 3.9+Windows x86-64

advent_of_code-2022.0.23-cp39-abi3-musllinux_1_1_x86_64.whl (735.8 kB view details)

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

advent_of_code-2022.0.23-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (704.4 kB view details)

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

advent_of_code-2022.0.23-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.23-cp39-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for advent_of_code-2022.0.23-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 1bbf8edb5e4c8ca32ac5f1b99f755d38052918528571343df3ed29de0ae41a5b
MD5 64ccc61e325a61d42afce214d7bbbfa3
BLAKE2b-256 d252adfba01f15d4ab78cc57581a6f37737a1c370fbc2591474e076ed458390a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for advent_of_code-2022.0.23-cp39-abi3-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 99d760db1eee9a101c6e2fe41d3b7d4d23b7332b550bd0f008f306686449b389
MD5 12ddd94392fa03badadd13b0d247253a
BLAKE2b-256 ad6a14da915e8dcab0889257d8e86f58b1931fb4cf42f9066c4a10f4706803cd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for advent_of_code-2022.0.23-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9695ea224c63f50c94fcb282b48db865a627d3b35c60984c1a1f5ff7b4ec5835
MD5 ef3dfcf5818985b74b6caa25b3558ed3
BLAKE2b-256 d1603c7d9f2829c909611776fd73231da95a4d18f2dd23dfa4e99039ca47c37d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for advent_of_code-2022.0.23-cp39-abi3-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 316ba40109a61ae0bbd4ec513514a7cba4788ad3abc9cd4257f577fbf5a35c9d
MD5 60518f0263a7bb376b143a8bbc827d02
BLAKE2b-256 6520d9f974a973a19099bf3417b9e50c465808849efbddbd1d53a0c55d6a5358

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