Skip to main content

No project description provided

Project description

advent-of-code

Solutions to Advent of Code 2019.

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

Uploaded CPython 3.9Windows x86-64

advent_of_code-2019.12.91-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.91-cp39-cp39-manylinux1_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.9

advent_of_code-2019.12.91-cp39-cp39-macosx_10_9_x86_64.whl (452.1 kB view details)

Uploaded CPython 3.9macOS 10.9+ x86-64

advent_of_code-2019.12.91-cp38-cp38-win_amd64.whl (365.2 kB view details)

Uploaded CPython 3.8Windows x86-64

advent_of_code-2019.12.91-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.91-cp38-cp38-manylinux1_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.8

advent_of_code-2019.12.91-cp38-cp38-macosx_10_9_x86_64.whl (452.1 kB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

advent_of_code-2019.12.91-cp37-cp37m-win_amd64.whl (365.3 kB view details)

Uploaded CPython 3.7mWindows x86-64

advent_of_code-2019.12.91-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.91-cp37-cp37m-manylinux1_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.7m

advent_of_code-2019.12.91-cp37-cp37m-macosx_10_9_x86_64.whl (452.1 kB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.91-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 365.2 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.91-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 ded99952d0bc1388a0457cb4364a1cbd1926fe08dac27465b37188326d16d136
MD5 7e5983b42163de957e84ad1307484093
BLAKE2b-256 6741e2fc2d2a537089c5ab0f7d6e8e1d15af34adab1f74127f34eca7d830a1b9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.91-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.91-cp39-cp39-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 21be588105779803e57db112557902d127d3d0e6eee1b3b5f45a19124fc49599
MD5 1d4276b4a16d3887940a256423ecbcfc
BLAKE2b-256 31f2ec102d342fb020575eeb15819acbf198771ec385f934b1bd0f3116ad9d4c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.91-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.91-cp39-cp39-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 ed16f9acdf808b8ded25ff66b329c71b3d04538cf80c97899e6b40e459d4f374
MD5 34b5a2795cd93f7ab554199fac684ff3
BLAKE2b-256 c598224cac7c1a24530eef1cfd4379d6b013c6fdd5af31d8da40e010a1d81e7d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.91-cp39-cp39-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 452.1 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.91-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 d017af27f243e12fe15eb0391e9c5e3e7723c7f21f52c20e6f8930c460ce09aa
MD5 31040465fe4e495ba7670a8839f1555a
BLAKE2b-256 82dafa65eb420f295671c5329550a0f5aae22792abb60e1e0ba6baa8a402b2d8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.91-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 365.2 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.91-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 cdaf52c8c594f8c1a3e895a26822ed416d5bbb4088362c88f3d586b597af91f3
MD5 2549a5b20fd73f0e9d972db406f29e16
BLAKE2b-256 b12e6dbb74e7234fa82444780fda624ddc735eac4deef040744d23c55159eeb2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.91-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.91-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 c78e720e6930f1f761940684c5037ab3c8189ba9c29257db18afa587e2bd8583
MD5 1d3fcaa31962e590143b25d0d8ac84e5
BLAKE2b-256 04e8dbe79488bb751edb70975c4e7e16739ddf04ac29582b201e8fd9e247ddf3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.91-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.91-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 7604e506c0c24ef9d32a2aa674a9edf85befa3ca5027e91326b5c328cef82d0a
MD5 48e1467f3bed32a630502518b8e5e254
BLAKE2b-256 882ce773c14ca1aa4f122ab4118368a246208631efa8ec1b9a4bc45d706b3377

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.91-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 452.1 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.91-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 3114d76529d255ca377d1620798b23197da9d1d4f1806bd304fc3b07a7c8fefc
MD5 1cb5443827d36026947b406f02f74bfe
BLAKE2b-256 0688227db59a36bb6ae6838e9fe37a68869a09d57f5498d6d95455f15c8f9015

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.91-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 365.3 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.91-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 8f8f20c3e339f09047606ff1d5481b5f7551bdc8ef374aee3411b184ff5bd9ca
MD5 5e71724bc25d38ea0e9330e5fc8d4877
BLAKE2b-256 5cb3d243b807c7564c10d2a094e5c314f19889ed06cb6161900d9af081179532

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.91-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.91-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 cfec24391f71d09a63d89db945f64e72e32768e57f83db31fc8d4141afb36641
MD5 8d5c343ab5ed4ad5528462ffc31c44f2
BLAKE2b-256 58d9716d50980b2adc3859d540beed98e901279ab9f3d7c4caa10565ab29a6fe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.91-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.91-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 0091f857aaa0815496081be11ac8cf0b6e243f4c6396e2b98852a93483bdedbc
MD5 4cae36534246d2ba66af6e5752a6cceb
BLAKE2b-256 c0e7a22275f4395317edf2dbf83c3ecc97605547d5d6367e24fbbef8a8998f4a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.91-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 452.1 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.91-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 76d0d54ddb073e9a10cf2e6c41dd85ec97e7dc1610a5f83c982c91a5264d3692
MD5 c9c50b91b80969f4f47f43dd4543ab9f
BLAKE2b-256 6309dc9b2799f4744c0b27e175af310cb09333278bebad0b1ec9fb81cba8557e

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