Skip to main content

contexte

Load resources from ContexteTech — datasets, prompts, few-shot contexts — in one line of Python. No dependencies.

pip install contexte
import contexte

# Dataset: rows as dicts (JSONL messages)
ds = contexte.load("contextetech/anonymisation-rgpd-fr")
print(len(ds), ds[0]["messages"][1]["content"])

# Prompt with {{variables}}
p = contexte.load("contextetech/fiche-produit-ecommerce")
print(p.variables)                   # ['produit', 'caracteristiques', 'public']
text = p.fill(produit="Casque audio", caracteristiques="Bluetooth, 30 h", public="étudiants")

# Few-shot context, ready for any chat API
c = contexte.load("contextetech/anonymisation-rgpd")
system = c.system_prompt()
messages = c.messages("Bonjour, je suis Jean Martin, 06 11 22 33 44.")

# Load by short code (end of the resource URL, e.g. …/fiche-produit-ecommerce-jr6t0n)
p = contexte.load("jr6t0n")

# Search and cost
contexte.search("rgpd", kind="dataset")
contexte.cost("contextetech/anonymisation-rgpd")     # estimated cost per model, in euros

Command line

contexte get jr6t0n                  # saves fiche-produit-ecommerce.json in the current folder
contexte get contextetech/anonymisation-rgpd-fr -o data/
contexte search rgpd --kind dataset

A resource is referenced as author/name, by its short code (end of its URL), or by its identifier. Read-only, no account needed.

MCP server

Use the catalogue from an AI assistant (Claude, Cursor, VS Code…). Add to the assistant's MCP configuration:

{ "mcpServers": { "contexte": { "command": "uvx", "args": ["contexte", "mcp"] } } }

Tools: rechercher (search the catalogue), charger (load a resource by short code: dataset rows, prompt template, context), remplir_prompt (fill a prompt's {{variables}}). Stdio transport, no dependencies, no key.

License

MIT. The ContexteTech name and logos are trademarks and are not covered by this license.

Metadata

Release files for contexte 0.4.2

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

Source distribution (sdist)

Source distribution for contexte 0.4.2
File Size Uploaded Provenance Actions
contexte-0.4.2.tar.gz 13.1 kB Without provenance Details for contexte-0.4.2.tar.gz

Built distribution (wheel)

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

Total release size: 24.5 kB

Release files / contexte-0.4.2.tar.gz

Download URL contexte-0.4.2.tar.gz
Size 13.1 kB
Tags Source
SHA-256 checksum
How to use checksums
f0d4dc87695b702ddf7ca518e0d1d5494e5a9aeba4de4597bf1afe5b8db9f94b
BLAKE2b-256 checksum
How to use checksums
e39610f35393b49fee1f4b2eadd09cecc49718fed5b2cf282aa96da6eeababb0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / contexte-0.4.2-py3-none-any.whl

Download URL contexte-0.4.2-py3-none-any.whl
Size 11.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0379dc9c1688e65c93a8b7688ca2a3bfcad02f08797f1baa61e1c158c9f983b0
BLAKE2b-256 checksum
How to use checksums
e4690c50988142b9f9d411f0808d617149089df1f67b94983196b0dd8710fb50
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for contexte 0.4.2

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.

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