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.

License

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

Metadata

Release files for contexte 0.2.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.2.1
File Size Uploaded
contexte-0.2.1.tar.gz 7.3 kB Details

Built distribution (wheel)

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

Total release size: 15.2 kB

Release files / contexte-0.2.1.tar.gz

Download URL contexte-0.2.1.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
86c564cd7c3690e4b691f486a805c78729e6f0c59be8459565a89340f438cfbc
BLAKE2b-256 checksum
How to use checksums
e1efc0d80f95b4e5c6703a622658872bc4922b14440781975966f5f87ad5fded
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.2.1-py3-none-any.whl

Download URL contexte-0.2.1-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f90c7a4ff3f991ca45837c01bf85b3dba7ab4a4c2f7a88f13c523f93162629af
BLAKE2b-256 checksum
How to use checksums
8a0487e2d751af1a73e896413c5c8944a20f2fda3f738a5afabd3efc951717da
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 history Release notifications | RSS feed

0.3.0

2 release files

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.0

2 release files

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