Skip to main content

Collects docs from a doc folder into a single xml file for use by claude

Project description

llamda-cli

llamda-cli(https://pypi.org/project/llamda-cli/) GitHub Workflow Status GitHub

A set of command line tools for working with LLMs.

Installation

To install the CLI, run:

pip install llamda-cli

Usage

lld [OPTIONS] COMMAND [ARGS]...

Common options

╭─ Options ───────────────────────────────────────────────────────╮
│ --verbose    -v        Verbose output.                          │
│ --yes        -y        Automatically confirm all prompts.       │
│ --help                 Show this message and exit.              │
╰─────────────────────────────────────────────────────────────────╯

Files

Tools to collect files from a directory, recursively, and write them to a single xml file; useful for Anthropic's Claude.

╭─ Options ───────────────────────────────────────────────────────╮
│ --outfile  -o  PATH  The output file path. Defaults to:         │
│                      /{current_dir}/{source_dirname}.xml        │
╰─────────────────────────────────────────────────────────────────╯
Example output for a markdown file):
<collection>
<title>Title</title>
<document><path>path/to/file</path>
<content>
# Document Title

Document content


#### `lld files`

Generic file collector, allows you to specify one or more file types to collect.

```bash
 Usage: lld files [OPTIONS] PATH
 ...
</content>
</document>
...
</collection>
(see [template](https://github.com/llamda-ai/llamda-cli/blob/main/llamda_cli/lld/files/template.jinja2) for more details)

lld files

Collects all files from a directory and writes them to an xml file ready for Anthropic's Claude.

 Usage: lld files [OPTIONS] PATH
                            
╭─ Options ───────────────────────────────────────────────────────
│ *common options*                                                │
│ --extension  -e  TEXT  The extension(s) of the files to search  │
╰─────────────────────────────────────────────────────────────────╯
See full options ```bash ╭─ Options ───────────────────────────────────────────────────────╮ │ --verbose -v Verbose output. │ │ --yes -y Automatically confirm all prompts. │ │ --extension -e TEXT The extension(s) of the files to search │ │ for. │ │ --outfile -o PATH The output file path. Defaults to: │ │ /{current_dir}/{source_dirname}.xml │ │ --help Show this message and exit. │ ╰─────────────────────────────────────────────────────────────────╯ ```
Deprecated

lld docs (deprecated)

Equivalent to lld files --extension md.

```bash
Usage: lld docs [OPTIONS] PATH                                                                
                                                                                              
Collect docs from a path and write them to an xml file ready for Anthropic\'s Claude.          
                                                                                              
╭─ Options ───────────────────────────────────────────────────────────────────────────────────╮
│ --outfile  -o  PATH  The output file path. Defaults to: /{current_dir}/{source_dirname}.xml │
│ --verbose  -v        Verbose output.                                                        │
│ --yes      -y        Automatically confirm all prompts.                                     │
│ --help               Show this message and exit.                                            │
╰─────────────────────────────────────────────────────────────────────────────────────────────╯
```

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

llamda_cli-0.2.0.tar.gz (9.1 kB view hashes)

Uploaded Source

Built Distribution

llamda_cli-0.2.0-py3-none-any.whl (12.2 kB view hashes)

Uploaded Python 3

Supported by

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