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(year: int, day: int, part: int, input: str) -> str

Examples:

from advent_of_code import solve

assert "2" == solve(2019, 1, 1, "14")
assert "30" == solve(2019, 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.223-cp39-cp39-win_amd64.whl (417.8 kB view details)

Uploaded CPython 3.9Windows x86-64

advent_of_code-2019.12.223-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.223-cp39-cp39-macosx_10_9_x86_64.whl (500.5 kB view details)

Uploaded CPython 3.9macOS 10.9+ x86-64

advent_of_code-2019.12.223-cp38-cp38-win_amd64.whl (417.8 kB view details)

Uploaded CPython 3.8Windows x86-64

advent_of_code-2019.12.223-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.223-cp38-cp38-macosx_10_9_x86_64.whl (500.5 kB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

advent_of_code-2019.12.223-cp37-cp37m-win_amd64.whl (417.8 kB view details)

Uploaded CPython 3.7mWindows x86-64

advent_of_code-2019.12.223-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.223-cp37-cp37m-macosx_10_9_x86_64.whl (500.5 kB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.223-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 417.8 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.223-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 b643ea0e0335051e9b1fd6dc2676cfa16832abbde0c0f91f336ad99976d3aeb7
MD5 bf44c10631b56ab23395da40b5a300b4
BLAKE2b-256 aaaa3343a903e8dab8a44bca1bf9f699a3a22c36d24229c1605dfce1c1fb6c31

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.223-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.223-cp39-cp39-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 77702be0dc709637c15a3478fb0205a87974662fb8bf2ae9d4f07b9577a231cb
MD5 dc4d27a420cbb7dfb0893cc44da533be
BLAKE2b-256 ac24f26579361a4e721cce669dee1b764fca9d9d372865291c6e66741216eade

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.223-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.223-cp39-cp39-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 46810e2bf6d7739791c7caeacc7c4542d932c6f7761e6f6a89be83a57d189e27
MD5 acdbb0ce00b2ece387e7839b74951149
BLAKE2b-256 564cb565e95d67f766d0df1cbd73613326d5fc4dbf8529fdba058028b8905e89

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.223-cp39-cp39-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 500.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.223-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 9c1179677d31f5d259dc7fd562a5a8f0003d8846d3a499dd7a31ee77febb1c04
MD5 24a32bf79e0b6f8aed34bb15ba05d29f
BLAKE2b-256 5a73678281463068d9a58d9e2aff30aba59be6799db6d6581cfa2c915356dda3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.223-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 417.8 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.223-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 e3449f6f553e724a7fad9808bf0e22ab81b21c19265e48487beb90321384f348
MD5 9c10a4ce0f2eb11624e9dc101d06c20f
BLAKE2b-256 b49a4635d7756e74351c329e67e5cc7cef1e22091f8989a8708fc72914aff31a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.223-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.223-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 23b00b75abebd1147679c30f95ccfdc79febee1f3c9d72830e0d94a95b97996e
MD5 3fc9d318a08e25dba130ede4860dd8ef
BLAKE2b-256 ecfde230f86d9080e7cbb8c7825a95666a8ba060d6e8fa56963c06398efc0d07

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.223-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.223-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 2202715d00d8250e7fde7317e57103447bec88fb3aebd9f6786c98c56b029eaa
MD5 86afc52769afa4b6717a1ae291961159
BLAKE2b-256 1f3ec5d9ae712109a2d0715fd7efc4805807b1037c05f4d2b5c7d149c1bb86f9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.223-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 500.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.223-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 8ce439d1da89b05c9e2f2cfcd1e355effe9e7bcbe1191949391e88c53ffe9775
MD5 2821e46511e3781924eb705b2819c96f
BLAKE2b-256 1a4925f05f857a48f405dc70b639a36839cbe3d6a74d5c28a341d20539e031f0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.223-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 417.8 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.223-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 ede60067932f960ce82c7aea0021efd068b693a1338827d6ae60caf5de90c9f4
MD5 15864db7042a4303e4a1e9212c14e4d8
BLAKE2b-256 f65e3a6aeb6b3c599798bfdc5960f212325e638946ff5f84b4a2a6ef6299db12

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.223-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.223-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 2d043162d35b75c57a070460079403d125461975fba85505400f34d41de631cf
MD5 d5c4079418a20c4279811b4c6c7d3daf
BLAKE2b-256 c4f3c6de9f27300c7ff345f6ae0350062af735c0d4d52530e522764645b05532

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.223-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.7m
  • 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.223-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 ccc38a88dde47c83e521db3aaea2a057e63711066cfb63ce89789c3145c8acfe
MD5 6789090ba601cedf7723f541b84e4bb7
BLAKE2b-256 d542c652981ab6ad912d2337843a247db707b6146049c5e28b65e95a05944484

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.223-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 500.5 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.223-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 a6febf655f9093146333bc61386624df70e30e8b9d11a727bc71fe0971fc97db
MD5 0a9e5ac20de850518a8fca86b3602bb1
BLAKE2b-256 b4b39a8ea59f41d0f034c645625f56f105b691ec07378e3fcf118bb2f7f42e63

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