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

Uploaded CPython 3.9+Windows x86-64

advent_of_code-2022.0.22-cp39-abi3-musllinux_1_1_x86_64.whl (733.3 kB view details)

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

advent_of_code-2022.0.22-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (702.1 kB view details)

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

advent_of_code-2022.0.22-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.22-cp39-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for advent_of_code-2022.0.22-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 553a4f7733b39b51052d7e7597ae1e7efe6fc42c375612d227524dd195d1d9ef
MD5 42bdd1f7e4731390367dfc5e17896a37
BLAKE2b-256 57b4599d620df3aad8e7925c6138c570cf723e89aaae688ecdd59ed6c2500027

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for advent_of_code-2022.0.22-cp39-abi3-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 5165e67bd7b9b0226db9dca5b6ce9a7e942d9f68dee526183236481193fc2a2c
MD5 733eae60279516ae1ed8e51971920fdd
BLAKE2b-256 7c13104e4867c01ee2ea8055d0c18f9882e02041a32d55c6996c77e2634c11d0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for advent_of_code-2022.0.22-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 977fafcbb2f2667ca78b434ae083dfe4ba35e6c6fb74751528f422d9706eb94e
MD5 9516ff6510a4588e828583b09312c371
BLAKE2b-256 3809c8f768e7d0115a334b913f8055a4fdea2a28170bb12845cd93ee3e516a91

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for advent_of_code-2022.0.22-cp39-abi3-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 b9d62dce1afe39d5d2d132aa09efe1d26633ead2eec17d21026bf1b4271d0641
MD5 13d2f97d6c2f9e34e8d8377972259f4b
BLAKE2b-256 a7bf9d1e00b2cd6a17de496a45cac1a2adc6572614d3f397782d28b1a7b55602

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