Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

asyntree-0.3.0-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

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

Hashes for asyntree-0.3.0.tar.gz
Algorithm Hash digest
SHA256 6878f30ec89bdc980df1bd0841ffa9fe18a15f5c88a40b347ae8d4d30ab3bd5b
MD5 a72fe5078108a7c6d60f5777883f9f1a
BLAKE2b-256 a806acb4f58a98b3b827c031d74b37f74bf5bd43f4f804580b6c0e27c3f6f2bd

See more details on using hashes here.

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

Hashes for asyntree-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b127e56b3d7483af7ca89fd387a33e6918b8044f0014778fab1b180feafc7c65
MD5 f45376566db4d5111db6339a43fffa3f
BLAKE2b-256 228fd51ba30788f8e8bdb4e32ac5c27d68d6b8b27f6d5be4b903075dd300ddb9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page