Baum
A small Python script that generates a Unicode or ASCII tree from a parenthesized expression.
Examples
baum "this [is [an, example, tree], with [a, bunch, of, nodes]]"
this
├─ is
│ ├─ an
│ ├─ example
│ └─ tree
└─ with
├─ a
├─ bunch
├─ of
└─ nodes
In addition to the default style, which is unicode, a number of other styles are supported, which can be set via the --style flag, e.g.:
baum --style ascii "this [is [an, example, tree], with [a, bunch, of, nodes]]"
this
+- is
| +- an
| +- example
| \- tree
\- with
+- a
+- bunch
+- of
\- nodes
Or even emoji for visualizing file trees:
baum --style emoji "this [is [an [], example [], tree []], with [a, bunch, of, nodes]]"
📁 this
📁 is
📁 an
📁 example
📁 tree
📁 with
📄 a
📄 bunch
📄 of
📄 nodes
Run baum --help for a complete overview.
Release files for baum 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| baum-0.1.2.tar.gz | 5.5 kB | Details |
Release files / baum-0.1.2.tar.gz
| Download URL | baum-0.1.2.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6e3fdb069aec8841335f44b8bec90378315ad26d9838c806e03a02653b3a038f
|
|
BLAKE2b-256 checksum How to use checksums |
c7100215d6dcfa9fd56f34a3684a4c6ec8f6417ebccbd75764820c95664f9f65
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|