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.380-cp37-abi3-win_amd64.whl (553.3 kB view details)

Uploaded CPython 3.7+Windows x86-64

advent_of_code-2019.12.380-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.3 MB view details)

Uploaded CPython 3.7+manylinux: glibc 2.17+ ARM64

advent_of_code-2019.12.380-cp37-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.7+manylinux: glibc 2.12+ x86-64manylinux: glibc 2.5+ x86-64

advent_of_code-2019.12.380-cp37-abi3-macosx_10_9_x86_64.whl (678.5 kB view details)

Uploaded CPython 3.7+macOS 10.9+ x86-64

File details

Details for the file advent_of_code-2019.12.380-cp37-abi3-win_amd64.whl.

File metadata

  • Download URL: advent_of_code-2019.12.380-cp37-abi3-win_amd64.whl
  • Upload date:
  • Size: 553.3 kB
  • Tags: CPython 3.7+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for advent_of_code-2019.12.380-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 c465c149bdfd50ea0dacc69d91e1d5067b760112cfcf47a3e44bbd4ea2246fb8
MD5 207f3de53db5e7da3b0807097dbbf8f0
BLAKE2b-256 11b411f566f814b408c7c87e1d18c01d9df92a173d6427aace8da51de2315b95

See more details on using hashes here.

File details

Details for the file advent_of_code-2019.12.380-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for advent_of_code-2019.12.380-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 55bf319154f856faad622e999ca7a366bb9f84448bd6edea5bb5d048ea26db63
MD5 6bab9033e1ea89740180ec49af2b17f2
BLAKE2b-256 cc8ed36262d7a1ec9ae9de6de9d837fac7e77058bbef5dda1fccd3cfbb9c2629

See more details on using hashes here.

File details

Details for the file advent_of_code-2019.12.380-cp37-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for advent_of_code-2019.12.380-cp37-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 ace89be80c0bbc820227b3cf822db633f0178be6ce1e828e2b022bba5baff856
MD5 b7ca99cceba4a34b9f624c7550aa7f12
BLAKE2b-256 525f244a62544307b553a43776c8ba481fe7678da5ec63b5ac1f9969da5bed91

See more details on using hashes here.

File details

Details for the file advent_of_code-2019.12.380-cp37-abi3-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: advent_of_code-2019.12.380-cp37-abi3-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 678.5 kB
  • Tags: CPython 3.7+, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for advent_of_code-2019.12.380-cp37-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 f922ae4570556c3d0e4efb628f96954522b6aa0746ba02c9444dcb991369ed08
MD5 d8490e98a4c6c7d69e1cea7ea4abe7a6
BLAKE2b-256 78558a1e770f30f46393e42ad712d32e32a22ede8158956a98c78a30f539e4b3

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