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

Uploaded CPython 3.9Windows x86-64

advent_of_code-2019.12.226-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.226-cp39-cp39-macosx_10_9_x86_64.whl (503.5 kB view details)

Uploaded CPython 3.9macOS 10.9+ x86-64

advent_of_code-2019.12.226-cp38-cp38-win_amd64.whl (422.8 kB view details)

Uploaded CPython 3.8Windows x86-64

advent_of_code-2019.12.226-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.226-cp38-cp38-macosx_10_9_x86_64.whl (503.5 kB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

advent_of_code-2019.12.226-cp37-cp37m-win_amd64.whl (422.8 kB view details)

Uploaded CPython 3.7mWindows x86-64

advent_of_code-2019.12.226-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.226-cp37-cp37m-macosx_10_9_x86_64.whl (503.5 kB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.226-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 422.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.226-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 eba714a40e73e648226e5e5dfad9a9d7b0171ca42563e582b037dcd5b696a5ba
MD5 fb56a4a8ce5080ae1b692d1270b92f7d
BLAKE2b-256 4b6c0454dc07b1388856d2376ecc67c8062d73f9be29f5884032f7bb6ae5ddfd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.226-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.226-cp39-cp39-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 cf3cb1a727f35022baa5c9ca2022e3adec83a0c5ce667024d69d4251ce882fcb
MD5 737704ab63798417de4d3b4927fb5fce
BLAKE2b-256 25a37bfeff0b604a0084eb8a83c1f90b172462e6cab4b5f244fe648df1abc7c5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.226-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.226-cp39-cp39-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 a6cf91c5c1dfb98133b452749379b5d0275f7e9eafc8443c3422b62da623ab4d
MD5 6f783cce86a6ea3c2e594c0391636b3b
BLAKE2b-256 d763462b2db28f3e45e60048e5453af854d70712c4dfc3ae6562514abfe26df5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.226-cp39-cp39-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 503.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.226-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 23cf008d7bdf9aa637fbf8d5e4e9f0b9ffbe993db6c3f6c3724819b851691e58
MD5 a1bbcfc854aca4475f6673ac4fe730d1
BLAKE2b-256 8d6c70fe4fefa518708f4517c244e04bdc26e70218af16942c770859005b5825

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.226-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 422.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.226-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 aa9fc3caa25516a511f1a9a3e15973e70c56f16e29ed45f1a6936d24f0d704ec
MD5 76d55e58e134fad28c6452c4b801aaa9
BLAKE2b-256 3c99547c306c403f9735e218f96c8a333787a90b3d78c7844f8a80439920d07e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.226-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.226-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 dd966939e1d2783d178c378b6cf8b2123969e507e8b41a34c17cd45d0f1acc0f
MD5 d31e8407226f336a53d08c357000bb02
BLAKE2b-256 bc11e83ba81d172996bd9e06e170e909ca2c890f43f215833be3c7681f76b6f8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.226-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.226-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 8fda612547c79aef44f5b6ee8e9d0b78a3ea1590ccdcf523166d82abc579eb2c
MD5 6e8cc282df695119a17c989e78da8665
BLAKE2b-256 a3df55e2e9b0873247b04c2b68c614e0b975f4ab13531c762736e0175c36069c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.226-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 503.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.226-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 80631eef9698594c2466b99f4954244509fcc24bdfaad3e30e022b216047b24a
MD5 490ce42f45660a2b5618d08d66d6ee53
BLAKE2b-256 a5e885a9fc2735ec8b7fe0e2d61105c330b6715d13487b5f0c5da5d0c7e2940f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.226-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 422.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.226-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 9943a6b74c31b383b1e4b112292cde2dc866535f411aa622b2d4ebb017a2a944
MD5 46dbeed2c8bd3dc2ad149ae4f95d320d
BLAKE2b-256 fb7b1afb2f661ad0a46b925bddc654da65772f96a5353caccc1b3384cfc31d93

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.226-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.226-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 90d3959c291486683c2552827e53d2fa3cd809473a3ff33624b9b51869b3afff
MD5 249ac75bc3dc9446d66cddadb6f5809c
BLAKE2b-256 46991d90d559c6f26b6382b8a50927072a7445bc0efc9f945334241b9fb8207f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.226-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.226-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 a53c2167924933b246fade94c8086537078b377592fe564264e768a0074df1e8
MD5 4ed5f668028600a441749e3d5f8f5898
BLAKE2b-256 e01a27f120daa8560ed1cc06d2c4e801ce36f1a71887bdf489f774eade21a6d9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.226-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 503.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.226-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 454597f783f5e503bf8672070f54c5fb5239899252d81f11d74536bfb8a44286
MD5 d93a5768e4d7f2684b9f59d76986ec70
BLAKE2b-256 896af8ba6f20073b199b5485230e5bd3839cd7e86b4997748602e06ee67a8307

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