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.3.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 | |
|---|---|---|---|
| contexte-0.3.0.tar.gz | 7.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| contexte-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.8 kB
Release files / contexte-0.3.0.tar.gz
| Download URL | contexte-0.3.0.tar.gz |
|---|---|
| Size | 7.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c0e6c20f57bec7d353854b4c0421e36d1dc34f71377733f80a86273967fd4734
|
|
BLAKE2b-256 checksum How to use checksums |
10133b8395b4eceb95dc1073d2102e4151efaf51ab9b72b55fdc6a428cd1b755
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Release files / contexte-0.3.0-py3-none-any.whl
| Download URL | contexte-0.3.0-py3-none-any.whl |
|---|---|
| Size | 8.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eb397624e6f1eba4cace4471182bf7fa25c374e027850015ee8a9bea42e74776
|
|
BLAKE2b-256 checksum How to use checksums |
6f80187d855cf2211b07317a0075a35a6703c3ec93596ad09ab5aafa99bd33ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|