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 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.3.0.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

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

llamda_cli-0.3.0-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

Details for the file llamda_cli-0.3.0.tar.gz.

File metadata

  • Download URL: llamda_cli-0.3.0.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.9 Linux/6.5.0-1024-azure

File hashes

Hashes for llamda_cli-0.3.0.tar.gz
Algorithm Hash digest
SHA256 37738ac720f5e81cb84db922994464aa92234b1e4b4b04036f486f23a5e6ece8
MD5 2c978eb7cb7ef8429313a2e19c55b9b9
BLAKE2b-256 bfe3cbaf32c1f0c402ebb48d0abc44c102bb2bfc9c7f0198e08583e93ca28f7e

See more details on using hashes here.

File details

Details for the file llamda_cli-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: llamda_cli-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 12.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.9 Linux/6.5.0-1024-azure

File hashes

Hashes for llamda_cli-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a8fd72c53df65c48a56a56c730f9ddec265d7cd42016733ad1096a3c7e9e47fa
MD5 8a492ebbaf9c6e1cd4aba151f4fb6334
BLAKE2b-256 c9f5fda1186bf2670a073dcd358144b6bf6404462be7b61339d5753db50d44f6

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