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(day: int, part: int, input: str) -> str

Examples:

from advent_of_code import solve

assert "3" == solve(1, 1, "14")
assert "30" == solve(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.209-cp39-cp39-win_amd64.whl (409.9 kB view details)

Uploaded CPython 3.9Windows x86-64

advent_of_code-2019.12.209-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.209-cp39-cp39-macosx_10_9_x86_64.whl (491.1 kB view details)

Uploaded CPython 3.9macOS 10.9+ x86-64

advent_of_code-2019.12.209-cp38-cp38-win_amd64.whl (409.9 kB view details)

Uploaded CPython 3.8Windows x86-64

advent_of_code-2019.12.209-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.209-cp38-cp38-macosx_10_9_x86_64.whl (491.1 kB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

advent_of_code-2019.12.209-cp37-cp37m-win_amd64.whl (410.0 kB view details)

Uploaded CPython 3.7mWindows x86-64

advent_of_code-2019.12.209-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.209-cp37-cp37m-macosx_10_9_x86_64.whl (491.1 kB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.209-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 409.9 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.209-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 573a68e9198b4ef558ff8383ec9129acd61b4faa9d59fff00acedfa673b42dea
MD5 14c1eb4ea90b6b0a61a57551a1bfbad7
BLAKE2b-256 0f81e3199d9299e6321478bee13274410077802a03f93006fb07b74e519f89c5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.209-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.209-cp39-cp39-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 c7cdc3a0f00434aab18a6b16d85b2a1615fb5d59740c28857042426f7421675d
MD5 5eefedf0d2cb972ebb55c2235ffd3f25
BLAKE2b-256 1f8613466f43a01c73894248cfc0a922e97374eab752f7c3ad721e9472311eb9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.209-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.209-cp39-cp39-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 27ab225308a91edef76eb4812ad62d794a49e44604619d21f61c75ee80ecca23
MD5 00e65116566ae4e66535bf2318224e78
BLAKE2b-256 519fa1a34e79f48ed7072eaaff55b6c2a7b5ea3d2a9bf1441efe3a1cb50681a8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.209-cp39-cp39-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 491.1 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.209-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 7b2c80cb9a04124a05098a1ee729ffa9cb126ef7ae5a7370c2237a65f72379fa
MD5 2eb184a4ba19b52a270fd4ee3f63397d
BLAKE2b-256 4aa51eef0f5a91440c851a70e0f19e96f5e340458ca92c9f85b92de90e1e09c2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.209-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 409.9 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.209-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 9a7684a70763e4365ec60a6d9b87bbb047f67efcf595e8c8abcd9c86617120ab
MD5 44f758efed1a26373552cf580ddf2ab8
BLAKE2b-256 91d83fa293b80e9cd2c99ff4214adea386138456a0e95132c3c55ce5a28fea6e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.209-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.209-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 23848ba28e1c2adfc5338d99118476902266fff1f719c9aa9773b10d32f98789
MD5 28449ed437f03e55ea4539c04111c95d
BLAKE2b-256 816a8cd93a8485eb6a00d656ec2bc0cb84b290b39f36f29de10599f1f9022114

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.209-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.209-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 f2f60d5b522dfc50388ae01b018e09aaf402636ee1941ac814360f8bc448517a
MD5 ffbdbee1e0b48f58233d88e554a49aa7
BLAKE2b-256 4461dce5ddb8a7824ccf9d85969d2138eeade826101a8ccbb2cd831a3f120792

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.209-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 491.1 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.209-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 5f8a66a14da23e1f0b67de34dbd052e06facb4ae17ae40008bbfcf7a69db5d6a
MD5 db7c2b4deefd514fd6d5d969a315e341
BLAKE2b-256 9760667e33e9bc5cd9031dd3fcf7bc892e9b5aeadcd87e6b8019bf1ba4288a6b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.209-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 410.0 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.209-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 f56fafc378902987d05353ee60bc907bfbe49275a305de48d5ff4466999b8d1c
MD5 3928e1c57279ab9d31c867316b56b087
BLAKE2b-256 441cee8c9785b3289f05d135c459d4e91f3ed38aefb484797856cd8b268f1c25

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.209-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.209-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 c5de3710fec0e5a68691af71a25a2fca91994dcc74d396965ea1e169354d132c
MD5 5d83dabd95735d20b4703948f86ba2ef
BLAKE2b-256 9bba344316703e9155c0c8a445c0fc1ef373a1a8bb7d5ca20519799b51088e67

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for advent_of_code-2019.12.209-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 2036bf958b39fd46dcd466c2f376fa0e34d8445d12b7a9d9eb8f289da2780a13
MD5 bafa2acde022799c79d64492ca909827
BLAKE2b-256 8169a2d7977817ad8fca86403466cee1c61d108afae02065a76eaa23714073e3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.209-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 491.1 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.209-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 b5bdb05d094af57ff60c2a0b6710d0cb879257e2a8970a07523cdcf6b9d8960f
MD5 b703e20b6687828ea5ee2d17b2551afd
BLAKE2b-256 44dc2468d57b41806ea2142fb2a27afd5fa096645ff04e1386c09313fae36758

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