Asyntree
Syntax trees and file utilities.
Usage
As a CLI
Installation:
uv install tool asyntree
Usage:
>>> asyntree --help
Usage: asyntree [OPTIONS] COMMAND [ARGS]...
╭─ Options ───────────────────────────────────────────────────────────────╮
│ --help Show this message and exit. │
╰─────────────────────────────────────────────────────────────────────────╯
╭─ Commands ──────────────────────────────────────────────────────────────╮
│ to-tree Print the tree structure of the directory. │
│ to-llm Generate (and export) the llm.txt file. │
│ to-requirements Generate (and export) the requirements.txt file. │
╰─────────────────────────────────────────────────────────────────────────╯
Configuration:
# asyntree to-tree --include <file_extension> --exlcude <directory>
asyntree to-tree . -i .py -i .r -e .venv -e .git
# asyntree to-llm --include <file_extension> --exlcude <directory> --output <file>
asyntree to-llm . -i .py -i .r -e .venv -e .git -o llm.txt
# asyntree to-requirements --exlcude <directory> --output <file>
asyntree to-requirements . -e .venv -o requirements.txt
As a Library
Installation:
uv add asyntree
Usage:
import asyntree as atree
atree.to_requirements("requirements.txt")
atree.to_llm("llm.txt")
Development
The Makefile contains relevant commands to get the development environment configured (ie make init, make test, make lint, make format, make deps).
Release files for asyntree 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| asyntree-0.3.0.tar.gz | 4.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| asyntree-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.1 kB
Release files / asyntree-0.3.0.tar.gz
| Download URL | asyntree-0.3.0.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6878f30ec89bdc980df1bd0841ffa9fe18a15f5c88a40b347ae8d4d30ab3bd5b
|
|
BLAKE2b-256 checksum How to use checksums |
a806acb4f58a98b3b827c031d74b37f74bf5bd43f4f804580b6c0e27c3f6f2bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.3
|
Release files / asyntree-0.3.0-py3-none-any.whl
| Download URL | asyntree-0.3.0-py3-none-any.whl |
|---|---|
| Size | 6.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b127e56b3d7483af7ca89fd387a33e6918b8044f0014778fab1b180feafc7c65
|
|
BLAKE2b-256 checksum How to use checksums |
228fd51ba30788f8e8bdb4e32ac5c27d68d6b8b27f6d5be4b903075dd300ddb9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.3
|