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 solve(2019, 1, 1, "14") == "2"
assert solve(2019, 3, 2, "R8,U5,L5,D3\nU7,R6,D4,L4") == "30"

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.420-cp38-abi3-win_amd64.whl (583.6 kB view details)

Uploaded CPython 3.8+Windows x86-64

advent_of_code-2019.12.420-cp38-abi3-musllinux_1_1_x86_64.whl (698.3 kB view details)

Uploaded CPython 3.8+musllinux: musl 1.1+ x86-64

advent_of_code-2019.12.420-cp38-abi3-musllinux_1_1_aarch64.whl (635.6 kB view details)

Uploaded CPython 3.8+musllinux: musl 1.1+ ARM64

advent_of_code-2019.12.420-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (665.4 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ x86-64

advent_of_code-2019.12.420-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (600.4 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

advent_of_code-2019.12.420-cp38-abi3-macosx_10_9_universal2.whl (1.2 MB view details)

Uploaded CPython 3.8+macOS 10.9+ universal2 (ARM64, x86-64)

File details

Details for the file advent_of_code-2019.12.420-cp38-abi3-win_amd64.whl.

File metadata

  • Download URL: advent_of_code-2019.12.420-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 583.6 kB
  • Tags: CPython 3.8+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for advent_of_code-2019.12.420-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 805d946035a19ee572bb546c57a86bf664dc8f35ce39a17754801e2c2d4049c6
MD5 0e642684f08ab11276416d8a8892c9bc
BLAKE2b-256 3734a4b54ed6c9eb1446c7564802f3a2872cc21fe5eb7e0dbc88e0467923e57d

See more details on using hashes here.

File details

Details for the file advent_of_code-2019.12.420-cp38-abi3-musllinux_1_1_x86_64.whl.

File metadata

  • Download URL: advent_of_code-2019.12.420-cp38-abi3-musllinux_1_1_x86_64.whl
  • Upload date:
  • Size: 698.3 kB
  • Tags: CPython 3.8+, musllinux: musl 1.1+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for advent_of_code-2019.12.420-cp38-abi3-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 17edf9dc1dd7c0b6fa374689d728b0ada71c52ee8e7f79e7c935b38e8739530a
MD5 5956e5ab3ebee9a91d0d5bb4e6803c05
BLAKE2b-256 06e121c2dec654f9244e6230a0ce3ba97c5358e159b35c4e147a2cf7c380ddfc

See more details on using hashes here.

File details

Details for the file advent_of_code-2019.12.420-cp38-abi3-musllinux_1_1_aarch64.whl.

File metadata

  • Download URL: advent_of_code-2019.12.420-cp38-abi3-musllinux_1_1_aarch64.whl
  • Upload date:
  • Size: 635.6 kB
  • Tags: CPython 3.8+, musllinux: musl 1.1+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for advent_of_code-2019.12.420-cp38-abi3-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 be48aa7a56a1ea42bda6c9a38899b7601637cede9d904a13443b8f94472d7e51
MD5 122e84cd5fee84391870c98ae4903acd
BLAKE2b-256 2996a401e087fe3d65030f4868ae90add78537359215e74fdb8e0e831caac6d0

See more details on using hashes here.

File details

Details for the file advent_of_code-2019.12.420-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for advent_of_code-2019.12.420-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 274c3435670b02336d329244e71097dffd153765385f121306f7b48980017f20
MD5 4c51f8e5d088467577552862af782380
BLAKE2b-256 574bef12014a39b9460ff2fa728a32b31f24834a2dbed0c9a74a214997524f29

See more details on using hashes here.

File details

Details for the file advent_of_code-2019.12.420-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for advent_of_code-2019.12.420-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 1c583d608ef26e7dd814e069d664d41cb60e57f1850cdbe2303da9e0ff9419ee
MD5 d2f3aca67a1740773189cb9a2ad9f1ce
BLAKE2b-256 4d17fbd7004c392e2fd440914275e7593083f2a01c7e3244fe516b340567ca06

See more details on using hashes here.

File details

Details for the file advent_of_code-2019.12.420-cp38-abi3-macosx_10_9_universal2.whl.

File metadata

  • Download URL: advent_of_code-2019.12.420-cp38-abi3-macosx_10_9_universal2.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.8+, macOS 10.9+ universal2 (ARM64, x86-64)
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for advent_of_code-2019.12.420-cp38-abi3-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 6dc123d8b2e884f2d2e4a55b12f88f0f5733c37b7f88a296a1b4e24e2bdf6881
MD5 c25a5626ee73aeb88dc9e2420f6a6753
BLAKE2b-256 cba62da7fc5b1f70430a7d7ed790666870cfe4f201a448d883715f5b44a683de

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