Skip to main content

ASCII Trees

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

tree = {
    'asciitree': OD([
        ('sometimes',
            {'you': {}}),
        ('just',
            {'want': OD([
                ('to', {}),
                ('draw', {}),
            ])}),
        ('trees', {}),
        ('in', {
            'your': {
                'terminal': {}
            }
        })
    ])
}

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

Read the documentation at http://pythonhosted.org/asciitree

Metadata

Release files for asciitree 0.3.3

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.3.3
File Size Uploaded Provenance Actions
asciitree-0.3.3.tar.gz 4.0 kB Without provenance Details for asciitree-0.3.3.tar.gz

Release files / asciitree-0.3.3.tar.gz

Download URL asciitree-0.3.3.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
4aa4b9b649f85e3fcb343363d97564aa1fb62e249677f2e18a96765145cc0f6e
BLAKE2b-256 checksum
How to use checksums
2d6a885bc91484e1aa8f618f6f0228d76d0e67000b0fdd6090673b777e311913
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for asciitree 0.3.3

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