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

Uploaded CPython 3.9Windows x86-64

advent_of_code-2019.12.137-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.137-cp39-cp39-macosx_10_9_x86_64.whl (465.2 kB view details)

Uploaded CPython 3.9macOS 10.9+ x86-64

advent_of_code-2019.12.137-cp38-cp38-win_amd64.whl (381.7 kB view details)

Uploaded CPython 3.8Windows x86-64

advent_of_code-2019.12.137-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.137-cp38-cp38-macosx_10_9_x86_64.whl (465.2 kB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

advent_of_code-2019.12.137-cp37-cp37m-win_amd64.whl (381.7 kB view details)

Uploaded CPython 3.7mWindows x86-64

advent_of_code-2019.12.137-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.137-cp37-cp37m-macosx_10_9_x86_64.whl (465.2 kB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.137-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 381.6 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.137-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 a668c611b0b5b5f745d6b372fa145bf35df00d3093d0d13a753b09e55ed9188f
MD5 70521b2662bc255d3a37bda14366ebb4
BLAKE2b-256 bbfb26ccc687e627617e66476cfc02d59f47336f071fd275d3a32b348118187b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.137-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.137-cp39-cp39-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 c8bd4c8baeaa3f3d72761f5d3b7183223b55f0245e45f87d55a0a5942c7b7df2
MD5 8eee87b221bfd568891fbbc7b72e7769
BLAKE2b-256 6c1947d5520ede789bb3ae8065bbdf6445435a8a1648b7dab299cf17c9bd0a23

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.137-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.137-cp39-cp39-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 4670be16bf087f6e71541a2f4fbd63a2bd87040e39449425437cac8d1de05d36
MD5 0d6cc71e639a8fea8f1c45f81da330b5
BLAKE2b-256 fb8774cb4e33a5fc7500645dfe4159b40ee521e97ee10d676ddf70067626e774

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.137-cp39-cp39-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 465.2 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.137-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 bf21d25b3eeac823809e48b56fd25b432eccdc52cbfe5d755c9ec74a6411f7b1
MD5 dc0ca82e2bfc43f7a9684fa2ea18bfcd
BLAKE2b-256 cc32e0520a707eacbb20042f28e9834405a8327db9faf5de55255a84ba1abd84

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.137-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 381.7 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.137-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 58494ef6ee9813a5e9cfe5e7f7710c11ec8108b4da6b8404b5890fb45c8c7456
MD5 c875fbd3e73a72b4ec1dd97c44aa8838
BLAKE2b-256 39d571252e35320b2e351e063c787306907e96907b9661ff1d7cf7414b08c2e1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.137-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.137-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 c9e7a6ceef6555a665c9d616388bafe14b85067ffa3887b117021a3f09ba858f
MD5 c30a9b72ffd5486c44983a33eb591ef5
BLAKE2b-256 e0d62fac8deed787ff20f7c08f42067c4e9b31d1f817861bfd11bba1574cd011

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.137-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.137-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 d6f8f3f70b3606aed5170f20c892b09165e40a1e4dbe72b2f2de5120059a8cd3
MD5 80057e71ece662b6d36a0534d596a097
BLAKE2b-256 2ba4ab575d25fa7156e3ead1581d230e4b5b91361475c3b6adb01c39327050f4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.137-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 465.2 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.137-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 3564a98c06341b7f900b2ebc170a20e4d82899f40b33cfee1288c0c9f4e4d0fe
MD5 46f6691ce534c550fb36f463713e1efc
BLAKE2b-256 892b34e6c4c33be507edae65a30e371fea906de56c4e727cf1bf22840aaf37c5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.137-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 381.7 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.137-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 766a36d53f30e4cfd8cfefdd705c52b98c927cfdbcc0d408428c80c0ef619893
MD5 e224738a647e2ec9d7edd6837938c4fb
BLAKE2b-256 4a72ded736fd9fc19b5a3ba8471f774435f47c152fbb1ce283241272d822a2bb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.137-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.137-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 4b8afaefe0d2cdb5fa78eaa46f44b1fa4571565f95dc541f103d185f9d087107
MD5 43f498c90e26a6ffe6bbfcbbf0bd153c
BLAKE2b-256 b886e8a2d4f9124deb4e3fd931da5a7caa4970d67769ac955d3c8fc4e649d5fa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for advent_of_code-2019.12.137-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 e06a50a38273ade89c059bcd4493658084827feb7b4097d3ba3240de848108ff
MD5 b6e83af9196a1a75cf5bd74e81900310
BLAKE2b-256 4674879b3c85dc481a7682d91ec7342ba5d909f52b5779ded37457862a96f318

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.137-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 465.2 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.137-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 0ecf192f678ca5e5ea47296770d5da325ca0e70425a20b3c5b0ab97613a33a14
MD5 d278ff284f1a1999b03a04fdce311487
BLAKE2b-256 883d8db7d6d77a9903dc1a4f928384de9452259d01a29fc134680b7a6fc23d17

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