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

Uploaded CPython 3.9+Windows x86-64

advent_of_code-2022.0.42-cp39-abi3-musllinux_1_1_x86_64.whl (754.0 kB view details)

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

advent_of_code-2022.0.42-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (721.0 kB view details)

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

advent_of_code-2022.0.42-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.42-cp39-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for advent_of_code-2022.0.42-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 566a15c2f88bedd5469b00d037cc66bfbe99df21b439c66058c0d85893ebaee3
MD5 48095c97361e0e6d15047095fdc7b309
BLAKE2b-256 88c436badc21c1600ebb9217d4039b65423aab1eb713b08a9da75108e1ba4447

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for advent_of_code-2022.0.42-cp39-abi3-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 cce1afe5bfb675d78f10b14e9642a5247e7b3222361437cd006653e94852e747
MD5 a40c7bd67b7e7efef1cc65e6bf39aabb
BLAKE2b-256 d84e9df2adcac5d7090d411b6bd042c45547fbab107e0e5ea12640943e584787

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for advent_of_code-2022.0.42-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9299ee7d38a7347642aee0531ddc1a783923493447b45c6544826214fe0cc482
MD5 7c515170a78b8ec129e292c106768cd0
BLAKE2b-256 fe9ea0fb509be35484f8e9da59b4e9cc1bc73984bf5aa4f394ca909df8a107b3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for advent_of_code-2022.0.42-cp39-abi3-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 24745b1caf810e5c49d1dda953b04b9a29bba0e267d126f5de2256923c2b93dc
MD5 977772935c01d4ed55fed2d1be417c5c
BLAKE2b-256 56c67d3e5530f9cff37db62b8a1ae57d11d24d4c235d48003bbef5e0d25651fa

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