Mathematics of Incan knotted cord (quipu) data structures
Project description
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
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 Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file quipu_math-0.1.0.tar.gz.
File metadata
- Download URL: quipu_math-0.1.0.tar.gz
- Upload date:
- Size: 10.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
640edcec32ee625b9a57471ee902637f8967830a2c5f727f6061ca41141f438b
|
|
| MD5 |
3710ecac9cff4de65586acbf3f726a81
|
|
| BLAKE2b-256 |
7927e300a356af8d20d0c44acc96f1e8e93b31d36b91b597bcd3850496a80607
|
File details
Details for the file quipu_math-0.1.0-py3-none-any.whl.
File metadata
- Download URL: quipu_math-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f016faff68547fdec04fe850cc5c4b6f6bdbd4bf4c928352f5c4a1b46f11cde6
|
|
| MD5 |
50c88c79fdb560634682ade189ef1080
|
|
| BLAKE2b-256 |
ead38420fa57db7bf3dc33fc3277b684b0432a1a32bf84d279fc317b041e21f9
|