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.1

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

Built distribution (wheel)

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

Total release size: 24.1 kB

Release files / contexte-0.4.1.tar.gz

Download URL contexte-0.4.1.tar.gz
Size 12.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c27f7d152a61515bb48009fb2423b6b8f2f632312d7497df20d8d644b493758e
BLAKE2b-256 checksum
How to use checksums
a4e057b092934852961417c175c3075b85ff516db7d8af17fbb5407414b54a80
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.1-py3-none-any.whl

Download URL contexte-0.4.1-py3-none-any.whl
Size 11.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cf15b413e3b117ebcd44948ed86c8d145d075d8fd53a1d426f5245d97a0f7c56
BLAKE2b-256 checksum
How to use checksums
0e60ceeff22c49de4e9b09fd99de822e3c875ec5cb0076e40bb86c4e937a84ca
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.1

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