santa-helpers
Helpers for Advent of Codee
Free software: MIT license
Documentation: https://santa-helpers.readthedocs.io.
Features
Calculate manhattan distance
>>> distances.manhattan((-3, 1), (0, 0)) 4Generate neighbors
>>> list(neighbors.neighbors((1, 1))) [(1, 0), (0, 1), (2, 1), (1, 2)] >>> list(neighbors.neighbors((1, 1), 8)) [ (0, 0), (1, 0), (2, 0), (0, 1), (2, 1), (0, 2), (1, 2), (2, 2) ] >>> list(neighbors.neighbors((1, 1), p_min=(1, 1))) [(2, 1), (1, 2)]Generate points in path
>>> list(paths.path_points((0, 0), 'R2')) [(1, 0), (2, 0)]
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
0.0.1 (2022-02-02)
First release on PyPI.
neighbors
parsing to dict
0.0.2 (2022-03-08)
manhattan distance
points in path
Release files for santa-helpers 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| santa_helpers-0.0.2.tar.gz | 17.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| santa_helpers-0.0.2-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 22.6 kB
Release files / santa_helpers-0.0.2.tar.gz
| Download URL | santa_helpers-0.0.2.tar.gz |
|---|---|
| Size | 17.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9c6633a9f6dc51d6b4944560b8aef9bdd050fc82de97e26c65b31c89bb5db6c9
|
|
BLAKE2b-256 checksum How to use checksums |
736f83a081bf2f05dad883f3af5ff155a6d8476bc6db965dd4ec9c51aa895e34
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.14.0 pkginfo/1.8.2 requests/2.27.1 setuptools/60.2.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
|
Release files / santa_helpers-0.0.2-py2.py3-none-any.whl
| Download URL | santa_helpers-0.0.2-py2.py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
b081ce221a02b3a3f406922d64b86f19a29505ef7eae283f01e6fda164a69d64
|
|
BLAKE2b-256 checksum How to use checksums |
7bd910426d14943fe819f532d6bc4d01a7234c61ff50970fb4d14738cf2fc0c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.14.0 pkginfo/1.8.2 requests/2.27.1 setuptools/60.2.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
|