Skip to main content

llamda-cli

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.

Release files for llamda-cli 0.3.0

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

Source distribution (sdist)

Source distribution for llamda-cli 0.3.0
File Size Uploaded
llamda_cli-0.3.0.tar.gz 9.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for llamda-cli 0.3.0
File Interpreter ABI Platform
llamda_cli-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 21.3 kB

Release files / llamda_cli-0.3.0.tar.gz

Download URL llamda_cli-0.3.0.tar.gz
Size 9.1 kB
Tags Source
SHA-256 checksum
How to use checksums
37738ac720f5e81cb84db922994464aa92234b1e4b4b04036f486f23a5e6ece8
BLAKE2b-256 checksum
How to use checksums
bfe3cbaf32c1f0c402ebb48d0abc44c102bb2bfc9c7f0198e08583e93ca28f7e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.11.9 Linux/6.5.0-1024-azure

Release files / llamda_cli-0.3.0-py3-none-any.whl

Download URL llamda_cli-0.3.0-py3-none-any.whl
Size 12.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a8fd72c53df65c48a56a56c730f9ddec265d7cd42016733ad1096a3c7e9e47fa
BLAKE2b-256 checksum
How to use checksums
c9f5fda1186bf2670a073dcd358144b6bf6404462be7b61339d5753db50d44f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.11.9 Linux/6.5.0-1024-azure

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.0

2 release files

0.1.10

2 release files

0.1.6

2 release files

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