Littletree

Latest version: v0.8.0

Safety actively analyzes 638720 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 3

0.4.1

Fix bug in `tree.compare` method

0.4.0

- Improve DotExporter
- Rename `name_factory` to `node_name`.
- Derive file type from file extension if possible. Fall back on png.
- Add `graph_attributes`.
- Make attribute handling more intelligent. Distinguish static and dynamic properties.
- Add parameter `directed` (default: True).
- Remove whitespace around arrows for compacter file size.
- Add MermaidExporter. Similar to DotExporter, but supported by [GitHub](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-diagrams).
- Make `tree.children` writable for more compatibility with anytree/bigtree
- Add parameters `backend` and `node_label` to `tree.to_image()`

0.3.0

- Remove `tree.show(img=True)`. Use `tree.to_image().show()` instead.
- New method `tree.transform()` that creates a modified or pruned copy of a tree.
- New method `tree.compare()` that compares different trees to each other.
- Rewrite `copy()` in terms of transform.
Use `tree.copy()` for shallow copy.
Use `tree.copy({})` for deep copy.
- Remove style `minimal`, but add style `list` for `tree.show()`.
- Add option `escape_comments` to newick serializer to escape newick modifiers in node data.
- For now use `distance` and `comment` instead of `distance_field` and `comment_field` in NewickSerializer.
- Changed default format of `to_dict` to contain `identifier`.
- Rewrite RowSerializer
- Refactor RelationSerializer

0.2.3

- Streamline `DotExporter`.
Create temporary files in memory.
Add option `as_bytes` to `to_image()`.
Remove unused parameter `separator`.
- Add more default styles to `StringExporter`.
Some have been renamed. `const` has been renamed to `square`.
- Simplify signature of `from_newick`. It accepts a string.
For files a Path or file object should be passed.
- Add `tree.show()` for quickly rendering a tree to console.
Same as `print(tree.to_string())`.

0.2.2

- Make dictserialization work on large trees.

0.2.1

- Improve newick serialization. It's much faster now and works on big trees.
- Because of how it is implemented, it now also works on preorder format `A(b, c)`, even though the standard form is `(b, c)A`.

Page 2 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.