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.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 contexte 0.4.0
File Size Uploaded Provenance Actions
contexte-0.4.0.tar.gz 12.8 kB Without provenance Details for contexte-0.4.0.tar.gz

Built distribution (wheel)

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

Total release size: 24.0 kB

Release files / contexte-0.4.0.tar.gz

Download URL contexte-0.4.0.tar.gz
Size 12.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c67d5384d0751ecc51ec9d316424f5eec63e72bcaa3ebfccd512ed58c69db1c9
BLAKE2b-256 checksum
How to use checksums
ae76c15d704d63e5e1eef377827bec3d893d1d82cdc2f9dbe088fe10c682d9b5
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.0-py3-none-any.whl

Download URL contexte-0.4.0-py3-none-any.whl
Size 11.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
73471e9251656a7ebb814fab0b7dd4cb78e11f60f8972cde39985cbf95da84ba
BLAKE2b-256 checksum
How to use checksums
d1404d37b3dbf20bd9b4802734763a6d5cb0f82d188d78271a5342746ba789b1
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.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.

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