quipu-math
Mathematics of Incan knotted cord (quipu) data structures.
Quipu are Incan knotted cord recording devices. This package implements the mathematics of knotted data structures: encoding numbers as knot sequences, building cord hierarchies, arithmetic on quipus, error detection via parity knots, and SVG visualization.
Installation
pip install quipu-math
Quick Start
from quipumath import encode_number, decode_knots, Cord, CordTree
# Encode a number as a knot sequence
knots = encode_number(247) # [KnotType.long, KnotType.figure_eight, KnotType.long]
# Decode back
n = decode_knots(knots) # 247
# Build a cord tree
tree = CordTree()
tree.add_pendant(Cord(color="red", knots=encode_number(100)))
tree.add_pendant(Cord(color="blue", knots=encode_number(47)))
Modules
- knot — Knot types and number encoding/decoding
- cord — Cord and CordTree data structures with serialization
- weave — Categorical product of cords (weave/unweave)
- checksum — Incan-style error detection
- visualize — SVG rendering of cord trees
- calculator — Quipu arithmetic (add, subtract, multiply)
License
MIT
Metadata
Release files for quipu-math 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| quipu_math-0.1.0.tar.gz | 10.5 kB | Without provenance | Details for quipu_math-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| quipu_math-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for quipu_math-0.1.0-py3-none-any.whl |
Total release size: 20.9 kB
Release files / quipu_math-0.1.0.tar.gz
| Download URL | quipu_math-0.1.0.tar.gz |
|---|---|
| Size | 10.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
640edcec32ee625b9a57471ee902637f8967830a2c5f727f6061ca41141f438b
|
|
BLAKE2b-256 checksum How to use checksums |
7927e300a356af8d20d0c44acc96f1e8e93b31d36b91b597bcd3850496a80607
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.12
|
Release files / quipu_math-0.1.0-py3-none-any.whl
| Download URL | quipu_math-0.1.0-py3-none-any.whl |
|---|---|
| Size | 10.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f016faff68547fdec04fe850cc5c4b6f6bdbd4bf4c928352f5c4a1b46f11cde6
|
|
BLAKE2b-256 checksum How to use checksums |
ead38420fa57db7bf3dc33fc3277b684b0432a1a32bf84d279fc317b041e21f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.12
|
Security for quipu-math 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.