Generate a tree view for a Python object by recursively showing their content types. Equivalent sub-trees are grouped together to represent repeating structures.
Includes a GUI with mouse and keyboard navigation through the nodes.
Has Ctrl+C/double-click support for copying paths to the inner nodes.
No external dependency.
Example:
d1 = [{'a', 'b', 1, 2, (3, 4), (5, 6), 'c', .1}, {'a': 0, 'b': ...}]
print_tree(d1)
Output:
<list>[2]
├── [0]: <set>[8]
│ ├── (×1) <float>
│ ├── (×2) <int>
│ ├── (×2) <tuple>[2]
│ │ └── [0:2]: <int>
│ └── (×3) <str>
└── [1]: <dict>[2]
├── ['a']: <int>
└── ['b']: <ellipsis>
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 typetree-0.0.3.tar.gz.
File metadata
- Download URL: typetree-0.0.3.tar.gz
- Upload date:
- Size: 16.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c10902c7f3e1d1aad8d7cd90932272109a3c847f4b0c5b9bf0696ed42db20418
|
|
| MD5 |
ea26c28c0d2332a39d7590a94153bf31
|
|
| BLAKE2b-256 |
e8dfffbb74cd8cf173cad008df10aa02e5d6a10ad37fc1b0815ab083e9101771
|
File details
Details for the file typetree-0.0.3-py3-none-any.whl.
File metadata
- Download URL: typetree-0.0.3-py3-none-any.whl
- Upload date:
- Size: 16.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
696682c79e83b9d846cbc72e23916e8d6d65ad27ebb059023ca363db5b3011fd
|
|
| MD5 |
db34553e198f4bfcfd40d8ca43f1eefc
|
|
| BLAKE2b-256 |
ff5ba3b812d4fc02b280c3790408b713f6cbfd616dd8455108ca58161f56019b
|