No project description provided
Project description
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
File details
Details for the file advent_of_code-2022.0.66-cp39-abi3-win_amd64.whl
.
File metadata
- Download URL: advent_of_code-2022.0.66-cp39-abi3-win_amd64.whl
- Upload date:
- Size: 737.9 kB
- Tags: CPython 3.9+, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64c5eeff8cc91f97b15e94bc56892d9b160b54f12789ace6a48959dd36476d6c |
|
MD5 | 6b4fef1029ffccd354c68238da251b78 |
|
BLAKE2b-256 | 560e915132a08113f28ab6b38e4d878264362e94fc7bce5a9a112cd98a1ea03a |
File details
Details for the file advent_of_code-2022.0.66-cp39-abi3-musllinux_1_1_x86_64.whl
.
File metadata
- Download URL: advent_of_code-2022.0.66-cp39-abi3-musllinux_1_1_x86_64.whl
- Upload date:
- Size: 867.3 kB
- Tags: CPython 3.9+, musllinux: musl 1.1+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb11049e0f540e3f43bcee8eda6662c51dc9d5d0b26286d221e8e2f9332b33e2 |
|
MD5 | 8d111cbe17b3ad8556bfd6aff762fcf6 |
|
BLAKE2b-256 | a7a5218192ff76a32c6fb22d10875434c1ffe25d9ddd67491d11b2a271af1351 |
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
- Download URL: advent_of_code-2022.0.66-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 834.5 kB
- Tags: CPython 3.9+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3dfbb31c16e49c7a53271d52df16325eb305e56be71a269b81f8974c3c90770c |
|
MD5 | f1214c3359cd2733a99f14a07d309287 |
|
BLAKE2b-256 | 3284da0c32e1d7592d6b00f1360df17b46bc0f27649947d404dc9580e2b7a3e3 |
File details
Details for the file advent_of_code-2022.0.66-cp39-abi3-macosx_10_9_universal2.whl
.
File metadata
- Download URL: advent_of_code-2022.0.66-cp39-abi3-macosx_10_9_universal2.whl
- Upload date:
- Size: 1.5 MB
- Tags: CPython 3.9+, macOS 10.9+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b4dac3a400584b4fbfc13b90dd7504c64fc2a630f4908ebea17d6545fb2aad3 |
|
MD5 | d09e614c9e175ca84498c5b86245ae37 |
|
BLAKE2b-256 | 26e5c914842124f79930ee7821b8e62421dd0ee078e87515352a553147651517 |