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

Uploaded CPython 3.9+Windows x86-64

advent_of_code-2019.12.453-cp39-abi3-musllinux_1_1_x86_64.whl (737.7 kB view details)

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

advent_of_code-2019.12.453-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (706.2 kB view details)

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

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

File metadata

File hashes

Hashes for advent_of_code-2019.12.453-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 5545594a83de8239f72b3d7a98a96831a65dcbe42a600d5ffd1b85e45d4bdd0b
MD5 17ceed569bddf244d19568600a7f67a6
BLAKE2b-256 1446e3d91c3bc0d37fbab37976be14bd9276c2b1a3aa6f03c87e5df1ac88593e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for advent_of_code-2019.12.453-cp39-abi3-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 6386d10caa8b4f6dd88059454573c21368cc38ddf5f633c40baef6d7f27cc017
MD5 39cf1ad94377a8a8819b573d6a43a8e2
BLAKE2b-256 21af3ec551f82d16118da37880b619f6946152652f544f15915dfe1c2d113f3f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for advent_of_code-2019.12.453-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e6e1dd0954013ee721765267df5867ed962d545f72ebd3662fa1fc969a5a90b2
MD5 4491d21f24a52d01d563ce1044e23bb1
BLAKE2b-256 5d9a5ff0a2ea67f8bcaf6f4052db7851f7818abe30db38fc263e0ac8ed75879b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for advent_of_code-2019.12.453-cp39-abi3-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 72ee771314ca7a89dbb1fa986c523858e24959ee3bec837a01385aa84ce9cda2
MD5 9cd1458073ab0a8d53d86b0a1b5d0b80
BLAKE2b-256 b21b504eaa199810d8a722a56e6bdfd03de81ce19ee06391f3812155b61d9a3c

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