Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
9e15c55227 | |||
6524cc675b |
@ -1,4 +1,10 @@
|
|||||||
# flat-tree 0.0.1a8 (UNRELEASED)
|
# flat-tree 0.0.1a9 (UNRELEASED)
|
||||||
|
|
||||||
|
# flat-tree 0.0.1a8 (2020-07-07)
|
||||||
|
|
||||||
|
## Trivial/Internal Changes
|
||||||
|
|
||||||
|
- Use colours in the README for more happiness
|
||||||
|
|
||||||
# flat-tree 0.0.1a7 (2020-07-07)
|
# flat-tree 0.0.1a7 (2020-07-07)
|
||||||
|
|
||||||
|
15
README.md
15
README.md
@ -14,16 +14,17 @@
|
|||||||
|
|
||||||
## Install
|
## Install
|
||||||
|
|
||||||
```
|
```sh
|
||||||
$ pip install flat-tree
|
$ pip install flat-tree
|
||||||
```
|
```
|
||||||
|
|
||||||
## Example
|
## Example
|
||||||
|
|
||||||
```
|
```python
|
||||||
>>> from flat_tree.accessor import FlatTreeIterator
|
from flat_tree.accessor import FlatTreeIterator
|
||||||
>>> tree_iter = FlatTreeIterator()
|
|
||||||
>>> assert tree_iter.index == 0
|
tree_iter = FlatTreeIterator()
|
||||||
>>> assert tree_iter.parent() == 1
|
assert tree_iter.index == 0
|
||||||
>>> assert tree_iter.parent() == 3
|
assert tree_iter.parent() == 1
|
||||||
|
assert tree_iter.parent() == 3
|
||||||
```
|
```
|
||||||
|
@ -4,7 +4,7 @@ build-backend = "poetry.masonry.api"
|
|||||||
|
|
||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "flat-tree"
|
name = "flat-tree"
|
||||||
version = "0.0.1a7"
|
version = "0.0.1a8"
|
||||||
description = "Utilities for navigating flat trees"
|
description = "Utilities for navigating flat trees"
|
||||||
authors = ["Decentral1se <hi@decentral1.se>"]
|
authors = ["Decentral1se <hi@decentral1.se>"]
|
||||||
maintainers = ["Decentral1se <hi@decentral1.se>"]
|
maintainers = ["Decentral1se <hi@decentral1.se>"]
|
||||||
|
Reference in New Issue
Block a user