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

Uploaded CPython 3.9Windows x86-64

advent_of_code-2019.12.318-cp39-cp39-manylinux2010_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.12+ x86-64

advent_of_code-2019.12.318-cp39-cp39-macosx_10_9_x86_64.whl (713.5 kB view details)

Uploaded CPython 3.9macOS 10.9+ x86-64

advent_of_code-2019.12.318-cp38-cp38-win_amd64.whl (597.7 kB view details)

Uploaded CPython 3.8Windows x86-64

advent_of_code-2019.12.318-cp38-cp38-manylinux2010_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.12+ x86-64

advent_of_code-2019.12.318-cp38-cp38-macosx_10_9_x86_64.whl (713.4 kB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

advent_of_code-2019.12.318-cp37-cp37m-win_amd64.whl (597.9 kB view details)

Uploaded CPython 3.7mWindows x86-64

advent_of_code-2019.12.318-cp37-cp37m-manylinux2010_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.12+ x86-64

advent_of_code-2019.12.318-cp37-cp37m-macosx_10_9_x86_64.whl (713.3 kB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.318-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 597.6 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for advent_of_code-2019.12.318-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 d5c471802577b8d967adcfc79a1dc6f724d54303ebf2f65622edd804e99952b6
MD5 e4e92cfb1fb7c3b36eac86d3e92f8727
BLAKE2b-256 a8db00bee2bbb790b1db8d440448e8674e976e7b2c267bdf52a32cf81bb37352

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.318-cp39-cp39-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.9, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for advent_of_code-2019.12.318-cp39-cp39-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 5d3fe8f2771f44f5c2bfaf8c97138aa9188ef8ffbbb798d5a4b25426790ea65c
MD5 8fc823492e8cf1849878f699006b1af4
BLAKE2b-256 c14bd7a58c980e6a4ece3c683f0c408e78523fa26ac57348a3fa40c947fa4e4d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.318-cp39-cp39-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.9
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for advent_of_code-2019.12.318-cp39-cp39-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 7a9d7a22e1a227d51d0e9fa46cf0fbc07a0f866b2ea4f323aef1aab997c68ff9
MD5 af89ea04c70ea9578603e5cfdbb03633
BLAKE2b-256 b5db78485333998fb4191fb918b99949da557969937397b642331f9f3ab5d8c1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.318-cp39-cp39-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 713.5 kB
  • Tags: CPython 3.9, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for advent_of_code-2019.12.318-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 5f14c112672a88b0010d6ad8e3011e80fab002123e46cb8e78275ef9be89c54c
MD5 8fbc8265d29522e0f9cf95b4e0cc4f60
BLAKE2b-256 536e9569f00c45fb5307f560728d9e313bb91c84bee66e127209e97fed04fbe8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.318-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 597.7 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for advent_of_code-2019.12.318-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 48f70b7d9540edc44a11822ab2c70ae533eedd2802d51f2858d640d6d21cc567
MD5 d96ea2aced08d55252c9fbc0f622e429
BLAKE2b-256 fb32463070e2bc7d5ced6d8da8cea8d1e250632e3cb3b209796be6b05576caa6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.318-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for advent_of_code-2019.12.318-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 0839b445bc0f5ab6935717494f3815de581427e678d539d69c9bab2a0ca82954
MD5 545cd94e0c76fe25e77061500cfb72a9
BLAKE2b-256 829970e6389597233e3647be0697accb15cdb4dd52dce319af7827aabc06c094

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.318-cp38-cp38-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for advent_of_code-2019.12.318-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 709db08d4c4654798a12330ea741d5a92ed68a3268ffe8e8488d2578fcf28c10
MD5 7c40c00aa2a0aa88a919513abbb10d51
BLAKE2b-256 f9ee60cff9c07a1e0299c913935cc5efb797bb2e0ab17f12559c413c6f66cc3c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.318-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 713.4 kB
  • Tags: CPython 3.8, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for advent_of_code-2019.12.318-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 5bf2689331e19422434011e7ca14a60365c17b93bb9d2a37e8fd69ccd3b477c3
MD5 6a05c9d2d67299685bcc56c780ed167a
BLAKE2b-256 e2204d1f58497d97e269cd42e2ed4f198811f20aaf363c9537bc6ce901f4e2df

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.318-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 597.9 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for advent_of_code-2019.12.318-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 e75b45ce61f56ac27385b5b0f8f84aebfef1b643a90a28b9629b5765fb35c20d
MD5 c777240aad2f855b855ad0eab3a48de3
BLAKE2b-256 7f246c00a362b5de31c8fdda721399c6ee0135430275b6ca5640a2f7e0790d4f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.318-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for advent_of_code-2019.12.318-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 e246f3efafb65c05d464106e6fc1be4e29f986da99b2e2235150849e4493253c
MD5 c35d5837de173068ef270afd3a559b3c
BLAKE2b-256 bb6fabf7c114b6e8492a2c86f589de0c6f66e501beb06f94b9437625118cc213

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.318-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for advent_of_code-2019.12.318-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 3f1c94e4886bf2fd2243a6e9374c815e92359516f8983405b7feaedfe9fc8895
MD5 f8235c0dde31e079cb6631659bc05088
BLAKE2b-256 4c56b8d2bb7c8b8c57e001954fe6fa77fe9acd6cddd52543c0ce5844fbcc0566

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.318-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 713.3 kB
  • Tags: CPython 3.7m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for advent_of_code-2019.12.318-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 06943b7f0aa6e65ae7a088b567e3d31d3bb0091b8aa481ebba288ad68480a643
MD5 1c9d5dffc894c579dd2e0a76ea326e06
BLAKE2b-256 8fc7fe8cf1af372819f8cf70da961a570c40bda3c83ac152cd4c58b6b124d656

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