A simple utility to generate llms.txt for hugo website.
Usage
hugo2llmtxt --help
Usage: hugo2llmtxt.py [OPTIONS] FILE_PATH OUPUT_PATH RENDER_CONTENT
╭─ Arguments ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ * file_path TEXT Path to the CSV file obtained by running `hugo list all > hugo_list.all.csv` [default: None] [required] │
│ * ouput_path TEXT Path to the output text file like `static/llms.txt` [default: None] [required] │
│ * render_content Whether to output entire blog content to entire file. Pass true for `llmsfull.txt` [default: None] [required] │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Run
- Make sure to run
hugo list all > hugo_list.csvthat contains all the contents in the CSV file. uvx --from hugo2llmtxt hugo2llmtxt hugo_list.csv static/llms.txt falseto generate the llms.txt file.uvx --from hugo2llmtxt hugo2llmtxt hugo_list.csv static/llms-full.txt false- These command should generate the llms.txt and llm-full.txt files.
Metadata
Release files for hugo2llmtxt 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hugo2llmtxt-0.1.4.tar.gz | 2.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hugo2llmtxt-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.1 kB
Release files / hugo2llmtxt-0.1.4.tar.gz
| Download URL | hugo2llmtxt-0.1.4.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ff281b3d90a6e11ddd16086e7c540b6501e38c38a21fac12d18328ce392f342f
|
|
BLAKE2b-256 checksum How to use checksums |
95564e2495f6b8dc65e740f0cee80ed2ceec1ed8a8623eec296e9dbb0a453bbf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 19, 2025.
Transparency logRelease files / hugo2llmtxt-0.1.4-py3-none-any.whl
| Download URL | hugo2llmtxt-0.1.4-py3-none-any.whl |
|---|---|
| Size | 2.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6787a984e6f172d7883836ec15eb74bd6568a0b1f2a01314e9e38e73ad717e0f
|
|
BLAKE2b-256 checksum How to use checksums |
903baae80126ba04ec8bbbddaa86c0ed15ee6095d8b494a55a2ecf10a00ef89e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 19, 2025.
Transparency log