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 (ChatGPT, Claude, Cursor, VS Code…).

Online, nothing to install — add this URL as a connector (Streamable HTTP, no authentication):

https://contextetech.com/mcp

Local — the same server from this package, which can also save whole datasets to files:

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

Tools (local server): 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. The online server offers the same read-only tools, with get_download_link instead of download_dataset.

Full guide: https://contextetech.com/en/docs/mcp

License

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

Metadata

Release files for contexte 0.5.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.5.1
File Size Uploaded Provenance Actions
contexte-0.5.1.tar.gz 15.9 kB Without provenance Details for contexte-0.5.1.tar.gz

Built distribution (wheel)

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

Total release size: 29.6 kB

Release files / contexte-0.5.1.tar.gz

Download URL contexte-0.5.1.tar.gz
Size 15.9 kB
Tags Source
SHA-256 checksum
How to use checksums
9bb624348287842e595cee143c32c1237c77896882845cc872ab736cce1d6705
BLAKE2b-256 checksum
How to use checksums
3af8243f548e3d48d219a185ddfed811e0053cd9ff53b953328b8fc8d1efe67f
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.1-py3-none-any.whl

Download URL contexte-0.5.1-py3-none-any.whl
Size 13.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e8f02543f4841525b13231a1210d83133cf8e99cb8e841c5e9bedac100b56c02
BLAKE2b-256 checksum
How to use checksums
e7d1b62308f12b25f03058b7946f3df6d11d2c7a64b953e3028223908a93e0fa
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.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