easy-answers-client
Python client for the Easy Answers public API (/api/v1). Zero runtime dependencies (stdlib only).
AUTO-GENERATED — regenerate with
npx tsx scripts/generate-sdks.tsfrom the repo root whenever the API changes. The client is generated from the same route registry that servesGET /api/v1/openapi.json, so it cannot drift from the live API.
Install
pip install easy-answers-client
Usage
from easy_answers_client import EasyAnswersClient
client = EasyAnswersClient(base_url="https://your-app.example.com", api_token="ea_live_...")
me = client.get_me()
ontologies = client.list_ontologies()
metrics = client.list_metrics(ontology=ontologies[0]["uid"])
results = client.search_documents_v1(body={"query": "renewal terms", "topK": 5})
Endpoints
| Endpoint | Method | Summary |
|---|---|---|
GET /api/v1/me |
getMe | Token owner identity |
GET /api/v1/ontologies |
listOntologies | List accessible ontologies |
GET /api/v1/ontologies/:id |
getOntology | Get a single ontology |
GET /api/v1/solutions |
listSolutions | List published Apps |
GET /api/v1/solutions/:id |
getSolution | Get a single published App |
GET /api/v1/metrics |
listMetrics | List reusable metrics for an ontology |
GET /api/v1/metrics/:id |
getMetric | Get a single reusable metric |
GET /api/v1/ontologies/:id/schema |
getOntologySchema | Read an ontology's entity schema |
GET /api/v1/ontologies/:id/graph |
getOntologyGraph | Read an ontology's relationship graph |
POST /api/v1/documents/search |
searchDocumentsV1 | Hybrid document search (permission-trimmed) |
GET /api/v1/export/targets |
listExportTargets | List semantic-export target formats |
POST /api/v1/export |
generateSemanticExport | Generate a semantic-model export |
GET /api/v1/entity-resolution/lookup |
lookupEntity | Look up a resolved entity by name |
POST /api/v1/query |
semanticQuery | Run a declarative semantic query |
Errors raise EasyAnswersApiError with .status and .body. 429 responses include a Retry-After header.
Release files for easy-answers-client 1.0.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 | |
|---|---|---|---|
| easy_answers_client-1.0.0.tar.gz | 3.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| easy_answers_client-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.4 kB
Release files / easy_answers_client-1.0.0.tar.gz
| Download URL | easy_answers_client-1.0.0.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f1c9f89877d404487a5ffb2134787e861c804bf7dfe03b33aaf1b0da18495872
|
|
BLAKE2b-256 checksum How to use checksums |
7b565c4299f1fca327d7af42d9cc1848d8bc4344feaec0c9b778e4487824ed5f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.14
|
Release files / easy_answers_client-1.0.0-py3-none-any.whl
| Download URL | easy_answers_client-1.0.0-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
47d6523d617be28513b582829af130dee5c90b6c16dfb327d16695425d2017ca
|
|
BLAKE2b-256 checksum How to use checksums |
6246262c5efdc7a9eb48378c2c3da5d2f0104837323f2abd73763779d4011313
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.14
|