Skip to main content

No project description provided

Project description

advent-of-code

Solutions to Advent of Code.

The solutions are implemented in Rust which is 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(day: int, part: int, input: str) -> str

Examples:

from advent_of_code import solve

assert "3" == solve(1, 1, "14")
assert "30" == solve(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.113-cp39-cp39-win_amd64.whl (385.9 kB view details)

Uploaded CPython 3.9Windows x86-64

advent_of_code-2019.12.113-cp39-cp39-manylinux2010_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.12+ x86-64

advent_of_code-2019.12.113-cp39-cp39-macosx_10_9_x86_64.whl (468.5 kB view details)

Uploaded CPython 3.9macOS 10.9+ x86-64

advent_of_code-2019.12.113-cp38-cp38-win_amd64.whl (385.9 kB view details)

Uploaded CPython 3.8Windows x86-64

advent_of_code-2019.12.113-cp38-cp38-manylinux2010_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.12+ x86-64

advent_of_code-2019.12.113-cp38-cp38-macosx_10_9_x86_64.whl (468.5 kB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

advent_of_code-2019.12.113-cp37-cp37m-win_amd64.whl (385.9 kB view details)

Uploaded CPython 3.7mWindows x86-64

advent_of_code-2019.12.113-cp37-cp37m-manylinux2010_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.12+ x86-64

advent_of_code-2019.12.113-cp37-cp37m-macosx_10_9_x86_64.whl (468.5 kB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.113-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 385.9 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for advent_of_code-2019.12.113-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 a5fa4101eba3f0ffe80391b280220998241d0c7ba2b9c1cbac9cf77ccf90cf6f
MD5 297819c94d0787534c4155e266d710a1
BLAKE2b-256 2c9bcfecaa7cf315f20141d8359c3a26c8abc66e8caf6ff1de679ed240b58b11

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.113-cp39-cp39-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: CPython 3.9, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for advent_of_code-2019.12.113-cp39-cp39-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 f13f6c68fab25cb9b35416cc7196faef8b146f0bc484b41c30153ea74b9db94d
MD5 9b29d218d7712cf9ac3fb6ff34987f20
BLAKE2b-256 b8effebf61105be116cd6260eeeba1f06bbbac9d22bffadffba990c9fe4d9bbd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.113-cp39-cp39-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: CPython 3.9
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for advent_of_code-2019.12.113-cp39-cp39-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 9d941c9f70308b2de680fc07c1614a01f7c3784c3419d0dd5bad1699147649c1
MD5 72e709fc64e726714f4fa427b22a1d0e
BLAKE2b-256 4a40f520e33686209003aa4a48623f57757446de86261ac053b8d0530a79d451

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.113-cp39-cp39-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 468.5 kB
  • Tags: CPython 3.9, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for advent_of_code-2019.12.113-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 4cd6a05e53a48fa314b8febc9fcab87e3aec93b9e4dac61a27c47de8711a1305
MD5 56373e1be0311482855d9692994f8739
BLAKE2b-256 6b9bdf0495d15e0e4c7532e79c47427ec470c3de959f3368bb5b14fb29fbfdbe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.113-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 385.9 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for advent_of_code-2019.12.113-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 b278259235c1057df68519c2f97aff638136e39dfdf9c0c0df4142c8c250c7f1
MD5 5bf9048d94f4f09f05cbb1f5666885e3
BLAKE2b-256 8dcba0973be2e717b00d3ae50be4f653d895883be4ab091740764a72a9e7b5dc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.113-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for advent_of_code-2019.12.113-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 560dd0d8804d091f1dd9103147ce14379f83400f9ab1d75751c2b367cda89cb4
MD5 bcb3d7d82668ba151554d7287d1337c5
BLAKE2b-256 9be8ae883256e0506716e04f11d1a91294558cde2fb4a0039a89bf1edb7fa8d7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.113-cp38-cp38-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for advent_of_code-2019.12.113-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 590fe976a91d92d6a0c47c2a6f65b85fc3ccdea6f889c875a28f0466f8af1951
MD5 8ac834586c6c83a56c010f21285eab54
BLAKE2b-256 fd835d29ac3a75cbc28a258c1661bf556f9613c577a844c190be28255df13da2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.113-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 468.5 kB
  • Tags: CPython 3.8, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for advent_of_code-2019.12.113-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 38a76e3f273c202ad12790ac682eb4e60dbb276c2bc87e2b33f0cb415e80cca2
MD5 f5b6ee65e4c1799c2ce238e6cae01866
BLAKE2b-256 4ec2d2c8b47c85bc32a7d0a3559c4467e9a7bef638d6a704481e769707cf3fe9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.113-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 385.9 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for advent_of_code-2019.12.113-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 daa20e60568d546918375f50d67c342f91725ecf753eb7b57180ca17dd1fc7b9
MD5 d1faad6fea9fe7a61f4c4663c64b778b
BLAKE2b-256 fb60ee072a43af2017d3086c633c3f4258b379ccac754281b2f64d0efae4ab98

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.113-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for advent_of_code-2019.12.113-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 95dcad7cc8afaff91afe6be5fd330b65d67f1125d31024a19971895b85a532c3
MD5 a413e11f01c2b3cde1e939ad34b7693e
BLAKE2b-256 1b0381a7d5bfe915f202ce4812855a082767de15cb254a2ab93c7969865398c0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.113-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for advent_of_code-2019.12.113-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 16e9d05ce65fbf367a2706eabd4476baaa2ffdd6e63ba64a195fa6a55db530c9
MD5 48fe48e5467111d076f82bf2897025bc
BLAKE2b-256 53eaf5a5615fb272c416a0dac8ea5b179f358106774a54d355a936554e1dd552

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.113-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 468.5 kB
  • Tags: CPython 3.7m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for advent_of_code-2019.12.113-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 6a80e9ad3e5552418be5bae6e52e1abff27e4d96872200776c5b385c9cfd3104
MD5 feccf31126f2a06b709468d020203a69
BLAKE2b-256 f388fb5bb1be833c16716ce7e95a3b5892c276b750deb8e6a59c45533db59faa

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