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@latest", "mcp"] } } }
Tools: search_resources (search the catalogue), load_resource (load a resource by short code: dataset rows, prompt template, context), fill_prompt (fill a prompt's {{variables}}), download_dataset (save a whole dataset as JSONL, OpenAI messages, ShareGPT, Alpaca or CSV), estimate_cost (tokens and euros per model). All read-only except download_dataset, which writes a file and never overwrites one. 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.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| contexte-0.5.0.tar.gz | 15.3 kB | Without provenance | Details for contexte-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| contexte-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for contexte-0.5.0-py3-none-any.whl |
Total release size: 28.7 kB
Release files / contexte-0.5.0.tar.gz
| Download URL | contexte-0.5.0.tar.gz |
|---|---|
| Size | 15.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f46ccaa9d6026ac89c80d90a7c06e25b2f89f2ac53ce79c48db0b35f7a8155f7
|
|
BLAKE2b-256 checksum How to use checksums |
ba0b03176bc7786c26aee3ac35591a17a509a22aa7fbd8d6e11faa2f6df17230
|
| 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.5.0-py3-none-any.whl
| Download URL | contexte-0.5.0-py3-none-any.whl |
|---|---|
| Size | 13.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6b36e2f21b7eb1baa0d112a3e1068c2e5823449730c6f0149f0675156b3c3880
|
|
BLAKE2b-256 checksum How to use checksums |
070748cbf5c940d3a17dd16992383578fab996854898d59f61c4acc8640d9878
|
| 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.5.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.