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

Uploaded CPython 3.8+Windows x86-64

advent_of_code-2019.12.418-cp38-abi3-musllinux_1_1_x86_64.whl (692.4 kB view details)

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

advent_of_code-2019.12.418-cp38-abi3-musllinux_1_1_aarch64.whl (630.1 kB view details)

Uploaded CPython 3.8+musllinux: musl 1.1+ ARM64

advent_of_code-2019.12.418-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (660.0 kB view details)

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

advent_of_code-2019.12.418-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (595.4 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

advent_of_code-2019.12.418-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.418-cp38-abi3-win_amd64.whl.

File metadata

  • Download URL: advent_of_code-2019.12.418-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 578.3 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.418-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 9f908b72d742c6f0b7898d8076199c0e335ef7110d80fc9efeefc59f218fae1b
MD5 e26bb313829c7f129940991732d352cd
BLAKE2b-256 a98cd012ec55ceb88f2dd745074e4b0634c6fdae93505a114f26a9f7bda37cb9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.418-cp38-abi3-musllinux_1_1_x86_64.whl
  • Upload date:
  • Size: 692.4 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.418-cp38-abi3-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 a7a2a36383e0e2173ca606c017d37de47541cd6c743650a8d1e881393e66a7e0
MD5 28d119c832687d2eb557904bd9c41969
BLAKE2b-256 54c920546bae716c1dbb9a84bcbe5235adcf5d88d2ba31cfbce6bdf6c9e331d5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.418-cp38-abi3-musllinux_1_1_aarch64.whl
  • Upload date:
  • Size: 630.1 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.418-cp38-abi3-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 46c58a261c65906b11dcea0f5e92e834424d20cda72fe9ba72fc6c2b32044909
MD5 cc9fc59f318d08b44a811faaf67ad2aa
BLAKE2b-256 8e7928577dd4dac955e110177f1f78b3a92e3cbe2cadbc0dd404de67ddbf6e51

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for advent_of_code-2019.12.418-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b31f2161e707e956b62a158a19e293d77d653351012cc516e6792071af87f27e
MD5 5ee762944fb895334b8acb3a7c1f0ed3
BLAKE2b-256 5a01a1c0f5b4eebad563ac28d4da0e51efa04474b312d95e9901c20dc375072a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for advent_of_code-2019.12.418-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2d6ea70a37ad831f1b42b8a8126b9e5a20337de6e379755c57798367add2ad4c
MD5 cee75ba3da9fcf00e431dd5d778d0905
BLAKE2b-256 8e11558f81510bde0371c6855f8336f8e240cf2c41931965b7acc31ce73af36c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.418-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.418-cp38-abi3-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 561aeda8058925ee1a38e46faa88c62b3a29c780890c9c570ce41c8b362269f5
MD5 2275e4203f6910c76f6fe610c867f906
BLAKE2b-256 2f626860ae60ebd09f924dd525a1890900419c8bf9c757a1e16febc8084137e9

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