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

Uploaded CPython 3.9+Windows x86-64

advent_of_code-2022.0.24-cp39-abi3-musllinux_1_1_x86_64.whl (740.4 kB view details)

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

advent_of_code-2022.0.24-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (708.3 kB view details)

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

advent_of_code-2022.0.24-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.24-cp39-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for advent_of_code-2022.0.24-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 b79c85fa6d0cdb254879f894aece5cee5b6946b05945f5506536e0b7cea84a4f
MD5 abb2e8b89654750256bb99455a24697a
BLAKE2b-256 58f22c3a6d8b6128e2e80dec1bc207b4420269d8adcb73a17145715a94b06a12

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for advent_of_code-2022.0.24-cp39-abi3-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 d38c6d65b7ed332027f319115f6d6623078fe9f8d7b65a5d345f3e44a484da7b
MD5 6a296875359265c72f1a181178b5c62d
BLAKE2b-256 cfa00a4bdbbba9ea385b8209ad7cc9fae76610d767aa19fda3b12834d7d98963

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for advent_of_code-2022.0.24-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0e34343657ca00695f25d630e776da80c077a6c66faad9a7200dbc73d3f9fcd8
MD5 d48299fe05073de8ddce820c283f2b06
BLAKE2b-256 78ea0f8028b75abeea39c04d76a3a28be79c7c0fcace833caaaad0cb9a048ab1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for advent_of_code-2022.0.24-cp39-abi3-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 854d3043772d07346935eeaa28abf58a7e0798be577640d345532ab226e55103
MD5 3872c77377502a22b2147772b5fe1489
BLAKE2b-256 04824783c210a3e2908df34c88579a20119bc60cd46b4cfb6403801cebcbe2ca

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