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

Uploaded CPython 3.9Windows x86-64

advent_of_code-2019.12.189-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.189-cp39-cp39-macosx_10_9_x86_64.whl (480.8 kB view details)

Uploaded CPython 3.9macOS 10.9+ x86-64

advent_of_code-2019.12.189-cp38-cp38-win_amd64.whl (397.9 kB view details)

Uploaded CPython 3.8Windows x86-64

advent_of_code-2019.12.189-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.189-cp38-cp38-macosx_10_9_x86_64.whl (480.8 kB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

advent_of_code-2019.12.189-cp37-cp37m-win_amd64.whl (397.9 kB view details)

Uploaded CPython 3.7mWindows x86-64

advent_of_code-2019.12.189-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.189-cp37-cp37m-macosx_10_9_x86_64.whl (480.8 kB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.189-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 397.9 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.189-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 7bf8045f7249c341a25fe04521eb8cef410925dc13ce97edba41cc5fa57ecab2
MD5 b7590d9f63ec0338903d86de3d53d093
BLAKE2b-256 aff966bfac3857017d65ed737da5d5f5ccc44e931b7077ff286c7b4c21d640ae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.189-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.189-cp39-cp39-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 f294fff0b864508217a23bfa6592467ad4041c7fd2c8573879db98656aff67ec
MD5 f241ffb8bf7045d15e34ed083534f299
BLAKE2b-256 b646102953a2aad41f115952b3c5dbcb7a43ef587fd9e8cdcb8854fb5e66e4c1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.189-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.189-cp39-cp39-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 b5381e80c6a24e41ae20cfa3513e0ac589deee0ff6e286f8cf0b83e75ca4a449
MD5 47ac36e505c7413eac5d9b89abd733a3
BLAKE2b-256 fb20ceb51f7a37048788cd6043c89b2dc0c68715803f08ffc45acda241454a01

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.189-cp39-cp39-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 480.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.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.189-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 0ebd0c874b4ea961c6f03bf1f837246738274a612a3d2375f0bfe4e3e8404a9d
MD5 2df0180afa39cb50cc43cfb0dd48e531
BLAKE2b-256 127044d15472cb020b7a035f16c5f88b96ff31883cc30e4d86959043547065e9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.189-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 397.9 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.189-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 1e1a39e9c323f00b956a182325640425580cd1bd1a323d9a79ca678eb57c3a2a
MD5 70c3ed923580c439be1f291242716dde
BLAKE2b-256 c9ad414ee393edf4511531ff17d9cccd248d2e0503d4b97a3ceeb347a3838b51

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.189-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.189-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 817255536998af7cda43e7b04d0b7b5695671e74fb9d506c1304cfde33f70830
MD5 6166dbf29e3cd440b034f331b1cfe276
BLAKE2b-256 5011af8d8b54d86086a6a4ee72bcbe7d0e0751ddade72eef9bd15e6d8cb620ae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.189-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.189-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 cfa0e8019ac52f57d00d2a48f9105a6c881c8a7f7dc74254f0ee17dd832e0fb3
MD5 ff1a32f8140bd807757ce0e922bb505e
BLAKE2b-256 01eef30e04665cab85a7ce8a2d49829c83ecf27d4b1e89ff17c2d575896d96d4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.189-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 480.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.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.189-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 e98a5a2103a621a2ca7a41948ce44b1f2ba07e08ddaa1d6cd05396c0a884e310
MD5 06845f4572605df3af7aeda61a68a5b6
BLAKE2b-256 ca1933a44af30f3b89bc820579713f3815eeda6f7cf38951051e5bdc74690f04

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.189-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 397.9 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.189-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 f211f734a8d112eb19886e43173f5e3e91e61d77845068181645a2ac5c88773e
MD5 2afb3348eeeda5f99f432b88800f5983
BLAKE2b-256 91bd3061c9a74ec29f3c21ee1245a777abf46006a73a3add18dae462986bc485

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.189-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.189-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 8f375e6a496ccb5a81d5fd8f8cc1620aa482944d46dd667f78965073885462c7
MD5 12af8fb9b40460ac8f3415cc4e676c7b
BLAKE2b-256 ab1f16e9061d7a7851229cec2b1903c2eba0d3f4884e3cd21e53e10f8e05e847

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for advent_of_code-2019.12.189-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 a2a64f11f69960a67e832ddea59376f055335a3ac0481f3ac07f90599929212d
MD5 fb231f8bfe7f04b8476724e84c1f13ec
BLAKE2b-256 9d73505acac37aac8f80e1260b5cc7d5ebd9acecf38966ae4854d2ede62260dd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.189-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 480.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.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.189-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 fa4433d05231f758a5c06b5397c6b019d33e6f3ed06b20e52bb33cd26e1ff440
MD5 d9ab613a16287ff7284ca10260de4907
BLAKE2b-256 92775d758700e09753688763ece44e6370832dc2da827889734020007ad06dd1

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