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.
Metadata
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 | Provenance | Actions |
|---|---|---|---|---|
| baum-0.1.2.tar.gz | 5.5 kB | Without provenance | Details for baum-0.1.2.tar.gz |
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
|
Security for baum 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.