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

Uploaded CPython 3.9Windows x86-64

advent_of_code-2019.12.294-cp39-cp39-manylinux2010_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.12+ x86-64

advent_of_code-2019.12.294-cp39-cp39-macosx_10_9_x86_64.whl (655.5 kB view details)

Uploaded CPython 3.9macOS 10.9+ x86-64

advent_of_code-2019.12.294-cp38-cp38-win_amd64.whl (542.9 kB view details)

Uploaded CPython 3.8Windows x86-64

advent_of_code-2019.12.294-cp38-cp38-manylinux2010_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.12+ x86-64

advent_of_code-2019.12.294-cp38-cp38-macosx_10_9_x86_64.whl (655.4 kB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

advent_of_code-2019.12.294-cp37-cp37m-win_amd64.whl (543.1 kB view details)

Uploaded CPython 3.7mWindows x86-64

advent_of_code-2019.12.294-cp37-cp37m-manylinux2010_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.12+ x86-64

advent_of_code-2019.12.294-cp37-cp37m-macosx_10_9_x86_64.whl (655.1 kB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.294-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 542.9 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 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.294-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 0a42622f853b8ed96cea4d318cec36bec5b3444a7d99630c3fd612d5f5c4c5f4
MD5 f9197c9f08e716d611fc8a2fe835eb21
BLAKE2b-256 a950e46e3a29c9e6928cf6f13561d67168ae87297112ab1c4d3e36d090dcd201

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.294-cp39-cp39-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: CPython 3.9, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 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.294-cp39-cp39-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 30dc34b30b7e0b4dd05154f4d97470b1e48731ab3ca53d9d2e46ebc733c6cc8f
MD5 e1605f36a2ab5a54b286fe248678576a
BLAKE2b-256 4dd5b4990314e60f84bb39bba83c5d54556117dbe5e16632f2f6efa40efcf3af

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.294-cp39-cp39-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: CPython 3.9
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 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.294-cp39-cp39-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 b8a17ecf38f7437fa377cb56bf5170fbf9b9698a76c33bfc1cace7c801586161
MD5 63b72ae262923e20b06c36af3853799d
BLAKE2b-256 8272a437619a86b84c97d2e0ab44e998891c4f83a2ea52792807a1a3e016b3d5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.294-cp39-cp39-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 655.5 kB
  • Tags: CPython 3.9, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 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.294-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 db05a536318462af03543fd5f4eafdaf0ebffd0798ca3779d949f8feb4347473
MD5 7486ed23cd6d8970bc7811dd1785e7c1
BLAKE2b-256 0b06dfcaeb626b3ed073d5e11e8bfa6a2ac844a49a3aab29dacdf23f3aec83c1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.294-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 542.9 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 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.294-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 afa2c8888907a13b484995ddb6516debadfd1b7f899db636733f3f9e32b54901
MD5 036e95f487657d9cc7ec43704d3582f5
BLAKE2b-256 7b5ea67955a939a63a9319a2a7af0798d4b32236e794ecf46c092794c34767eb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.294-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 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.294-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 37fbbab0ad1256cb106bd919fe2a6f3da14f4751f1ac0d74a5ed463b3537cfe3
MD5 ccd5d3e6eac80e18b1ec6e9fd6757381
BLAKE2b-256 defc66955e16c1ee215fa7c7b458da71e0f9bce4980dd04667273bc56c6879b3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.294-cp38-cp38-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 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.294-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 280643b6f62ea5192a1115444bd409ed6f84a43198857f43bd753acdae452c57
MD5 82cf39baba78c640e68cef3548839319
BLAKE2b-256 fbef9368ac7d42c96a6c90cf383f267ce7b56af923632c88bcd845d58727ec50

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.294-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 655.4 kB
  • Tags: CPython 3.8, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 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.294-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 7a36309065e6287aa51556e1802181db00ea0d6d2a92d3d7260dab514cec13c7
MD5 b97891177f7fba73ffcf2158c814617a
BLAKE2b-256 a2af985b240f29f5301bedb9a69762261617c21e8583ce6eba715b1d191c65ee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.294-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 543.1 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 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.294-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 0f8ff61f2a0675696373e56800c181a375236638c1015c86d5bafe84b712fb3a
MD5 1aa7ddb38db009658d2a815d913eef5d
BLAKE2b-256 046d638632eb3647e8c8a79847d3127d406b89a472a56b29313818c9d4fbea3d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.294-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 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.294-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 5ded85ff6646a91a62acd1b8d92a961087af60728454ebdc4cdf833a5a08603c
MD5 8595653c740d6ba2e5a0a9f610f0bc9f
BLAKE2b-256 ae075feb16f0db66824ebb20f8403a99d49fef4f3cb35f2ca11b2079db56f066

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.294-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 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.294-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 d33f742265910c921e4c6bd229a55f76211d49137b8ffacda91ff5a9e2519cbb
MD5 eefbfec79dc9331f01e1bbe8dcdd66ea
BLAKE2b-256 f4775d57227ada9249de4e36e84f62c4b19f67c006edffeb26a4725bc581e029

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.294-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 655.1 kB
  • Tags: CPython 3.7m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 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.294-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 652bf047aae0f9dc661d77adfabc51717698db025cfdd5cb36138bc7f3290006
MD5 1d864cb1568a173bed55bef5346067cc
BLAKE2b-256 5433f23f86f0db0ee0d3a030269840d2be093d189dad393d62a821e2a0fc5982

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