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.415-cp38-abi3-win_amd64.whl (575.1 kB view details)

Uploaded CPython 3.8+Windows x86-64

advent_of_code-2019.12.415-cp38-abi3-musllinux_1_1_x86_64.whl (687.9 kB view details)

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

advent_of_code-2019.12.415-cp38-abi3-musllinux_1_1_aarch64.whl (624.6 kB view details)

Uploaded CPython 3.8+musllinux: musl 1.1+ ARM64

advent_of_code-2019.12.415-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (655.9 kB view details)

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

advent_of_code-2019.12.415-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (589.7 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

advent_of_code-2019.12.415-cp38-abi3-macosx_10_9_universal2.whl (1.2 MB view details)

Uploaded CPython 3.8+macOS 10.9+ universal2 (ARM64, x86-64)

File details

Details for the file advent_of_code-2019.12.415-cp38-abi3-win_amd64.whl.

File metadata

  • Download URL: advent_of_code-2019.12.415-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 575.1 kB
  • Tags: CPython 3.8+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for advent_of_code-2019.12.415-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 b510d82ecd67020591ad582765b97719601d4e62b9e465b44c9c1e517b4ed3aa
MD5 d979a16589384ad12ebeaf635f48bb09
BLAKE2b-256 dc915b1e7f3b8e1c69e3ae1a8c54d1ad3ecd4ab9ab3dc1f7db04e49d817281f5

See more details on using hashes here.

File details

Details for the file advent_of_code-2019.12.415-cp38-abi3-musllinux_1_1_x86_64.whl.

File metadata

  • Download URL: advent_of_code-2019.12.415-cp38-abi3-musllinux_1_1_x86_64.whl
  • Upload date:
  • Size: 687.9 kB
  • Tags: CPython 3.8+, musllinux: musl 1.1+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for advent_of_code-2019.12.415-cp38-abi3-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 34898b9c987f77cf566636ce9c249e57c2e7deeb7ba3d45bf2bb2d90fe5186a7
MD5 b1dad4be17e91b1058c294c92b78fd59
BLAKE2b-256 a5c1268391ef8b41b525e26ce13f9d8a88a65c4281fd48ccbf684f88201650ac

See more details on using hashes here.

File details

Details for the file advent_of_code-2019.12.415-cp38-abi3-musllinux_1_1_aarch64.whl.

File metadata

  • Download URL: advent_of_code-2019.12.415-cp38-abi3-musllinux_1_1_aarch64.whl
  • Upload date:
  • Size: 624.6 kB
  • Tags: CPython 3.8+, musllinux: musl 1.1+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for advent_of_code-2019.12.415-cp38-abi3-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 d16dd92dd1e3579ec652f451d166d5a720cf56c06eabe784cbd0907b67a50c66
MD5 3ab959f962c7a222a4f7204bfce511d3
BLAKE2b-256 95830533dbfde9fb1ce74c70cba41f440a8a5a462459d247462e0ef66f42d8e3

See more details on using hashes here.

File details

Details for the file advent_of_code-2019.12.415-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for advent_of_code-2019.12.415-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 fd8952c9db112ccf213b46d57ab141aaab63a0de7888fab2d36efa7ab787fd3b
MD5 b700ea5afa7583b09a1a564aa380bc95
BLAKE2b-256 30e73a6a44d2f1b6684a75356480b5a7da92dc31a239f30589401fd977bb83dc

See more details on using hashes here.

File details

Details for the file advent_of_code-2019.12.415-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for advent_of_code-2019.12.415-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 6f6e77ca6202125f6f4be07a86cadfe3682ca6d8f4fc9f6bfddc6585635a322c
MD5 3b6a6c2e282c708448369336b3479f64
BLAKE2b-256 bb661382c79b158ca880b02a157a09b0f153e954060e1f869f16a3b98343ea1e

See more details on using hashes here.

File details

Details for the file advent_of_code-2019.12.415-cp38-abi3-macosx_10_9_universal2.whl.

File metadata

  • Download URL: advent_of_code-2019.12.415-cp38-abi3-macosx_10_9_universal2.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.8+, macOS 10.9+ universal2 (ARM64, x86-64)
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for advent_of_code-2019.12.415-cp38-abi3-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 c2382fdda46e944b23493239867b4f8260d8a1ace7ff2c9f963b4012aacae873
MD5 49bfaef33cb1569371b84596314b9d28
BLAKE2b-256 a186abd695e5189e251ce1477e864ebe3113aa7148bbd0d89391866582865d02

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