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

Uploaded CPython 3.9+Windows x86-64

advent_of_code-2022.0.45-cp39-abi3-musllinux_1_1_x86_64.whl (762.8 kB view details)

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

advent_of_code-2022.0.45-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (731.3 kB view details)

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

advent_of_code-2022.0.45-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.45-cp39-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for advent_of_code-2022.0.45-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 c65e0979174438aa286895c2f77e74aa6da862b0c6699a13a7e6aced2cccb1e7
MD5 c011ca0f8b4d34705778dc12ced45dbb
BLAKE2b-256 9db1556eb065d92e39860105fffa10376ee79004823f3f98066eb03e9d4415f3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for advent_of_code-2022.0.45-cp39-abi3-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 b43d80ffa2dcda8c3f89929055c28b393bd8663693dc87d9e82b4bb38a8d1161
MD5 b011d415e2f9004fb79484aec4481333
BLAKE2b-256 07d5366ffd4e97e21b73fed5d26b31f115e196928b80c8d24d4a4ce029eead0b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for advent_of_code-2022.0.45-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9407acc3f72c9e3af7d00955f764d710ff4f5534e6a43a40872dd741c903931e
MD5 8be6837bf1832bb3f3624e8c338b9411
BLAKE2b-256 e13ba7fe78aa6ec582071aaf62149ece622888bed4e61741fe440d25be572c6a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for advent_of_code-2022.0.45-cp39-abi3-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 53e63d8d4cd1a1c8086bb23f750ad1048b95798baa8104401786b14d39b5e7fa
MD5 889ef231c208801ba852c0ef2769d591
BLAKE2b-256 b88a6d8d5f03f35af153a8db1149bc50f611a1e868de762c31164b4650cbe675

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