Skip to main content

No project description provided

Project description

advent-of-code

Solutions to Advent of Code.

The solutions are implemented in Rust which is 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.132-cp39-cp39-win_amd64.whl (380.4 kB view details)

Uploaded CPython 3.9Windows x86-64

advent_of_code-2019.12.132-cp39-cp39-manylinux2010_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.12+ x86-64

advent_of_code-2019.12.132-cp39-cp39-macosx_10_9_x86_64.whl (463.6 kB view details)

Uploaded CPython 3.9macOS 10.9+ x86-64

advent_of_code-2019.12.132-cp38-cp38-win_amd64.whl (380.4 kB view details)

Uploaded CPython 3.8Windows x86-64

advent_of_code-2019.12.132-cp38-cp38-manylinux2010_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.12+ x86-64

advent_of_code-2019.12.132-cp38-cp38-macosx_10_9_x86_64.whl (463.6 kB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

advent_of_code-2019.12.132-cp37-cp37m-win_amd64.whl (380.4 kB view details)

Uploaded CPython 3.7mWindows x86-64

advent_of_code-2019.12.132-cp37-cp37m-manylinux2010_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.12+ x86-64

advent_of_code-2019.12.132-cp37-cp37m-macosx_10_9_x86_64.whl (463.6 kB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.132-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 380.4 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.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for advent_of_code-2019.12.132-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 db0db92441c4a39277f1bb16811a7fb66cff53a4181eacf03bb1c7ce56fcd585
MD5 de0cedf7e5e4b9fcf6b453924df83b9a
BLAKE2b-256 7af2be1736c16855df96143333810530b5b9dbd02201478ed5755c0ded84a0e2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.132-cp39-cp39-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 1.1 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.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for advent_of_code-2019.12.132-cp39-cp39-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 cb6a8347ddd9b803ce89ad27f0c9ef956fd67cd609ccded4cfaae6377699f4fb
MD5 caf234873ce04304a59dacd2be589a7d
BLAKE2b-256 a3ca0e6651d66ce9abbb61b153e9a946207b7b356d5a3439c127d062f189fc55

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.132-cp39-cp39-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: CPython 3.9
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for advent_of_code-2019.12.132-cp39-cp39-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 c3ea428b8378b8d0903c35ebddf9d499abebae1b2c9e4df8cf3497541c7a4f3e
MD5 710d3e782568772970b73911b872286e
BLAKE2b-256 d7c00cb61140053e939fce995896310da2c521d2e94aaa77e25cce73c2ae9277

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.132-cp39-cp39-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 463.6 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.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for advent_of_code-2019.12.132-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 2b547e03ffad4eb0d6bb3fd7259d91ba10f1421242c140b62ac47989e796cd1e
MD5 9767bb9438c37d2de5427773d9124a68
BLAKE2b-256 d143f84993e6f15845df6ce24cf08ddfff2b364699cf211f7e2f5469f57413c6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.132-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 380.4 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.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for advent_of_code-2019.12.132-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 6a16aec0178bd1d843e67e5f33a4e0a2a6c26c3a213f82ac8e27f72dbed716e7
MD5 88575654c809d1faecf405dc9fe9463f
BLAKE2b-256 8229ad162571e521c41f94ed1e25bc3243d1ea0fd51b981026b4a130bd4c5923

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.132-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 1.1 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.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for advent_of_code-2019.12.132-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 6479c38482aed972efd264bed15b3b04eee8c53e09a78ec4322cb96d08745382
MD5 a6a8ee03eaf8e2af2c6e21cbac01d252
BLAKE2b-256 129bf0c98a033a610a1d51dd75604775e3bb4ea7b0310c156360b6397ccf54fe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.132-cp38-cp38-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for advent_of_code-2019.12.132-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 b3194e21e3436d0e4551fca61c663a0c7a40827cbc2191ef89026c0d1fe847bb
MD5 97ab29d8f2470a2cf9aac9ad4ae46194
BLAKE2b-256 236273d487e33253bdf4aa16b0270520d0dbb3bbfc85b7ff6509ff6578e9d446

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.132-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 463.6 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.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for advent_of_code-2019.12.132-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 254a108e895ccc8e89641ab0cced31128cf020c057dcacc952531807fb524b89
MD5 fc8f39cbd6351f524a711efd5bb6e537
BLAKE2b-256 b94a4c394a1eea9cd99ca6c1ce54cabce48b9b4c359b8d1de275791c50f60f6c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.132-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 380.4 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.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for advent_of_code-2019.12.132-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 fd65c7eafc923d8a35f5069723ac8d55848dfad06525a7a6a5d8b0af261a1186
MD5 15affe3c9f9b9e87852ef8baa1f9374d
BLAKE2b-256 c1b3b570a55b7cc067ac817aa1454e824d053041afaac43e8998c0453e71ae1c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.132-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 1.1 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.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for advent_of_code-2019.12.132-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 6ce3b6bd3d2c5ac46ecc64c8ecb0194754e8c4ee99976ba6134a1d71c2f07f37
MD5 e27bee2d2361ac4622788f29078f09dc
BLAKE2b-256 055414cbaa0fe4b826fbf54d9f00701b4511329dd0942c908ddd274f0edf0625

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for advent_of_code-2019.12.132-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 bb5cc32f0f60e1ba17607e834f4232bda26d752de856b1d7f41364673a1831c3
MD5 2ff640abb5f382decd7425d9067e0aad
BLAKE2b-256 ef0c530211182f0dd1fca41e9474bdcdf0b02a0714bb25b8e49712e8ebf848e9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.132-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 463.6 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.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for advent_of_code-2019.12.132-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 46e52d3c21d389373fa2ab2da9085e424406adf721d06a696a967a61704af317
MD5 4dad6a06063835ab7a0566bec37666a1
BLAKE2b-256 b91f23dd78a85b64a5942db739b9c31a3cbef084af29e3eb2d8b9098cbddef74

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