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 "2" == solve(2019, 1, 1, "14")
assert "30" == solve(2019, 3, 2, "R8,U5,L5,D3\nU7,R6,D4,L4")

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.331-cp39-cp39-win_amd64.whl (577.4 kB view details)

Uploaded CPython 3.9Windows x86-64

advent_of_code-2019.12.331-cp39-cp39-manylinux2010_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.12+ x86-64

advent_of_code-2019.12.331-cp39-cp39-macosx_10_9_x86_64.whl (689.9 kB view details)

Uploaded CPython 3.9macOS 10.9+ x86-64

advent_of_code-2019.12.331-cp38-cp38-win_amd64.whl (577.3 kB view details)

Uploaded CPython 3.8Windows x86-64

advent_of_code-2019.12.331-cp38-cp38-manylinux2010_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.12+ x86-64

advent_of_code-2019.12.331-cp38-cp38-macosx_10_9_x86_64.whl (689.9 kB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

advent_of_code-2019.12.331-cp37-cp37m-win_amd64.whl (577.6 kB view details)

Uploaded CPython 3.7mWindows x86-64

advent_of_code-2019.12.331-cp37-cp37m-manylinux2010_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.12+ x86-64

advent_of_code-2019.12.331-cp37-cp37m-macosx_10_9_x86_64.whl (690.0 kB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

File details

Details for the file advent_of_code-2019.12.331-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: advent_of_code-2019.12.331-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 577.4 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for advent_of_code-2019.12.331-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 8e0e2f530ab1ae7bf327d3eff5b108490687b021f50053c920255fc7ac3a0309
MD5 8088218639eeb0d74e4540cd82dd7254
BLAKE2b-256 1bc181154d5113aac95e5e97f02e5ce4939f8f322a9aa0c27c5128a785e9b2c5

See more details on using hashes here.

File details

Details for the file advent_of_code-2019.12.331-cp39-cp39-manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for advent_of_code-2019.12.331-cp39-cp39-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 91e342ee0ea1d82b28018756e911a7acc1a2806e8d58de887c727b80bbfd99d7
MD5 eb6bb74034d2de50bc339b2465e9f577
BLAKE2b-256 60b3266f5aaed125f65655e37ec69143a6200d1faada9cc54d00a63380f5771e

See more details on using hashes here.

File details

Details for the file advent_of_code-2019.12.331-cp39-cp39-manylinux2010_x86_64.whl.

File metadata

  • Download URL: advent_of_code-2019.12.331-cp39-cp39-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.9, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for advent_of_code-2019.12.331-cp39-cp39-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 6e3c7c34bc0c4ccfcb12e5eb16a0d1193af9d9ee24ac1dbdc337e726c8015ef5
MD5 5ee363784ae2aaf18b8164c1bdb6a036
BLAKE2b-256 31b042b4147fe2511a120b65a8960de31ac0c2007b2ec628e145a784ea188ce3

See more details on using hashes here.

File details

Details for the file advent_of_code-2019.12.331-cp39-cp39-manylinux1_x86_64.whl.

File metadata

  • Download URL: advent_of_code-2019.12.331-cp39-cp39-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.9
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for advent_of_code-2019.12.331-cp39-cp39-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 2a6892ab4fa3118636da7f71f097a8b99813adb67f4a7ef5cda410cc20c6dba5
MD5 2bd1ade9fb81c6aab3a364b1ef30af02
BLAKE2b-256 658ceb81ea8ac27eea572d584b637d07e6f09ba0c538d1425b49b3d0c27b552c

See more details on using hashes here.

File details

Details for the file advent_of_code-2019.12.331-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: advent_of_code-2019.12.331-cp39-cp39-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 689.9 kB
  • Tags: CPython 3.9, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for advent_of_code-2019.12.331-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 c2f006e43e3cc58ba9e849436b1471741dbe52671878ff2c01be3b27938866bc
MD5 2f4968470b22b01c8f0a379a0a9337f4
BLAKE2b-256 fe8676caea6502c9be9722ff8763d90c32c5829915a0710db91871184eb6a4b7

See more details on using hashes here.

File details

Details for the file advent_of_code-2019.12.331-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: advent_of_code-2019.12.331-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 577.3 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for advent_of_code-2019.12.331-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 3d2e8d64b6948278eaca1f1bfb145559c75f09513e9edfd6f65a89af810bc782
MD5 ca106b5e2e5ac757d22c5fe02516e53b
BLAKE2b-256 7a8c7a6f79ab54bebe46005980b4509ffff3950e8341a8cb82a50c3beff69203

See more details on using hashes here.

File details

Details for the file advent_of_code-2019.12.331-cp38-cp38-manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for advent_of_code-2019.12.331-cp38-cp38-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2028a5721bb069bfe8af4408e10286376a604b5a448179fd3804c322b5c1183e
MD5 4b28e8ec1ce0f6dedb630c1728ef4a96
BLAKE2b-256 19858ba7563416702bf13ea07bad6dd9f80d908749b8e963a339f63002370586

See more details on using hashes here.

File details

Details for the file advent_of_code-2019.12.331-cp38-cp38-manylinux2010_x86_64.whl.

File metadata

  • Download URL: advent_of_code-2019.12.331-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for advent_of_code-2019.12.331-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 7c83caed6347becfec4c68855d627bd33de3f36d97e714ac831416a5e99d1a5a
MD5 33b88e8bdb1ea9123dd43efb785a0a27
BLAKE2b-256 d11303f76a8ae0c98533712e1dceb756126d7a60310b1215782437908e489bda

See more details on using hashes here.

File details

Details for the file advent_of_code-2019.12.331-cp38-cp38-manylinux1_x86_64.whl.

File metadata

  • Download URL: advent_of_code-2019.12.331-cp38-cp38-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for advent_of_code-2019.12.331-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 7ecb5bbe19a1bbd60e6d92955d04e1db58051198dacc234336d9b2a46612fb03
MD5 75cb7e6d2782dd3dfe3b867b9cf5ab06
BLAKE2b-256 a17d07e6d36f6b19fd6168014ff0a889288a579940a7155f424372be8fcd0315

See more details on using hashes here.

File details

Details for the file advent_of_code-2019.12.331-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: advent_of_code-2019.12.331-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 689.9 kB
  • Tags: CPython 3.8, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for advent_of_code-2019.12.331-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 9a150e9b00374dfe0ad516020e21241101266b293e06c0a66dd2607c969e0da7
MD5 ac4b4b081fce3ae8c4dd85eef869ed3f
BLAKE2b-256 c7beb77f7ca6a28d3082c9c58a94ce921f01490517a766d7ad23fc0c90b4b4a9

See more details on using hashes here.

File details

Details for the file advent_of_code-2019.12.331-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: advent_of_code-2019.12.331-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 577.6 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for advent_of_code-2019.12.331-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 9200b6a8613b6a66178effc1c3959b781b77473ba9d74048a952317eb25aaf9d
MD5 6549cd7f540e05b9c82866e95a41e638
BLAKE2b-256 7b615a49d856bad62cc5ba8e8f612ff707e400bee0a055f0fc6c8f40067b10de

See more details on using hashes here.

File details

Details for the file advent_of_code-2019.12.331-cp37-cp37m-manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for advent_of_code-2019.12.331-cp37-cp37m-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 8045d46b683ffe8a6d902ab86348536f0060e1895f877f6a2b0bf59110f5d17b
MD5 3b3c0ff0077e7c051d84d465a079bbda
BLAKE2b-256 b1b507be7803a6622bb7353fce7e73e7ff32f92a69b65e7f6224d482a444f7b5

See more details on using hashes here.

File details

Details for the file advent_of_code-2019.12.331-cp37-cp37m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: advent_of_code-2019.12.331-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for advent_of_code-2019.12.331-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 d4c65ee044764d03d7195a7988d5a53a7deae18ea59d6bfb1c8db7a221c3a450
MD5 d5c98af8fe6b70806d5980f0eb48dc58
BLAKE2b-256 48f1e532253a97494b2bdda0503dd9f7f53f4818ebf3dda6a5897bb555691d93

See more details on using hashes here.

File details

Details for the file advent_of_code-2019.12.331-cp37-cp37m-manylinux1_x86_64.whl.

File metadata

  • Download URL: advent_of_code-2019.12.331-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for advent_of_code-2019.12.331-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 866b7796742a32ad8f5b608fa71721edbdce611d2db3e4770ea09deec5ddcd63
MD5 b9630e3d72f784f76b69e187bd9324c9
BLAKE2b-256 fc0e4e044d7f47b05546de8b94dd1db8e6ae2e45b103278dd13b27a89c4c502b

See more details on using hashes here.

File details

Details for the file advent_of_code-2019.12.331-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: advent_of_code-2019.12.331-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 690.0 kB
  • Tags: CPython 3.7m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for advent_of_code-2019.12.331-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 fad5f94102c3806b5c3290acb7a8b3714e31e539b2c02385c0821619bfe22ad7
MD5 8ea6dd650a90edc2d9f55f9f04764d20
BLAKE2b-256 32a3994dfb6af298050fcb3ff5a8d50e5c7bb49212c03629af7ae2470a310a14

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