Skip to main content

struckdown

Markdown-based syntax for structured conversations with language models.

Installation

pip install struckdown

Quick Example

# Configure
export LLM_API_KEY="sk-..."
export LLM_API_BASE="https://api.openai.com/v1"

# Extract structured data
sd chat "Tell me a joke: [[joke]]"
sd batch -i '*.txt' "Purpose: [[purpose]] Price: [[number:price]]"

Images

Wrap an image with attach() and it goes where its variable is rendered:

from struckdown import complete, attach

complete("Read this sheet: {{ sheet }} [[extract:answers]]", {"sheet": attach("scan.jpg")})

Images are resized, turned upright and stripped of metadata before sending. From the command line, use sd chat --attach name=path or sd batch --as-image. Install with pip install 'struckdown[vision]'; see Images.

Documentation

Full documentation, examples, and tutorials:

https://github.com/benwhalley/struckdown

License

MIT

Metadata

Release files for struckdown 0.18.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 struckdown 0.18.0
File Size Uploaded Provenance Actions
struckdown-0.18.0.tar.gz 1.5 MB Without provenance Details for struckdown-0.18.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for struckdown 0.18.0
File Interpreter ABI Platform Actions
struckdown-0.18.0-py3-none-any.whl Python 3 none any Details for struckdown-0.18.0-py3-none-any.whl

Total release size: 2.9 MB

Release files / struckdown-0.18.0.tar.gz

Download URL struckdown-0.18.0.tar.gz
Size 1.5 MB
Tags Source
SHA-256 checksum
How to use checksums
0b7e7ecad32a6f18a1d6bd3c688075a039a3bb398b7b3a0e0c682e18a68fce93
BLAKE2b-256 checksum
How to use checksums
6aca5701bc55d6fb28501684499358e5f30ff1b0967a50af39f44caac7cd918c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.13

Release files / struckdown-0.18.0-py3-none-any.whl

Download URL struckdown-0.18.0-py3-none-any.whl
Size 1.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
0568c3db28b3eec8cf179353fda335ad9bb7ba00f4680b8ab6e0d6580582f264
BLAKE2b-256 checksum
How to use checksums
c10875cc35eb05f9980a5b49323db0c788ad99ee32ac5cf4e0a3674955efa098
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.13

Security for struckdown 0.18.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.18.0 This release

2 release files No provenance

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