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

Uploaded CPython 3.9Windows x86-64

advent_of_code-2019.12.211-cp39-cp39-manylinux2010_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.12+ x86-64

advent_of_code-2019.12.211-cp39-cp39-macosx_10_9_x86_64.whl (491.5 kB view details)

Uploaded CPython 3.9macOS 10.9+ x86-64

advent_of_code-2019.12.211-cp38-cp38-win_amd64.whl (409.6 kB view details)

Uploaded CPython 3.8Windows x86-64

advent_of_code-2019.12.211-cp38-cp38-manylinux2010_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.12+ x86-64

advent_of_code-2019.12.211-cp38-cp38-macosx_10_9_x86_64.whl (491.5 kB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

advent_of_code-2019.12.211-cp37-cp37m-win_amd64.whl (409.6 kB view details)

Uploaded CPython 3.7mWindows x86-64

advent_of_code-2019.12.211-cp37-cp37m-manylinux2010_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.12+ x86-64

advent_of_code-2019.12.211-cp37-cp37m-macosx_10_9_x86_64.whl (491.6 kB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.211-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 409.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.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6

File hashes

Hashes for advent_of_code-2019.12.211-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 16bd381d3f16e7e20f646f5cbea35208f3a5703cce097d47036b2eb1c6d86b11
MD5 91e8d3e4c4da08d417739273771984e1
BLAKE2b-256 cca27d8f63805d54034add2025d79ff303ad20a35a3d68e3ffed55cde7d16587

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.211-cp39-cp39-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 1.2 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.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6

File hashes

Hashes for advent_of_code-2019.12.211-cp39-cp39-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 5275f3be43c794dab50a12d736af6fc364a25125bb9d2f22fdb8344d35467a50
MD5 657bf4e16f54fef93177a5794e66482e
BLAKE2b-256 5d16c3728a618929430b679355a8ebd6e6af84b066247030711ab2ff72905597

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.211-cp39-cp39-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.9
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6

File hashes

Hashes for advent_of_code-2019.12.211-cp39-cp39-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 ab46887d02b9988275fd79693c2728c47b914c1e2d01c64797bd286a58c00199
MD5 96371372927db72b1d0a669dffdfb811
BLAKE2b-256 a25ebdb3f8a8f47369644fcb88b665e88916b2db45f6f599765c99e9b99f80b8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.211-cp39-cp39-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 491.5 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.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6

File hashes

Hashes for advent_of_code-2019.12.211-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 16d26bea8edfcd0ba94f15bf89429161ffa939624b907a26b5161d7be1dcec77
MD5 0b1a62df25e61b7d7fc42cbaf052d354
BLAKE2b-256 58e00420662a9876fa264a49f65adab658449fedb6a8b5e9fa216049a5ba7b66

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.211-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 409.6 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.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6

File hashes

Hashes for advent_of_code-2019.12.211-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 f529c78e4a775d5999e9de9b7db321e51e0b63f438cf1e4277b69f33b04d679c
MD5 91d11b8bf6877f0de550541681768ccc
BLAKE2b-256 30f9cec2da125f02baec93ea762ac14cb4693de4ac5e8f14e76a7635f4e89e72

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.211-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 1.2 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.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6

File hashes

Hashes for advent_of_code-2019.12.211-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 91b7f96ef6ea2288a22da78d0c5f48f2e20b2f07604f1c4b0d8b4162a9d8cddc
MD5 73228d89b25e777d8d81abbb9181dae9
BLAKE2b-256 47d246189565283f7b2a16923d653fef52b9911f09e410d9e16b4d40976e7179

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.211-cp38-cp38-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6

File hashes

Hashes for advent_of_code-2019.12.211-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 5efefe9023996a3b67e085127e8f1697ca786ccaf0b98105a7f98ba76e48ea11
MD5 58cae5a221f06d7d1e5fe5147875a874
BLAKE2b-256 ec9874bef83c70cff81a4540eed2afbf6cde2b2c11837590e83d4fe97b70ee26

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.211-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 491.5 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.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6

File hashes

Hashes for advent_of_code-2019.12.211-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 13fb596eaf04267ed9f2d9f3aaccb8e53e2682b3fb12b971b2abdb653ce007f9
MD5 194a4ecffffeb54794e25718d7706fd8
BLAKE2b-256 8259455113bac56a6934f24021178d94ca575bddb041f04d5cde72b6edfabdcf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.211-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 409.6 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.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6

File hashes

Hashes for advent_of_code-2019.12.211-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 d8e0093631d727246366461b5cc8a5121dc0a6830614e7579cc0d198638b7bb2
MD5 e5bd7771cf45fb85790851a4a53f4789
BLAKE2b-256 6f15d0bef210a88a76ef951aa28fd44b664f20411fad6c7d78aebd9630eb4cd2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.211-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 1.2 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.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6

File hashes

Hashes for advent_of_code-2019.12.211-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 8095dda56d7ee0deb9a6b18b98422941eb11747597eab323cf1df06c8cfade9a
MD5 bcc53b9633b2e1d748cff0898aa9f938
BLAKE2b-256 329c3888368260948321cac3dd7f21cdd3fe69f310d7b68838c93dd1546e5040

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for advent_of_code-2019.12.211-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 33d9bc68f021d75b8545ccfd166ca998dc99e7d02e114054a3ff0511d41dcb97
MD5 7db9aedbbb1fa0cecdc07655a9c716b2
BLAKE2b-256 c4a7cebc9173db845438a79062725813ce4fd58907b5d9653e157cefaeb5dfae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.211-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 491.6 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.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6

File hashes

Hashes for advent_of_code-2019.12.211-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 7d6ce4ad9245a6fed16bef2940e882f1726df9942ae93862a8169cbcbeba90e2
MD5 5753c897879a87cb34bdbd93ce8a8fa1
BLAKE2b-256 316e7f780260be662d98b1706cf5a21543bb62cc55d59ff5efd971bbf13980b8

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