Skip to main content

No project description provided

Project description

advent-of-code

Solutions to Advent of Code 2019.

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.78-cp39-cp39-win_amd64.whl (334.8 kB view details)

Uploaded CPython 3.9Windows x86-64

advent_of_code-2019.12.78-cp39-cp39-manylinux2010_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.12+ x86-64

advent_of_code-2019.12.78-cp39-cp39-manylinux1_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.9

advent_of_code-2019.12.78-cp39-cp39-macosx_10_9_x86_64.whl (391.9 kB view details)

Uploaded CPython 3.9macOS 10.9+ x86-64

advent_of_code-2019.12.78-cp38-cp38-win_amd64.whl (334.8 kB view details)

Uploaded CPython 3.8Windows x86-64

advent_of_code-2019.12.78-cp38-cp38-manylinux2010_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.12+ x86-64

advent_of_code-2019.12.78-cp38-cp38-manylinux1_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.8

advent_of_code-2019.12.78-cp38-cp38-macosx_10_9_x86_64.whl (391.9 kB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

advent_of_code-2019.12.78-cp37-cp37m-win_amd64.whl (334.9 kB view details)

Uploaded CPython 3.7mWindows x86-64

advent_of_code-2019.12.78-cp37-cp37m-manylinux2010_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.12+ x86-64

advent_of_code-2019.12.78-cp37-cp37m-manylinux1_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.7m

advent_of_code-2019.12.78-cp37-cp37m-macosx_10_9_x86_64.whl (391.9 kB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.78-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 334.8 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

File hashes

Hashes for advent_of_code-2019.12.78-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 7607a5565bfdd017e033ef437744847d717219d1c56d4cd74d03583d65464157
MD5 e2c37737ee3e95b5479d91923bd6ff87
BLAKE2b-256 ca2d9ceeac692c82a5ee663c71689c0f3d6c5bea5f36a3a88a476ef08ba34b61

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.78-cp39-cp39-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 1.0 MB
  • Tags: CPython 3.9, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

File hashes

Hashes for advent_of_code-2019.12.78-cp39-cp39-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 ee940896bc41b29b175caf1ae00feae4eb10bcf34a0795835310eff4c9d3733d
MD5 164538c860a15734755d9317bb6e728f
BLAKE2b-256 15cac6dc02b6c662a7e9b860feadf0f501dc2f7c84500585bf27f5cfddd1e060

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.78-cp39-cp39-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.0 MB
  • Tags: CPython 3.9
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

File hashes

Hashes for advent_of_code-2019.12.78-cp39-cp39-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 bcc1bdf7648713f73b1b2e0e7367ee799fe77985f6493c7e7787e7ff9aa892a9
MD5 45982b4740c597b7d61373dc7198e5ca
BLAKE2b-256 def51807454a3eeaefded9118228dcc2a8104ce5b2233be8e596079b8aab55c0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.78-cp39-cp39-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 391.9 kB
  • Tags: CPython 3.9, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

File hashes

Hashes for advent_of_code-2019.12.78-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 1821b043a1b11bc07d32e0c51aa09f792b059e14f8d6ec754a84f503da76f240
MD5 55f7cd87d56e65aabb5d33496297c5cd
BLAKE2b-256 68c6fda26d802096821db1a474034edc6862cf532bda87c38e86bc5ca64cf984

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.78-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 334.8 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

File hashes

Hashes for advent_of_code-2019.12.78-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 e79732ff7d26cf0665e82f0f465da3e2e65b480058b81cacb7dd8eebf4da7720
MD5 94c93f2952ff488d8065be71d792fd3f
BLAKE2b-256 da6d58e102363f5c2f1cd004a1b76ec0a6fda3dfd2bfd83a744e21301e766d09

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.78-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 1.0 MB
  • Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

File hashes

Hashes for advent_of_code-2019.12.78-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 799c2edbfa1148822ad0c749bacc81e70c52fbb57c2fe27e94b69fcef07d5a0f
MD5 9a0514216f02e6cb0048a813e122e808
BLAKE2b-256 c7162c3c273abc59f2307f8ae4e3fb555cc4df7840f3845248d8ce400257fd76

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.78-cp38-cp38-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.0 MB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

File hashes

Hashes for advent_of_code-2019.12.78-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 ab3fc2d1fa3ba18d046f8a85ec7e4136f197c460d160e1fa9d98d70868e38de5
MD5 13de0895acbc78df43f476d7f07801ec
BLAKE2b-256 04666a1c2adad2eda6d3217969bee6b640cf47f3b741bc6aad166bf8d869fb4e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.78-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 391.9 kB
  • Tags: CPython 3.8, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

File hashes

Hashes for advent_of_code-2019.12.78-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 d79139b05f9fbdaebf3ba34f83bc17a79293156f800ff1291d88c4dc16009351
MD5 b754ff503c5ea396ddf751ff316502e3
BLAKE2b-256 c5f9ffa99dbf716a7771557a9018a7c1dfa18fc4528a56dca63e04f6db289ae4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.78-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 334.9 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

File hashes

Hashes for advent_of_code-2019.12.78-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 8b230db6103811f560d4da38184a39a1d3cf76a52de83e45636e858e09ffe847
MD5 0aa629dd5c976fa37425d75a4a521016
BLAKE2b-256 873a1cff292c6c9b73ffe93d2c706de649fedf2bc249e3dcfc999c29a8ca8b4d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.78-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 1.0 MB
  • Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

File hashes

Hashes for advent_of_code-2019.12.78-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 1a8919134fdde886b77bce595377f8818b7539455839072c9cf724c9d08e0588
MD5 27d882f5fd05e29e7f51ed183bc855bc
BLAKE2b-256 818719c4b2661b950a0e5c8e1d33978ce5dfdaf98b8b3631dfd9130a00527b11

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.78-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.0 MB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

File hashes

Hashes for advent_of_code-2019.12.78-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 a6b34205e51902a8065e46f4dd1445d1783c354094f76aa7c7acae177826dc0c
MD5 f7527acaf93d422987d3b42e41371bb3
BLAKE2b-256 41e3d9f6806e9e40a8e8d57bbc3070122e596faf6e81140c1efc4a8f6e78ac43

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advent_of_code-2019.12.78-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 391.9 kB
  • Tags: CPython 3.7m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

File hashes

Hashes for advent_of_code-2019.12.78-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 49b5f9000ce720c7745bd2b733a9069cf314854177984bdcbe0b600772b3c467
MD5 cb9c6d56cfb4eedb1fa21d0f6f339964
BLAKE2b-256 f389f4a25d9653dadfb92c7ed3e6349b89362959200316e1ff651c588e1081b4

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