Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

atree

An augmented version of the tree command.

Like tree, but this command-line program can show more attributes, while supporting advanced filtering.

For example, the command below shows all the .py files that have 5000 or more lines in the CPython repository.

$ atree ~/R/cpython --pattern="*.py" --show "lines>=5000"

NODE                                                                                  LINES
cpython
├── Tools
│   └── clinic
│       └── clinic.py                                                                  5144
└── Lib
    ├── _pydecimal.py                                                                  6410
    ├── pydoc_data
    │   └── topics.py                                                                 14061
    └── test
        ├── test_decimal.py                                                            5934
        ├── datetimetester.py                                                          6317
        ├── _test_multiprocessing.py                                                   5823
        ├── test_socket.py                                                             6679
        ├── test_argparse.py                                                           5370
        ├── test_logging.py                                                            5502
        ├── test_descr.py                                                              5688
        └── test_email
            └── test_email.py                                                          5484

6 directories, 11 files

Other use cases include

atree --show lines@top10

which shows the top 10 files that contain the most lines.

atree --show "mtime>=now-1week"

which shows all the files that are modified within one week.

atree --show duplicates

which shows all the duplicate files, in a tree-like format.

Install

pip install atree

Pre-built binaries

It is recommended to install atree via pip. However, if you don't have pip or python in your environment, or the PATH is not properly configured, you may choose to download the pre-built binary for your platform.

Windows

How to Use

For some quick examples,

atree --examples

For a full list of command-line options,

atree --help

For more information, please refer to the docs.

License

MIT

Copyright (c) 2021 Aaron Fu Lei

Metadata

Release files for atree 1.0.0a1

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

Source distribution (sdist)

Source distribution for atree 1.0.0a1
File Size Uploaded Provenance
atree-1.0.0a1.tar.gz 17.5 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 35.0 kB

Release files / atree-1.0.0a1.tar.gz

Download URL atree-1.0.0a1.tar.gz
Size 17.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f5c501f2cb5fa7a4a15eebf4237c3cc70af6c42f92a0fb726879ed76e5b4a6e9
BLAKE2b-256 checksum
How to use checksums
a39f4cee54f52814f3c3b23ae812bbdc532e054a052b4717ee2ca69870bdac97
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.9.0

Release files / atree-1.0.0a1-py3-none-any.whl

Download URL atree-1.0.0a1-py3-none-any.whl
Size 17.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
673e5422122cb1c67996a4f62487b58957ba223d3af26e963b0770b9e39e1b43
BLAKE2b-256 checksum
How to use checksums
35ee02ffbf42e0644b17cf252b5b40f9b72500f040478c3d786e49bb186a4a5c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.9.0

Security for atree 1.0.0a1

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.

Release history Release notifications | RSS feed

This release
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