Skip to main content

Baum

PyPI Typecheck Test

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)

Source distribution for baum 0.1.2
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

Release history Release notifications | RSS feed

This release

0.1.2 This release

1 release file

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page