Syntax trees and file utilities.
Project description
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).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
asyntree-0.3.0.tar.gz
(4.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file asyntree-0.3.0.tar.gz.
File metadata
- Download URL: asyntree-0.3.0.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6878f30ec89bdc980df1bd0841ffa9fe18a15f5c88a40b347ae8d4d30ab3bd5b
|
|
| MD5 |
a72fe5078108a7c6d60f5777883f9f1a
|
|
| BLAKE2b-256 |
a806acb4f58a98b3b827c031d74b37f74bf5bd43f4f804580b6c0e27c3f6f2bd
|
File details
Details for the file asyntree-0.3.0-py3-none-any.whl.
File metadata
- Download URL: asyntree-0.3.0-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b127e56b3d7483af7ca89fd387a33e6918b8044f0014778fab1b180feafc7c65
|
|
| MD5 |
f45376566db4d5111db6339a43fffa3f
|
|
| BLAKE2b-256 |
228fd51ba30788f8e8bdb4e32ac5c27d68d6b8b27f6d5be4b903075dd300ddb9
|