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

Uploaded CPython 3.9Windows x86-64

advent_of_code-2019.12.133-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.133-cp39-cp39-macosx_10_9_x86_64.whl (463.8 kB view details)

Uploaded CPython 3.9macOS 10.9+ x86-64

advent_of_code-2019.12.133-cp38-cp38-win_amd64.whl (381.2 kB view details)

Uploaded CPython 3.8Windows x86-64

advent_of_code-2019.12.133-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.133-cp38-cp38-macosx_10_9_x86_64.whl (463.8 kB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

advent_of_code-2019.12.133-cp37-cp37m-win_amd64.whl (381.2 kB view details)

Uploaded CPython 3.7mWindows x86-64

advent_of_code-2019.12.133-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.133-cp37-cp37m-macosx_10_9_x86_64.whl (463.8 kB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.133-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 381.2 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for advent_of_code-2019.12.133-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 bad21848f2e8a33adeeeb495a77e8bc83e5ede50d18be3fd2c2a8f0d5ea4996e
MD5 75dd96816f61a603187811e24ff00d22
BLAKE2b-256 b08ec701d526696a1b39049615a8d65f0d0ea176c703fbd539e7f533750ca797

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.133-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.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for advent_of_code-2019.12.133-cp39-cp39-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 bdc091b7ecc01cacb1b06743e7e07b6eab8fef274bab21ba1bb8ee95b48bdf0b
MD5 677219dcb0636cf729af671ebfbf621a
BLAKE2b-256 1ff9cd004ea4ae8530fe39d4c65d36908179ec4e54193ecec8fd2856bf269d50

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.133-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.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for advent_of_code-2019.12.133-cp39-cp39-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 ef6498e65b182864761e6521ec531f5a4cba21581afc50f3ed45975cd8d52f82
MD5 a7c802ce33a6556377f0e7f60af95ca6
BLAKE2b-256 9444be2d81fc7d080c5d406fc99ffd3129c5b8917f636eae74a546074a017621

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for advent_of_code-2019.12.133-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 25e55cbdb2497760598911f3f2bb3d5b99cd99291a7f284739647be6a7db3449
MD5 b40fe366dab39fbf18c716f551ecb556
BLAKE2b-256 378703ea542485445c40c9390cdd0cb978289e016173f672c863f7058d993173

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.133-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 381.2 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for advent_of_code-2019.12.133-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 7c160984692a34e8ef67e52347457c183c50c700fb2b378a6d81c4d7c7304b07
MD5 2397429d9e5b785fed69deb9bd8eeccb
BLAKE2b-256 c4b0364607a23fdf7398d8180c14cc3a9f5138a7f8c50e420af285c66fd63774

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.133-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.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for advent_of_code-2019.12.133-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 dae639263b8d1199bf5fe1ca7ad3d65da3188b30835f50cab0a17b8075d8208b
MD5 99f84859202edd2a5afb1961923e22e3
BLAKE2b-256 6f8c4469af3e4c50465dcf6baf4e71e8397018aa47649e63461fd176222b45d6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.133-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.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for advent_of_code-2019.12.133-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 b99d9429b5cee91622561329fb6af397aaf4a8cdf1996c79e7c350bad654f4e1
MD5 fe9695920a0837577b66f4a700298845
BLAKE2b-256 4aa01b840d45e5bd02d7925332e91d3a243b3696dda1c7a88152591339fe6d31

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for advent_of_code-2019.12.133-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 625a1bc5cf1c4b0af7b35268d866a014814c8e1df814e5eb44f473097c15a2bd
MD5 a6fd7dcacdc7bccc9cd8194d7ddc9bc7
BLAKE2b-256 30b92e3b321bd577d768baae75634bc0a565f1a9bcc5c31247aa2334a97fd249

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for advent_of_code-2019.12.133-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 44e7d6fbbb1766c9e690f2aa00b5946f0b38f1755d0299bbf056e958f45f8844
MD5 ce0c55442c49ff213847d31f6e80551a
BLAKE2b-256 3513106a543e6435d4d97a22c869df3ea205c33ba2ccfa7cf92a0b600479047a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.133-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.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for advent_of_code-2019.12.133-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 bd3010fbd8cd7ebd8dce2ae6a9f2473696022561c9da39f5cad8413184601aab
MD5 5d60505c63d9cf6b4e42fe381e6f5269
BLAKE2b-256 54a7ef0e788f9d76893cb29b8f04ea03b48a905513ad043dbe3785b9724a0bb6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for advent_of_code-2019.12.133-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 89493000a389b21a1426a28f120bd66dd00e58ca8197c33851eb6ae7b3155daf
MD5 838c3c2a6c533d68aa951a8c775b892d
BLAKE2b-256 161fc1b24de838d46570e41ebc6100b95e0686af0407efb5a4d8eb387693ae30

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for advent_of_code-2019.12.133-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 984f12be40bf9256da0164432fb1c4b59a38db186db1fa99508c3f37dbbe623e
MD5 0e276741a89545e7cdef03fd5d404b76
BLAKE2b-256 f0cb94b3e3620e00e45a84660742c60dcb2ce576d44b4a2b239b681f0f46f014

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