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

Uploaded CPython 3.9+Windows x86-64

advent_of_code-2022.0.60-cp39-abi3-musllinux_1_1_x86_64.whl (792.6 kB view details)

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

advent_of_code-2022.0.60-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (760.8 kB view details)

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

advent_of_code-2022.0.60-cp39-abi3-macosx_10_9_universal2.whl (1.4 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.60-cp39-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for advent_of_code-2022.0.60-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 2c328580b5fde0fd83e5219a929763c56be8aa721cd86370de7f8fdabc67f8e2
MD5 c6aa9b82923cccb4fef14e06eb3a57ac
BLAKE2b-256 205d3570506dd61c88e05caad93b4991304d368db51b2cef267d427d0389187a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for advent_of_code-2022.0.60-cp39-abi3-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 37a35238f02e1e2f9d35a120aaf0544fc97a4f96df395d07a1d399fd24aab7ec
MD5 57c022f6a264ba5efae06d816bc93258
BLAKE2b-256 789e54c180c9810d66a37c44cfab8adf0caf9776fbef764d78f94c59141fa86b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for advent_of_code-2022.0.60-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 01f5ef220c83cbfc8ccfdbb45f566411ddbb13a972ad6946d3552135999132dd
MD5 3f80e6e9a7f3d2f93a079547aa90db4b
BLAKE2b-256 9a1c215ab3f743a9296dad2509d4a7545d33c633e212c5a271a56a38246b0bf1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for advent_of_code-2022.0.60-cp39-abi3-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 22f508b5b008245b597c71e8143059a77d313d0d863f88de85024b86fb05706c
MD5 d5ac48f2759b499d68323e12fa6ce414
BLAKE2b-256 53e08a512add36192675c8270505913275ad0bf683525eff1609a964a7c7a2ed

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