Skip to main content

ASCII Trees

asciitree
 +-- sometimes
 |   +-- you
 +-- just
 |   +-- want
 |       +-- to
 |       +-- draw
 +-- trees
 +-- in
     +-- your
         +-- terminal
from asciitree import LeftAligned

tree = {
    "asciitree": {
        "sometimes": {"you": {}},
        "just": {"want": {"to": {}, "draw": {}}},
        "trees": {},
        "in": {"your": {"terminal": {}}},
    }
}

tr = LeftAligned()
print(tr(tree))

Since Python 3.7, dictionaries preserve insertion order. On older versions, use collections.OrderedDict to preserve the tree's display order.

Read the documentation at https://asciitree.readthedocs.io/en/stable/.

Metadata

Release files for asciitree 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for asciitree 0.4.0
File Size Uploaded Provenance Actions
asciitree-0.4.0.tar.gz 4.6 kB Without provenance Details for asciitree-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for asciitree 0.4.0
File Interpreter ABI Platform Actions
asciitree-0.4.0-py3-none-any.whl Python 3 none any Details for asciitree-0.4.0-py3-none-any.whl

Total release size: 9.7 kB

Release files / asciitree-0.4.0.tar.gz

Download URL asciitree-0.4.0.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
8041dc6c119c53a3a835b24796dc9ae80d8067f50f100ec71a17645ca814c37b
BLAKE2b-256 checksum
How to use checksums
9e5d01faab1874c6270b948ca13cf83f60d1e508034a4ba13b5e33f66949d62f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.15

Release files / asciitree-0.4.0-py3-none-any.whl

Download URL asciitree-0.4.0-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b78b0d013ce07c53fd956299afabd445b865f67d186bd78d779a7ff0e0b2e71d
BLAKE2b-256 checksum
How to use checksums
b45e84023ef6cbd5c4ea818eb4606edf6b41632a2856f873b9e02fdcdf80e692
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.15

Security for asciitree 0.4.0

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.

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