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.

For Python 2, use asciitree<0.4. Version 0.4.0 preserves the API and rendering behavior but supports Python 3 only.

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

Metadata

Release files for asciitree 1.0.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 1.0.0
File Size Uploaded Provenance Actions
asciitree-1.0.0.tar.gz 4.9 kB Without provenance Details for asciitree-1.0.0.tar.gz

Built distribution (wheel)

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

Total release size: 10.2 kB

Release files / asciitree-1.0.0.tar.gz

Download URL asciitree-1.0.0.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
0c396808c13cab27b60cbe402b99ef37fa681c6b59d337a008719efa201cdd07
BLAKE2b-256 checksum
How to use checksums
f00fc9686d87934dbbd59d9dee7fbcd98d0e9c8f44e0c5d4965a5bd2f4385865
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.15

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

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

Security for asciitree 1.0.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