This release is a pre-release and may not be stable for production use.
flat-tree
Utilities for navigating flat trees
Flat Trees are the core data structure that power Hypercore feeds. They allow us to deterministically represent a tree structure as a vector. This is particularly useful because vectors map elegantly to disk and memory. Because Flat Trees are deterministic and pre-computed, there is no overhead to using them. In effect this means that Flat Trees are a specific way of indexing into a vector more than they are their own data structure. This makes them uniquely efficient and convenient to implement in a wide range of languages.
Install
$ pip install flat-tree
Example
from flat_tree.accessor import FlatTreeIterator
tree_iter = FlatTreeIterator()
assert tree_iter.index == 0
assert tree_iter.parent() == 1
assert tree_iter.parent() == 3
Release files for flat-tree 0.0.1a8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| flat-tree-0.0.1a8.tar.gz | 16.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| flat_tree-0.0.1a8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 32.2 kB
Release files / flat-tree-0.0.1a8.tar.gz
| Download URL | flat-tree-0.0.1a8.tar.gz |
|---|---|
| Size | 16.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c6fe90ec5dcd5ac353c04440bbe8d19631258b04297a6464fbd7a425e2c9c80a
|
|
BLAKE2b-256 checksum How to use checksums |
78590b78aee83f114f778eb87fdcbfed972c1ffcf4f7b621fc70d09ac5f0154a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.9 CPython/3.8.0 Linux/4.9.0-12-amd64
|
Release files / flat_tree-0.0.1a8-py3-none-any.whl
| Download URL | flat_tree-0.0.1a8-py3-none-any.whl |
|---|---|
| Size | 16.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
03ecedf09f47a668f83e6a8c6b396045063323756baa604aeff2ff2a32245ee0
|
|
BLAKE2b-256 checksum How to use checksums |
26afdc3d674a5dd6d38f1a6ed0d1dd35cf28d477300020f58c068573190061fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.9 CPython/3.8.0 Linux/4.9.0-12-amd64
|