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

advent_of_code-2022.0.66-cp39-abi3-win_amd64.whl (737.9 kB view details)

Uploaded CPython 3.9+ Windows x86-64

advent_of_code-2022.0.66-cp39-abi3-musllinux_1_1_x86_64.whl (867.3 kB view details)

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

advent_of_code-2022.0.66-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (834.5 kB view details)

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

advent_of_code-2022.0.66-cp39-abi3-macosx_10_9_universal2.whl (1.5 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.66-cp39-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for advent_of_code-2022.0.66-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 64c5eeff8cc91f97b15e94bc56892d9b160b54f12789ace6a48959dd36476d6c
MD5 6b4fef1029ffccd354c68238da251b78
BLAKE2b-256 560e915132a08113f28ab6b38e4d878264362e94fc7bce5a9a112cd98a1ea03a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for advent_of_code-2022.0.66-cp39-abi3-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 bb11049e0f540e3f43bcee8eda6662c51dc9d5d0b26286d221e8e2f9332b33e2
MD5 8d111cbe17b3ad8556bfd6aff762fcf6
BLAKE2b-256 a7a5218192ff76a32c6fb22d10875434c1ffe25d9ddd67491d11b2a271af1351

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for advent_of_code-2022.0.66-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3dfbb31c16e49c7a53271d52df16325eb305e56be71a269b81f8974c3c90770c
MD5 f1214c3359cd2733a99f14a07d309287
BLAKE2b-256 3284da0c32e1d7592d6b00f1360df17b46bc0f27649947d404dc9580e2b7a3e3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for advent_of_code-2022.0.66-cp39-abi3-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 8b4dac3a400584b4fbfc13b90dd7504c64fc2a630f4908ebea17d6545fb2aad3
MD5 d09e614c9e175ca84498c5b86245ae37
BLAKE2b-256 26e5c914842124f79930ee7821b8e62421dd0ee078e87515352a553147651517

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page