xippios-core
Shared foundation of the xippios Python SDK family. Every
xippios-<source> package depends on it; nothing in it knows about any particular
upstream API.
It gives a source package the things that should be identical across the family:
- HTTP client on
httpxwith retries, a per-source rate limiter, an optional response cache (off by default; the in-memory one is bounded by TTL and size), explicit timeouts and oneUser-Agent. Async at the core;syncderives the sync task functions from the async ones. A 429 is retried for every method, a 5xx or a transport failure only for GET, HEAD and OPTIONS unlessRetryPolicy.retry_non_idempotentis set, because upstream makes a repeated write safe, or because the source only reads through POST.ClientConfig.cache_filternarrows the cache to chosen requests. A body goes as JSON (json=) or form-encoded (data=). Two hooks,before_requestandobserve, see each call and each response;QuotaPolicyuses them to wait out or refuse a request into a spent quota.auth=Nonesends one call without the client's key.get_answerreturns the payload with itsretrieved_at, a cache hit's stored time. A file is streamed to disk withdownload, never held in memory;decode_textanddecode_csvread text and CSV next todecode_json; the cache stores no body overcache_max_bytes(8 MiB). - Auth helpers that read the key from the environment on the first request:
query parameter, header, bearer token or basic auth. A source's documented error
shapes go into
ClientConfig.classify, consulted on every response. - The api.data.gov gateway (
xippios.core.data_gov) for every source behind it: the key fromDATA_GOV_API_KEY, the gateway's error answers, and one quota policy per process for that key. - Error taxonomy:
ConfigError,AuthError,RateLimitError,NotFoundError,ValidationError,UpstreamError,TransportErrorandInvalidRequestError(the request as given cannot be served: a bad argument, or a refusal the source documents, detected before the call or mapped from upstream's own refusal), all underXippiosError;UnknownCode, anInvalidRequestError, refuses a code a packaged list lacks and names the closest known ones. - Result envelope: every task function returns
Result[T]withResultMeta(source, endpoint, retrieved_at, published_at with published_at_naive for a time upstream printed without a zone, vintage, request without the parameters leftNone, total: upstream's count of the matching records when the source reports one, and tenant: the tenant the data came from, by name, for a multi-tenant source); a field it does not define is refused.Decimalfields of upstream models arrive as JSON numbers in both adapters;UpstreamModel.projectbuilds a projection of a record under upstream names,dump_upstreamgives a record back under upstream's field names,parse_decimalreads a published figure. - Reference data: loaders for code lists shipped inside a package,
PackagedListfor a list fetched from one upstream operation (its file, the meta of an answer from it, its writer),matchesandclosestfor the list tasks and their refusals, andrender_enums, which generates one module ofStrEnumandIntEnumclasses. - Adapters that turn task functions into MCP tools (
xippios.core.mcp) and FastAPI routes (xippios.core.http) without any logic of their own. - Test support: a live-test gate, offline guarantees for every other test (no
network, no rate-limit wait, a placeholder key), fixture recording with secrets
scrubbed, replay through
respx, and the family conformance check every source runs (xippios.core.testing).
Install
uv add "xippios-core~=0.3.0" # client, models, errors, reference, pagination
uv add "xippios-core[mcp]~=0.3.0" # + MCP server helpers (official mcp SDK 2.x)
uv add "xippios-core[http]~=0.3.0" # + FastAPI router helpers
uv add "xippios-core[testing]~=0.3.0" # + pytest plugin, respx replay, fixture recording
Python 3.12 or later. A source package depends on one core minor, ~=0.3.0, and each
extra likewise (conventions §12); see the Alpha note under Status.
30-second example
A source package writes its task function once, async, and derives the sync one:
from pydantic import Field
from xippios.core import (
AsyncClient,
ClientConfig,
QueryKeyAuth,
RateLimit,
Result,
ResultMeta,
UpstreamModel,
parse,
sync,
)
client = AsyncClient(
ClientConfig(
source="example",
version="0.1.0",
base_url="https://api.example.org",
rate_limit=RateLimit(per_minute=60),
),
auth=QueryKeyAuth("key", "EXAMPLE_API_KEY", source="example"), # read on first request
)
class Series(UpstreamModel):
series_id: str = Field(alias="seriesId")
value: float
async def get_series_async(series_id: str, year: int = 2024) -> Result[list[Series]]:
"""Fetch one series for a year.
Args:
series_id: Upstream identifier, e.g. ``"CORN_YIELD"``.
year: Four-digit year, e.g. ``2024``.
"""
params = {"id": series_id, "year": year}
raw = await client.get_json("/v1/series", params=params)
rows = parse(list[Series], raw["data"], source="example", endpoint="series")
meta = ResultMeta(source="example", endpoint="series", request=params)
return Result(data=rows, meta=meta)
get_series = sync(get_series_async) # same signature, same docstring, blocks until done
>>> result = get_series("CORN_YIELD", year=2024)
>>> result.data[0].value, result.meta.retrieved_at
(177.3, datetime.datetime(2026, 10, 20, 12, 0, tzinfo=datetime.timezone.utc))
meta.request is provenance, not a copy of the call: ResultMeta redacts any key that
names a credential (api_key, token, secret, sig, ... as whole words) so an
envelope is safe to hand to an agent or return over HTTP. A bare key is a credential
only where a QueryKeyAuth sends the key under that name, as above, which registers it
for the process; elsewhere it is data, as Eurostat's SDMX series key is, and so is a
sort_key. The fixture recorder and the replay helpers redact by the same rule
(xippios.core.redaction). A parameter the caller left None was not sent and is left
out of meta.request, so a task passes its parameters as they are.
A release time upstream prints without a zone (FAS: 2026-10-06T08:00:00) goes into
published_at as printed, with published_at_naive=True, and vintage keeps the
release identifier as upstream names it; ResultMeta refuses a naive time without the
flag, the flag without a naive time, and any field it does not define.
Upstream failures arrive as taxonomy errors, never as raw httpx exceptions:
from xippios.core import NotFoundError, RateLimitError
try:
get_series("NOPE")
except NotFoundError as exc:
print(exc) # 404 from GET /v1/series: ...
except RateLimitError as exc:
print(exc.retry_after)
A message names the method and path of the request, never its host or query string: the host can name a tenant and the query can carry a key.
Quotas, hooks and keyless calls
An upstream that reports a longer-window quota in its headers (api.data.gov:
x-ratelimit-limit, x-ratelimit-remaining) gets a QuotaPolicy, installed on the
client's configuration:
from xippios.core import AsyncClient, ClientConfig, HeaderKeyAuth, QuotaPolicy
quota = QuotaPolicy(window=3600.0, source="example") # spent for an hour unless told otherwise
config = quota.install(
ClientConfig(source="example", version="0.1.0", base_url="https://api.example.org")
)
client = AsyncClient(config, auth=HeaderKeyAuth("X-Api-Key", "EXAMPLE_API_KEY"))
quota.snapshot() # None: no response observed yet
async def get_series_async(series_id: str) -> object:
rows = await client.get_json("/v1/series", params={"id": series_id})
quota.snapshot() # QuotaSnapshot(limit=1000, remaining=999, observed_at=..., resumes_at=None)
return rows
async def list_countries_async() -> object:
return await client.get_json("/files/countries.json", auth=None) # public: no key sent
The policy reads the quota headers of every response from the wire through
ClientConfig.observe. Once a 429, or a response that leaves nothing, shows the quota
spent, ClientConfig.before_request makes the next request wait until it is back if
that is within the policy's pause_cap (30 s by default), with one warning in the log,
and otherwise raises RateLimitError with retry_after, saying that nothing was sent.
A spent quota is back after a 429's Retry-After, else after window. An upstream that
answers a spent limit with something other than a 429 gets QuotaPolicy(spent=...), a
function that returns the seconds to wait for such an answer, or None. A wait from
upstream is never longer than window. install sets the policy's two hooks on a copy
of the config and reads nothing else from it; a source that needs hooks of its own as
well composes them itself.
A source behind api.data.gov takes all of this from xippios.core.data_gov, together
with its key and the gateway's documented answers. Every Gateway in a process shares
one QuotaPolicy, Gateway.policy, since one key is one quota across every package that
uses it:
import httpx
from xippios.core import AsyncClient, ClientConfig, NotFoundError, XippiosError
from xippios.core.data_gov import Gateway
gateway = Gateway("usda-psd")
def classify(response: httpx.Response) -> XippiosError | None:
error = gateway.classify(response) # API_KEY_*, the 429, NOT_FOUND; else None
if error is None and response.status_code == 404 and not response.content:
# the source's own documented answers follow the gateway's
error = NotFoundError(f"no data for {response.request.url.path}", source="usda-psd")
return error
config = gateway.install(
ClientConfig(
source="usda-psd",
version="0.3.0",
base_url="https://api.fas.usda.gov",
classify=classify,
)
)
client = AsyncClient(config, auth=gateway.auth) # X-Api-Key from DATA_GOV_API_KEY
The gateway's 429 is a RateLimitError in the source's name whose retry_after is the
wait the shared policy keeps the quota spent for; once it is spent, the next request of
any source in the process waits within the policy's cap or is refused before sending, as
api.data.gov.
A request the cache answers never waits: before_request runs after the cache lookup,
and a cache hit carries the time its entry was stored in
response.extensions["xippios_cache_stored_at"], the hit's retrieved_at. A wrapper
whose answer may come from the cache calls get_answer() instead of get_json(): its
Answer carries the payload and retrieved_at, the stored time on a hit and the time
the answer arrived otherwise.
answer = await client.get_answer("/api/regions", auth=None)
meta = ResultMeta(source="example", endpoint="regions", retrieved_at=answer.retrieved_at)
The hooks are plain callables on ClientConfig (before_request may be async) for
anything else that has to see each call or each response.
ClientConfig.classify is asked before a 429 or 5xx is retried: a RateLimitError
with a retry_after beyond backoff_max is raised after one attempt instead of being
retried into a spent quota; an UpstreamError for a 5xx leaves the retries as they are;
any other error it returns, an AuthError say, ends them.
auth= on request, get, get_json, get_answer and record overrides the
client's credentials for one call: None sends none, for a keyless endpoint on the same
host, and another httpx.Auth replaces them. None and the default share the cache; a
call with an httpx.Auth of its own bypasses it, neither looked up nor stored.
Files: download and decode
An upstream that publishes files (a bulk dataset, a release's CSV or XLS) is read with
download, which streams the body to disk under a temporary name and renames it when it
is complete; the limiter, the hooks, classify and the retries apply as for get(), a
retry restarting the file, and the response cache is never touched. The hooks see a
success's status and headers only, since its body goes to the file unread, and a
redirect raises UpstreamError:
from pathlib import Path
from xippios.core import Downloaded, Result, ResultMeta
from xippios.core.client import decode_csv
BULK_TASKS = frozenset({"download_crops"}) # in tasks.py beside MCP_CAPS: Python only
async def download_crops_async(dest: Path) -> Result[Downloaded]:
"""Download the crops file of the current release.
Args:
dest: The file to write, e.g. ``Path("qs.crops.txt")``.
"""
url = "https://files.example.org/bulk/qs.crops.txt" # a link from the catalog
got = await client.download(url, dest, auth=None) # another host: no key sent there
meta = ResultMeta(source="example", endpoint="qs.crops", request={"url": url})
return Result(data=got, meta=meta)
for row in decode_csv(Path("qs.crops.txt"), delimiter="\t"): # row by row, never whole
print(row["COMMODITY_DESC"], row["VALUE"]) # headers as upstream prints them
Downloaded carries the path, the size, the content type, the file name from
Content-Disposition, the ETag, the Last-Modified text and when the file was
complete. decode_text(response) reads a text answer in the charset of its
Content-Type (UTF-8 by default, a byte order mark stripped), and decode_csv takes a
downloaded file or a response. A gzip or zip file is opened with the stdlib; core ships
no XML, spreadsheet or PDF parser. register_tasks and router_from_tasks skip a task
its tasks.py names in BULK_TASKS, so no tool or route returns a file path. A body
over ClientConfig.cache_max_bytes (8 MiB by default) is returned and not cached.
Multi-tenant sources
An upstream that serves each tenant from a host or under a key of its own (CashCtrl's
organisations) is served by a source that carries its tenant registry itself (ADR-0024).
Its tasks take the tenant's name and set ResultMeta(tenant=name, ...); its messages and
results name tenants and variables, never a value, and core's error messages leave the
host out, since it names the tenant.
Reference data and generated enums
A list a source fetches from one upstream operation and ships, so that its list_*
tasks and its argument checks need no call, is a PackagedList: reference/<name>.json
with {"param", "endpoint", "fetched", "records"} and an optional free-text "note",
upstream's records under upstream's field names; any other key is refused. <name> is
the parameter, or a name of the list's own where two lists derive from one parameter.
The refresh script writes it; the tasks read it:
from datetime import UTC, datetime
from xippios.core import PackagedList, Result, UnknownCode, closest, matches
# scripts/refresh_reference.py: the records as upstream named them, the time of the fetch
records = [record.dump_upstream() for record in commodities] # from the api/ wrapper
PackagedList(
param="commodities", endpoint="GetCommodities", fetched=datetime.now(UTC), records=records
).write(REFERENCE / "commodities.json") # fetched written to the second
# tasks.py
async def list_commodities_async(search: str | None = None) -> Result[list[Commodity]]:
"""List the commodities with their codes, the values commodity_code takes.
Args:
search: Keep the commodities whose code or name contains this text, ignoring
case, e.g. ``"wheat"``. Omit (``None``) for all.
"""
packaged = PackagedList.load("xippios.example", "commodities")
rows = packaged.parse(Commodity, source="example")
kept = [row for row in rows if matches(search, row.commodity_code, row.commodity_name)]
return Result(data=kept, meta=packaged.meta("example", request={"search": search}))
def validate_commodity_code(code: str) -> str:
packaged = PackagedList.load("xippios.example", "commodities")
codes = {r["commodityCode"]: r["commodityName"] for r in packaged.records}
if code not in codes:
raise UnknownCode(
"commodity_code",
code,
list_name="commodities",
fetched=packaged.fetched,
closest=closest(code, codes), # "wheat" -> [("0410000", "Wheat")]
source="example",
)
return code
The answer's meta follows ADR-0022: endpoint is the upstream operation the list came
from, retrieved_at the time it was fetched, vintage an upstream release identifier
only when one is passed (a fetch date is not a vintage), total None. A file whose
fetched is a bare date, as refresh scripts wrote it before template v0.3.0, reads as
00:00 UTC of that day; write writes fetched to the second. A list of values is
records of one field named by the upstream parameter ([{"state_alpha": "AK"}, ...]).
UnknownCode names the value, the list and its fetch date, the closest codes (or a
hint=), an optional reason=, and that a code upstream added since needs a refresh of
the list.
Other code lists are read with load_json or load_table (load_csv, which
load_table calls for a CSV file, stays in xippios.core.reference). The refresh
script generates enums.py from the lists with one render_enums call, then runs
ruff format and ruff check --fix on it, and the module is committed as formatted:
from xippios.core.reference import id_name_pairs, render_enums
records = [
{"attributeId": 4, "attributeName": "Area Harvested"},
{"attributeId": 126, "attributeName": "Total Disappearance"},
{"attributeId": 173, "attributeName": "Total Disappearance"},
]
source = render_enums(
{
# Strings: a StrEnum, member names derived from the values.
"sector_desc": ["ANIMALS & PRODUCTS", "CROPS"],
# (id, name) pairs: an IntEnum, values the ids, in upstream order.
"attributeId": id_name_pairs(records, id_field="attributeId", name_field="attributeName"),
},
fetched={"sector_desc": "2026-10-27", "attributeId": "2026-10-24"}, # or one date
class_names={"sector_desc": "Sector", "attributeId": "AttributeId"},
generator="scripts/refresh_reference.py",
)
ENUMS.write_text(source, encoding="utf-8")
# then: uv run ruff format src/xippios/example/enums.py
# uv run ruff check --fix src/xippios/example/enums.py
class AttributeId(IntEnum):
"""Values of ``attributeId`` (fetched 2026-10-24)."""
AREA_HARVESTED = 4
TOTAL_DISAPPEARANCE_126 = 126
TOTAL_DISAPPEARANCE_173 = 173
An upstream whose ids are integers gets IntEnum (conventions §3), so a member compares
equal to the id in upstream's data; a name several ids share gets _<id>. Each class's
docstring is one line naming the list and its fetch date, which an MCP tool's input
schema shows the agent (conventions §8). The output is plain and ASCII-only: values are
written as ascii() writes them, every character outside ASCII as an escape
('C\xf4te d\u2019Ivoire'), one member per line, __all__ in the order of the lists, and
a line over 100 columns carries # noqa: E501; ruff chooses the quotes, wraps what fits
and sorts __all__. A key, class name, fetch date or generator text that is not
printable ASCII is refused, and so is an empty list, a repeated id, and a value with
nothing to derive a member name from (an empty or a non-Latin label) or whose name
collides; the refresh script names that member by hand, once:
source = render_enums(
{"short_desc": values},
fetched="2026-10-27",
member_names={"short_desc": {"\u5317\u4eac": "BEIJING"}},
)
MCP server in five lines
# xippios/example/mcp.py
from xippios.core.mcp import build_server, main
from xippios.example import tasks
server = build_server("example", [tasks.get_series, tasks.list_commodities])
def run() -> None: # entry point: xippios-example-mcp = "xippios.example.mcp:run"
main(server)
Tool names are <source>_<function> (example_get_series), the docstring is the tool
description, the signature is the input schema. Results are capped at 200 rows or
64 KB with a note on how to narrow the query, and a capped list whose meta.request
records an integer start says where to resume (; resume with start=200); errors come
back as error: <Class>: <message>, arguments the tool's schema refuses too
(error: InvalidRequestError: year: Input should be a valid integer, ...), before the
tool runs and never with pydantic's rendered error (its URL, input type or input value).
--http serves streamable HTTP instead of stdio.
A reference tool whose whole list an agent needs gets a cap of its own, keyed by the
task function's name, with the rows and bytes the source judges it needs:
build_server(..., caps={"list_commodities": ResultCap(max_rows=500, max_bytes=100_000)}). So does a tool whose result is one upstream page that must return
whole, a cursor-paged page with its next_token or a bounded lookup, with a byte bound
of its own and the row bound unchanged (ADR-0016, amendment 2026-10-30); every other
tool keeps 200 rows or 64 KB. The note says "narrow the query to see the rest" and
promises no filter; a tool with filters names them in its cap, ResultCap(note="filter by year to see the rest"). ResultCap comes from xippios.core, so the MCP_CAPS in
a source's tasks.py need no mcp extra. A write server (build_server(..., read_only=False)) refuses, with ValueError, a task that does not take confirm: bool = False, and --http serves it on a loopback --host only (127.0.0.1, localhost,
::1): it carries no authentication. --allow-remote serves it beyond loopback, behind
a gateway that adds it. A task named in its tasks.py's BULK_TASKS is skipped, so
mcp.py may pass every name of tasks.__all__; a cap named for it is refused. Request
URLs are not logged: build_server and main set the httpx and httpcore loggers to
WARNING (quiet_request_logging), because a URL can carry an API key or a tenant
host.
A source's own options go through main's hooks, so the command line is parsed once:
add_options puts them on core's parser, so --help lists them; apply_options(namespace, server) returns the server to run; and a XippiosError it raises, a missing variable
say, stops the process with exit status 2 and the message, before anything is served.
Client configuration, for Claude Desktop or any MCP client:
{
"mcpServers": {
"example": {
"command": "uvx",
"args": ["--from", "xippios-example[mcp]", "xippios-example-mcp"],
"env": { "EXAMPLE_API_KEY": "..." }
}
}
}
HTTP routes in two lines
from xippios.core.http import router_from_tasks
router = router_from_tasks("example", [tasks.get_series]) # GET /example/get_series?series_id=...
Mount it on your FastAPI app. A task whose parameters are all scalars is a GET with
query parameters; a task with a mapping, list or model parameter is a POST whose JSON
body is keyed by parameter name. Responses are the Result[T] envelope; errors are
RFC 9457 problem details (application/problem+json), InvalidRequestError as 422.
Testing a source package
# tests/conftest.py
pytest_plugins = ["xippios.core.testing.plugin"]
# tests/test_family.py, rendered by sdk-template
from xippios.core.testing.family import * # noqa: F403
The second file collects the family conformance check: the tests of what every source
shares, kept once in core. The namespace levels stay empty and py.typed ships; mcp.py
and http.py serve exactly tasks.__all__ minus BULK_TASKS; every task, read and
write, is synchronous, returns Result[T] and has an agent docstring; the README's status
table lists exactly the read and the write tasks; .copier-answers.yml names a template
tag; pyproject.toml bounds xippios-core with ~=. A write server is its source's to
test. A source whose adapters drop a task, or whose README table is stale, fails CI
before a reviewer looks. The package under test is the one tasks.py under
src/xippios/, or the ini option xippios_package.
# pyproject.toml: the variables that hold the placeholder key in offline tests
[tool.pytest.ini_options]
xippios_placeholder_key_envs = ["EXAMPLE_API_KEY"]
@pytest.mark.livetests are skipped unlessXIPPIOS_LIVE_TESTS=1, andanyiotests run on asyncio (the plugin'sanyio_backend).- The whole run is offline (ADR-0013). From
pytest_configureon, during collection, in fixtures and in tests, a request through httpx's default transports (the plugin patches httpcore's connection pools, which they all send through) raisesRuntimeErrornaming its method and path unlessrespxanswers it, arespxroute that passes through included; mark a testnetworkto let it through. In every test not markedlive, the rate limiter never waits (mark a testrate_limitedto keep it), noQuotaPolicypauses, refuses or stays spent from one test to the next (rate_limitedkeeps the pause too), everyMemoryCachestarts and ends empty (a cache backend of the source's own is the source's to clear), and everyEnvKeyAuthsendsPLACEHOLDER_KEYwhile the variables named inxippios_placeholder_key_envshold it (fixtureplaceholder_api_key), whatever the shell or an earlier live test left behind. Thehttpxandhttpcorelogger levels come back after every test. After a live run the summary prints each quota policy's last reading,quota after the live run: usda-psd: 986 of 1000 requests left as of .... ADR-0013 states the edges of these guarantees. replay_fixture("api_GET", "corn_2024")mountstests/fixtures/api_GET/corn_2024.jsonon its method, host and path;match_params=["countOnly"]makes the route match those recorded query parameters too. A parameter's absence cannot be matched: where two fixtures share a path, mount the one withmatch_paramsfirst, sincerespxtries routes in order. The request body is never matched: assert it from the route's calls againstfixture.request.body.sent_urls(route)gives the URLs the route received as scrubbed strings, so no request has to sit in the test's frame, andsent_query(route)the last one's query as a mapping, to compare withrecorded_query(fixture).url=serves a recorded answer at another URL, such as an empty 404 recorded for one year standing in for another. Annotate the fixture asReplayFixture.response_from_fixture(load_fixture(path))is a recorded answer as anhttpx.Response, its request attached, for calling a source'sclassifydirectly.assert_time_between(result.meta.retrieved_at, before, after)brackets a time with two readings around the call andCLOCK_SLACK(five seconds) either side, for a host whose clock steps back.record(client, "/v1/series", fixture_path(...), params=...)records a live response with credentials scrubbed. Never hand-write a fixture.json=ordata=(a form) send a body, recorded with its content type. The recording goes through the client as it is configured; one that must not retry a 5xx goes through a client whose config saysRetryPolicy(max_attempts=1).max_bytes=80_000cuts a large answer's body: a JSON array after its first whole elements, in upstream's own text, a text after its first bytes, never inside a secret, and the fixture is markedtruncatedwith the whole body's size and sha256 (and an array's length); a JSON object, XML, ZIP, XLSX, gzip, XLS or a body that is not UTF-8 text is refused: record a small real answer or sample instead. It bounds the body, not the file, which escapes the body as a JSON string, text outside ASCII up to three times as long: 80,000 bytes keep a file under the 256 KiB cap.
mcp_call(server, "example_get_series", {...}) calls a tool through an in-process MCP
client, so the server's middleware, the argument check included, runs as for a real client;
it returns the decoded JSON and fails the test on error: text. mcp_call_text returns
the text, to assert a refusal.
A recording names the values that must never be written:
from xippios.core.testing import Scrub, fixture_path, record_sync
record_sync(
client,
"/account/list.json",
fixture_path(FIXTURES, "account_list", "one"),
scrub=Scrub(secrets=[tenant_name]), # REDACTED wherever it appears as given
)
The fixture is scrubbed in memory, verified and written once: if a named value is still
in the URL, a header value or a text body, nothing is written and the error says where,
never what. A form a value takes that differs from it (percent-encoded, behind a JSON
escape), or a tenant's host, the source rewrites itself, on the Fixture that
fixture_from_response returns, before it writes the file. A body that is not UTF-8 text
cannot be scrubbed and is refused unless Scrub(allow_binary=True) stores it base64,
flagged.
Status
Release 0.3.1, alpha. CHANGELOG.md lists what changed in each release, and a change's entry waits under changelog/ as a fragment until the release assembles it.
| Module | What | Status |
|---|---|---|
xippios.core.client |
httpx client, retries, rate limit, cache with a byte bound, quota policy, request hooks, env-key auth, get_answer, download, decode_text, decode_csv |
alpha |
xippios.core.errors |
taxonomy, UnknownCode, response classification |
alpha |
xippios.core.data_gov |
Gateway: the api.data.gov key, the gateway's classify, one quota policy per process |
alpha |
xippios.core.redaction |
the one credential rule of the envelope, the recorder and replay | alpha |
xippios.core.models |
UpstreamModel with dump_upstream, Result, ResultMeta with published_at_naive, ResultCap, parse |
alpha |
xippios.core.reference |
packaged CSV/JSON loaders, PackagedList, matches, closest, generated StrEnum/IntEnum modules |
alpha |
xippios.core.pagination |
paginate_offset (a page-numbered endpoint maps the offset to its page), collect |
alpha |
xippios.core.mcp |
tool registration with the argument check and the write server's confirm rule, result caps, error text, CLI with option hooks and the loopback rule, quiet request log |
alpha |
xippios.core.http |
router factory, problem details | alpha |
xippios.core.testing |
live gate, offline run, record (with max_bytes=), replay, scrub of named secrets with a plain verify, mcp_call, family check |
alpha |
Alpha: while core is 0.x, a new minor version may change the public surface, with no
backward compatibility across minors; patch releases stay compatible. A source depends
on one minor (xippios-core~=0.3.0) and adopts the next through conventions §15
(ADR-0018).
Documents
- sdk-core: docs/conventions.md — the rules of the family, which this package implements and every
sdk-*repository follows; a change to one comes with an ADR. - sdk-core: docs/definition-of-done.md — what a change satisfies before its pull request is opened.
- sdk-core: docs/review-checklist.md — the checklist every
sdk-*pull request is reviewed against. - sdk-core: docs/handover.md — the record of each core release and how a source adopts it.
- sdk-core: docs/roadmap.md — the order of the next core, template and source releases.
- sdk-core: docs/adr.md — the index of the architecture decision records under
docs/adr/, the decisions behind the rules.
Licence
Apache-2.0. See LICENSE.
Metadata
Release files for xippios-core 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| xippios_core-0.3.1.tar.gz | 313.8 kB | With provenance | Details for xippios_core-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| xippios_core-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for xippios_core-0.3.1-py3-none-any.whl |
Total release size: 434.8 kB
Release files / xippios_core-0.3.1.tar.gz
| Download URL | xippios_core-0.3.1.tar.gz |
|---|---|
| Size | 313.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3e72a1aa3a415ae420e2ec4eac362b5b63a87af9691f7b77c7884025bfc3c1b5
|
|
BLAKE2b-256 checksum How to use checksums |
b1dce4f121979585228bb0d5129df6edf1ef570fc3d15e6cb05ab932344f5670
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.
Transparency logRelease files / xippios_core-0.3.1-py3-none-any.whl
| Download URL | xippios_core-0.3.1-py3-none-any.whl |
|---|---|
| Size | 121.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
acd20665c06e21abdf6cd3d023bfb971dcf76961b3243c1f3b5459d185a3aacd
|
|
BLAKE2b-256 checksum How to use checksums |
7dc47f92eec21daa654a07cdf67fd05d9d71c81cb74953c3a2f4475abc137d8f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.
Transparency logSecurity for xippios-core 0.3.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for xippios_core-0.3.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.
Transparency logA 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.