This release is a pre-release and may not be stable for production use.
cexy: Python SDK for CEXY.io
Typed Python client for the CEXY.io exchange REST and WebSocket API.
- Sync (
cexy.Client) and asyncio (cexy.AsyncClient) clients - Pydantic v2 models generated from the public OpenAPI spec; every amount is a
Decimal - Safe retries (backoff,
Retry-After,client_order_idfor orders, idempotency keys for pools) - Client-side rate limiting, cursor pagination
- WebSocket client with heartbeat, reconnect and a self-syncing order book
Status: 0.1.0.dev12, pre-release. The API may change before 1.0 (see Versioning). Pre-releases need
--pre:pip install --pre cexy.
Install
pip install --pre cexy # Python 3.9+ (--pre while releases are 0.1.0.devN)
Quickstart: public market data
No API key is needed for market data.
from cexy import Client
with Client() as client:
print(client.time().iso)
for market in client.markets.list():
print(market.symbol, market.last_price, market.status)
book = client.markets.orderbook("BTC/USDT", depth=10)
best_bid_price, best_bid_qty = book.bids[0] # Decimal, Decimal
candles = client.markets.candles("BTC/USDT", "1h", limit=24)
Also available: client.markets.get(symbol), client.markets.trades(symbol),
client.assets.list()/get(), client.networks.list(), client.fees.list(),
client.config(), client.pools.list()/get().
Quickstart: your account
Create an API key in your account settings. Keep the secret out of source code:
export CEXY_API_KEY=ak_your_key_here
export CEXY_API_SECRET=your_secret_here
import os
from decimal import Decimal
from cexy import Client
client = Client(api_key=os.environ["CEXY_API_KEY"], api_secret=os.environ["CEXY_API_SECRET"])
for balance in client.account.balances():
print(balance.asset, balance.available)
# A sub-account's balances (parent account only; same shape, incl. held_incoming):
for balance in client.account.sub_account_balances("sub-account-id"):
print(balance.asset, balance.available)
# Places a REAL order (needs the `trade` scope). Amounts: Decimal or str, never float.
placed = client.trading.place_order(
"BTC/USDT", "buy", "limit", quantity=Decimal("0.001"), price="30000", time_in_force="post_only"
)
client.trading.cancel_order(placed.order.id)
Both api_key and api_secret are required together; passing only one raises
ValueError immediately.
| Resource | Methods |
|---|---|
client.account |
balances(), balance(asset), ledger(), notifications(), sub_accounts(), sub_account_balances(id), api_keys() |
client.wallet |
deposits(), deposit(id), withdrawals(), withdrawal(id), withdrawal_addresses(), deposit_address(asset, network) |
client.trading |
open_orders(), order(id), order_by_client_id(id), order_history(), trades(), place_order(...), cancel_order(id), cancel_all(symbol=...) |
client.exports |
deposits(), ledger(), orders(), trades(), withdrawals() (CSV bytes) |
client.pools |
join(symbol, base_amount=, quote_amount=), exit(symbol, shares=) |
Note: wallet.deposit_address() creates a deposit address the first time it is called
for an asset/network pair, then returns the same address on later calls.
cancel_all requires the symbol keyword; pass symbol=None explicitly to cancel orders
in every market. It also cancels stop orders that have not triggered yet (pending_trigger),
so nothing fires into the market afterwards. The server allows 30 cancel-all calls per minute per account.
One cancel_all call handles at most 500 orders and waits up to 500 ms for orders still being
placed. The result lists cancelled, already_closed (orders that closed on their own; not an
error) and failed, with a reason per order in failures; has_more=True means call again.
The server allows 30 calls a minute per account. To keep going until nothing is left, opt in:
res = client.trading.cancel_all(symbol=None, until_done=True) # max_rounds=20, time_budget=120.0
res.cancelled, res.already_closed, res.failed, res.failures # merged: each order's latest state
res.stopped # "done", "max_rounds" or "time_budget"
res.last_error_code # e.g. "RATE_LIMITED" if the last round failed
The loop repeats while has_more is true or an order is still being placed (INVALID_STATE) or
unreadable (SERVICE_UNAVAILABLE), and waits 1, 2, 4, 8, then 15 s after a round without progress.
Every round is exactly one HTTP request (the transport does not retry inside the loop), so it never
sends more than max_rounds requests. A retryable error (429, 5xx, network) counts as a round
without progress; after a 429 it waits the server's Retry-After exactly. A wait that would reach
time_budget is not taken: the loop stops with stopped == "time_budget". A non-retryable error is
raised with the merged result so far in err.partial.
The async client has the same methods:
import asyncio
from cexy import AsyncClient
async def main() -> None:
async with AsyncClient() as client:
markets = await client.markets.list()
asyncio.run(main())
Amounts
The API sends every amount as a decimal string. The SDK parses them into
decimal.Decimal, and sends amounts as strings. Passing a float raises TypeError
before anything is sent, because a float cannot represent most decimal amounts exactly.
Held incoming transfers
Every balance has held_incoming: incoming internal transfers still held, each with
transfer_id, amount (Decimal) and available_at. Their sum is already included in
locked, so never add it to locked or total again. There are at most 100 entries, soonest
available_at first (millisecond precision), with no sender identity. An entry disappears once
the transfer is released (the amount moves to available) or cancelled by the exchange. It is
always a list ([] when none, including from servers that predate the field).
Ledger references
LedgerEntryResponse.reference says what caused an entry. It is a union told apart by type:
LedgerReferenceDeposit, LedgerReferenceWithdrawal, LedgerReferenceOrder, LedgerReferenceTrade,
LedgerReferenceTransfer, LedgerReferenceAdjustment, LedgerReferencePool,
LedgerReferenceFuturesTransfer and LedgerReferenceSystem (all in cexy.models). A type this
SDK version does not know yet, or a reference whose fields don't match its type (a missing
field, or one of the wrong type), decodes to
LedgerReferenceUnknown with every field kept, so a new server-side cause never breaks decoding.
from cexy.models import LedgerReferenceOrder, LedgerReferenceUnknown
for entry in client.account.ledger().auto_paging_iter():
ref = entry.reference
if isinstance(ref, LedgerReferenceOrder):
print(entry.kind, "order", ref.order_id)
elif isinstance(ref, LedgerReferenceUnknown):
print(entry.kind, "unrecognised cause", ref.model_dump())
Ids (order_id, pool_id, ...) are plain strings; the SDK does not check their format.
Errors
Every API error raises cexy.CexyApiError (or a subclass) with code, message,
details, fields, request_id, retryable and status. Branch on code, never on the
message.
| Exception | When |
|---|---|
ValidationError |
400, e.g. VALIDATION_FAILED, PRECISION_EXCEEDED (see fields) |
AuthenticationError |
401, e.g. UNAUTHENTICATED, INVALID_CREDENTIALS |
ForbiddenError |
403: FORBIDDEN (key lacks a scope), API_KEY_NOT_ALLOWED (session-only endpoint) |
JurisdictionBlockedError |
451: JURISDICTION_BLOCKED (not available in the caller's jurisdiction); a ForbiddenError subclass |
NotFoundError |
404 |
ConflictError |
409, e.g. ALREADY_EXISTS, IDEMPOTENCY_KEY_CONFLICT |
UnprocessableError |
422, e.g. INSUFFICIENT_FUNDS, MARKET_UNAVAILABLE |
RateLimitError |
429; .retry_after gives the server's requested wait |
ServerError |
5xx, e.g. UNDER_MAINTENANCE, ENGINE_OVERLOADED |
PagingStalledError |
local, PAGING_STALLED: a futures history iterator gave up on a busy provider (retryable) |
PagingCursorRepeatedError |
local, PAGING_CURSOR_REPEATED: a futures history page with rows repeated its cursor (not retryable) |
An error code this SDK version does not know is raised as the base CexyApiError: it never
crashes the client. Network failures after retries raise CexyConnectionError. Calling a
private endpoint on a client without keys raises MissingCredentialsError locally.
from cexy import UnprocessableError
try:
client.trading.place_order("BTC/USDT", "buy", "market", quote_quantity="50")
except UnprocessableError as err:
if err.code == "INSUFFICIENT_FUNDS":
print("need", err.details.get("required"))
Retries and idempotency
Client(max_retries=3, timeout=10) retries with exponential backoff and full jitter:
- GET requests retry on network errors, 429, 502/503/504 and any error with
retryable: true. A 4xx is never retried except 429 and 409CONCURRENT_MODIFICATION, whatever its body says. - 429 waits for the larger of the
Retry-Afterheader anddetails.retry_after_seconds. These server hints are untrusted: unparseable, negative or non-finite values are ignored, and a requested wait above 120 s is never waited: the call raisesRateLimitErrorat once (its.retry_afterstill gives the server's value), so a bad header can't hang your program. - Orders: safety rests on
client_order_id, not onIdempotency-Key. The server does not honourIdempotency-KeyonPOST /trading/orders,DELETE /trading/orders/{id}or cancel-all, so the SDK does not send one there.place_orderalways sends aclient_order_id(a UUID unless you pass one). It is unique per account, and a repeat is refused before any funds move. After an ambiguous failure (timeout, dropped connection, 500/502/504) the SDK first looks the order up withtrading.order_by_client_id(). If the order exists, it is returned. Otherwise the order is resent with the sameclient_order_id. If a retry is refused as a duplicate (ALREADY_EXISTS), the existing order is fetched and returned.cancel_orderis naturally repeatable and is retried. If a retry is refused withINVALID_STATE(an earlier attempt already cancelled the order, or it filled meanwhile), the SDK fetches and returns the order's current state, so checkstatus.cancel_allis retried: repeating it only cancels whatever is still open.
- Pool join/exit carry an automatically generated
Idempotency-Keyheader, reused on every retry of the same call. A409 CONCURRENT_MODIFICATION(the same key still in flight) is retried with the same key. Passidempotency_key=to use your own.
Pagination
History endpoints return a Page with items, next_cursor and has_more:
page = client.trading.order_history(symbol="BTC/USDT", limit=100)
for order in page.auto_paging_iter(): # fetches later pages lazily
print(order.id, order.status)
# or one page at a time
next_page = page.next_page() # None on the last page
With AsyncClient: async for order in page.auto_paging_iter(): ....
Futures data (read only)
client.futures reads futures market data and the account's own futures data. Nothing here
places or changes anything.
Public market data (no key needed):
markets = client.futures.markets() # every listed market and its figures
btc = client.futures.market("BTC").market
book = client.futures.order_book("BTC", depth=10) # up to 20 levels a side
candles = client.futures.candles("BTC", "1h") # 500 candles; before=<epoch ms> for older
trades = client.futures.trades("BTC", limit=50) # at most 100, side/price/size/time only
Account data needs a key with the read scope (requests are signed like every private
call):
client = cexy.Client(api_key="...", api_secret="...")
pos = client.futures.positions() # margin summary and open positions
orders = client.futures.open_orders()
for fill in client.futures.iter_fills(): # every fill, newest first, 30 days back
print(fill.id, fill.coin, fill.side, fill.price, fill.size)
for payment in client.futures.iter_funding(): # every funding payment
print(payment.coin, payment.amount)
- Every response carries
as_of(when the data arrived) andstale. For books and tradesstaleis the live feed's health, not the data's age: a quiet book can be unchanged and current. - Without a futures account the account reads answer
has_account=False(no error);iter_fills()/iter_funding()then yield nothing. - Prices and sizes are
Decimal. fills(cursor=...)andfunding(cursor=...)return one page (has_account, the rows,next_cursor). Paging rules, whichiter_fills()/iter_funding()follow for you: the first request sends no cursor; the cursor is opaque text, sent back exactly as given; a page can be short, even empty, and still have anext_cursor, so keep going until it isNone. An empty page whosenext_cursorequals the cursor just sent means the provider is busy: the iterator waits (the normal retry backoff) and asks for the same cursor again, up tomax_busy_retriestimes in a row (default 3; independent of the client'smax_retries), then raisesPagingStalledError(codePAGING_STALLED, a local error, retryable): start again later. A page with rows that repeats the cursor just sent is a server fault: its rows are yielded, thenPagingCursorRepeatedError(PAGING_CURSOR_REPEATED, not retryable) is raised instead of looping. After either error the rows already yielded are not the complete history; both errors carry the cursor indetails["cursor"]. A retryable error between pages (e.g. 503 withRetry-After) is retried for the same cursor by the client's normal retry policy, and paging continues. Rows areFuturesFillandFundingmodels (funding rows have no id).- When nothing usable is cached and the provider cannot be read, the server answers 503
SERVICE_UNAVAILABLEwithdetails["reason"] == "futures_data_unavailable"and aRetry-After(1 to 30 s). It is retryable: the client retries it like any 503 and then raisesServerError.
With AsyncClient every method is awaited, and the iterators are async for.
Rate limits
Server-side limits:
- Anonymous (public) requests: about 120 requests/minute per IP address.
- API-key requests: each key has its own limit, about 600 requests/minute per key (configurable server-side; this applies after the upcoming key release).
The client keeps itself below these with a token bucket: 100/min by default without a
key, 300/min with a key. Override it with Client(rate_limit_per_minute=...). When
responses carry X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset
(the number of seconds until the window resets), the client slows down to match them, but it
never blocks longer than 120 s because of these headers. A 429 is retried after the server's
Retry-After (at most 120 s; see above).
WebSocket
import asyncio
from cexy.ws import WebSocketClient, BOOK_STALE, RECONNECTED
async def main() -> None:
async with WebSocketClient() as ws: # wss://api.cexy.io/api/v1/ws
await ws.subscribe("ticker:BTC/USDT", "trades:BTC/USDT")
book = await ws.order_book("BTC/USDT")
async for event in ws:
if event.type == "orderbook.update":
print(book.sequence, book.best_bid(), book.best_ask())
elif event.type == BOOK_STALE:
print("gap detected; book is stale until the next update")
asyncio.run(main())
The client handles the protocol rules for you:
- It sends
{"op":"ping"}every 30 s (required: the server closes idle connections), accepts the server's unsolicitedpongframes, and reconnects if nothing arrives for 75 s. - It reconnects with exponential backoff and jitter, then re-authenticates, re-subscribes
and emits a
reconnectedevent. - It refuses more than 100 subscriptions locally (reported in
SubscribeResult.refused) and keeps its own send rate under 200 messages per minute. - Every request carries an
idand waits for the server's acknowledgement with that id (authenticated,subscribed,unsubscribed,pong). Anerroracknowledgement, or none withinrequest_timeout, raisescexy.ws.WebSocketError.await ws.ping()returns the round-trip time. - Subscribe refusals. The server refuses channels one by one: an
errorframe with the request's id for each refused channel, then onesubscribedack listing the accepted ones (no ack at all when none was accepted).subscribe()collects them and returns the accepted channels inaddedand the refused ones inrefused, with each server error inerrors; every refusal is also emitted as asubscribe_refusedevent. Refused channels are not held and never retried automatically (error frames carry no retry hint: back off yourself, about 60 s afterRATE_LIMITED). Only when every channel sent was refused does it raiseSubscribeRefusedError(aWebSocketErrorwith the first error'scode, and.result). A timeout counts as "all refused" once at least one error frame has arrived; with no ack and no error it raisesTIMEOUTand the channels stay held, so a reconnect sends them again. Errors pair with the channels missing from the ack, in the order sent (spot names compared the way the server canonicalises them, ignoring case and reading_as/in the symbol, soticker:btc_usdtacknowledged asticker:BTC/USDTis accepted; futures names exactly); if there are fewer errors than missing channels (the server stops at its 100-subscription limit), the last error covers the rest. - Re-subscribing by itself (after a reconnect, a re-auth, or
futures.resynconfutures.account): every refusal is reported assubscribe_refused. A private channel refusedUNAUTHENTICATEDgoes back to pending and is subscribed after the next successful auth; any other refusal drops the channel. - Unknown event types are ignored; an unknown
protocol_versionlogs one warning. - You can register callbacks with
ws.on("trade.new", handler)instead of iterating.
Order-book rules (implemented by ws.order_book()):
- Subscribe to
orderbook:{symbol}first, then take a REST snapshot at sequenceS. - Drop updates with
sequence <= S. - Every
orderbook.updatecarries the complete top 50 of both sides ("full": true) and replaces the book outright; there are no deltas. REST levels deeper than 50 are never merged into the live book. - A sequence gap marks the book
stale(and emitsbook_stale) until the next update heals it. There is no forced resync. - After every reconnect a fresh snapshot is taken: sequences reset when the server restarts and are never compared across connections.
- A
CONCURRENT_MODIFICATIONerror frame (messages were dropped) triggers a fresh snapshot of every book and aresyncevent, so you can refresh other state too.
Private channels (orders, balances, deposits, withdrawals, account, futures.account) need
await ws.auth(token) with a session access token; it returns once the server sends
authenticated. With an API key, use await ws.auth_key() on a WebSocket built from a
client with your key (see Request signing). If the session is revoked, the account channel delivers session.revoked and the
client emits auth_lost; the socket stays open for public channels.
The server ends private subscriptions, without any frame, when auth() succeeds as another
user, when an auth() fails (any error signs the connection out), or when this connection's own
session is revoked (session.revoked with current: true). The client emits auth_changed
(data: reason = user_changed, auth_failed or session_revoked, plus the dropped
channels) and re-subscribes those channels itself: at once for another user, after the next
successful auth() otherwise, followed by resync with {"reason": "reauth"} (refetch private
state).
The server can also sign a connection out by itself: signed_out (a planned server frame; this
SDK already handles it). Reason expired becomes auth_changed token_expired, reason revoked
becomes session_revoked plus auth_lost, and any other reason becomes signed_out with the raw
value in code. Re-send auth() with the fresh token on every token refresh; that keeps the
private subscriptions.
Missed private events. Every private frame carries a per-connection sequence. When numbers
are skipped (after a short reorder window, reorder_window=0.25 seconds by default), the client
emits sequence_gap and resync with {"reason": "sequence_gap", "channel": ...}: refetch that
channel's state over REST. balances.resync, deposits.resync and withdrawals.resync (the last
two planned) emit resync with balances_resync, deposits_resync or withdrawals_resync.
Futures channels
import cexy
from cexy import ws as cws
async with cws.WebSocketClient(rest=cexy.AsyncClient(api_key="...", api_secret="...")) as ws:
await ws.auth_key() # only futures.account needs it
res = await ws.subscribe(
cws.futures_mids(), # futures.mids
cws.futures_orderbook("BTC"), # futures.orderbook:BTC
cws.futures_candles("BTC", "1m"), # futures.candles:BTC:1m
cws.futures_account(), # futures.account (private)
)
for channel, err in res.errors.items(): # refused by the server: not retried
print("refused", channel, err.code)
async for event in ws:
if event.type == "futures.orderbook.update":
best_bid = event.data["bids"][0] # {"price": "...", "size": "..."}
elif event.type == cws.RESYNC and event.channel:
... # refetch that channel over REST
- Channels:
futures.mids,futures.orderbook:{coin},futures.trades:{coin},futures.candles:{coin}:{interval}(1m 5m 15m 1h 4h 1d),futures.status, and the privatefutures.account(futures.positionsandfutures.orders, full state on subscribe and on change). The coin is case-sensitive and sent exactly asGET /api/v1/futures/marketslists it (1-20 ASCII letters or digits). The helpers (andsubscribe()for anyfutures.*string) check names locally: a bad one raisescexy.ws.ChannelNameError(codeCONFIG, aValueError) and nothing is sent. - Public futures channels send no snapshot on subscribe: seed from REST (
client.futures). Book levels are{price, size}objects; book, mids, positions and orders frames are complete replacements. Public futures channels are not gap-tracked. futures.accountsubscribed beforeauth/auth_keysucceeds is held (res.held,ws.pending_channels) and subscribed once the connection is authenticated.futures.resync(data: {}) is delivered as an event, followed byresyncwith{"reason": "futures_resync", "channel": ...}: refetch that channel over REST. Onfutures.accountthe server's poller has stopped, so the client also unsubscribes and subscribes again by itself; if that subscribe is refused (e.g.NOT_FOUND"No futures account") the channel is dropped and asubscribe_refusedevent reports it.- Refusals (
RATE_LIMITED,NOT_FOUND,VALIDATION_FAILED,SERVICE_UNAVAILABLE) follow the subscribe-refusal rules above: listed inres.refused/res.errors, emitted assubscribe_refused, not retried automatically. ping_intervalmay be at most 60 s (default 30 s).
Request signing
Every private request is signed (auth="hmac", the default since 0.1.0.dev11). The API is
switching off the old mode that sent the secret in X-API-Secret, and refuses it with
SIGNATURE_REQUIRED:
client = cexy.Client(api_key=KEY, api_secret=SECRET) # signs requests; same as auth="hmac"
The secret never leaves your process: every private request is signed
(X-API-Key, X-API-Timestamp, X-API-Nonce, X-API-Signature), every retry with a fresh
timestamp and nonce. A key issued before signing existed fails with KEY_NOT_SIGNABLE: create a new
API key. WebSocketClient(rest=async_client).auth_key() authenticates a WebSocket with the same key.
The signed timestamp must be at most 30 s behind and 5 s ahead of the server clock: keep the system
clock synchronised (NTP). After SIGNATURE_EXPIRED the client adopts the server clock (at most 1 h
away) and resends once. For a few seconds after the API's replay-protection store restarts, it may
answer 503 SERVICE_UNAVAILABLE (nonce_store_warming); reads are retried after Retry-After.
Live balances
async with cexy.AsyncClient(api_key=KEY, api_secret=SECRET) as rest:
async with WebSocketClient(rest=rest) as ws:
await ws.auth(session_token)
balances = await ws.live_balances()
balances.on("update", lambda e: print(e.data["asset"], e.data["balance"]))
print(balances.get("USDT"), balances.stale, balances.last_error)
live_balances() subscribes balances, takes a REST snapshot and applies newer balance.updated
events (only when their sequence is greater than the one it holds; a total of 0 removes the row).
It refetches by itself on a missed event, balances.resync, CONCURRENT_MODIFICATION, a reconnect
or an account change, at most every min_snapshot_interval seconds (default 2; 0 means no minimum),
and never because a balance's own sequence skipped values. A failed snapshot or owner lookup is
retried after retry seconds (default 1), doubling up to 30. At the start and after every account change it checks that the REST key's account
(account.id()) is the WebSocket's authenticated user: otherwise nothing is merged and
last_error.code is ACCOUNT_MISMATCH. stale is true while a refetch is pending. With your own
snapshot source, also pass its owner (owner_id or account_id); without one,
live_balances() raises a CONFIG error.
Security notes
- API keys can never withdraw or transfer funds, whatever their scopes.
- Use a
read-only key unless you trade, and restrict keys to your IPs withallowed_ips. - Keys are sent only as headers, only to endpoints that need them, and never in a URL. Never put secrets in URLs or source code.
- The SDK redacts keys from
repr(), logs and exception messages, and never sends anAuthorizationheader. If a server response echoes the key or secret, it is replaced with***in the exception's message, details, fields and request id. - The SDK never follows HTTP redirects, even on an
http_clientyou created withfollow_redirects=True. A 3xx answer raisesCexyApiErrorwith codeUNEXPECTED_REDIRECT(not retried), so keys are never re-sent to another host and an order is never re-posted. - Connections use
https://andwss://only.allow_insecure=Truepermitshttp://orws://for a loopback host (localhost, 127.0.0.1, ::1) only, for local testing. - Report vulnerabilities as described in SECURITY.md.
Authentication extension point
Credentials are applied by an cexy.auth.Authenticator (apply(method, url, headers, body)).
HmacAuth (the default, auth="hmac") signs each request; HeaderKeyAuth (auth="headers")
sends the static key headers, which the API is switching off. Either plugs in without changing
the resource API.
Versioning
The SDK stays at 0.x until API request signing ships, then moves to 1.x, which targets
/api/v1. Additive API changes produce minor releases. Each release notes the spec snapshot
it was built from in CHANGELOG.md.
Development
python -m venv .venv && . .venv/bin/activate
pip install -e ".[dev,codegen]"
pytest # offline: mocked HTTP and a local fake WebSocket server
CEXY_LIVE_TESTS=1 pytest -m live # opt-in: 3 public, unauthenticated GETs to api.cexy.io
ruff check . && ruff format --check . && mypy
scripts/generate.sh # regenerate models (cexy/_generated) and sync code (cexy/_sync)
scripts/sync_spec.sh ../cexy-api-spec # refresh the vendored spec and conformance fixtures
python tools/scan_internal.py . # extra local patterns: $CEXY_SCAN_PATTERNS_FILE
tools/scan_internal.py is a verbatim copy from cexy-api-spec. Infrastructure-specific
patterns are not in the repository: they are read from the file named by
CEXY_SCAN_PATTERNS_FILE (default ~/.config/cexy/scan-patterns.txt), which CI writes from
a repository secret.
spec/openapi.sdk.jsonandtests/fixtures/conformance/are vendored from cexy-api-spec; CI checks they are in sync.- Type checking: mypy runs with
python_version = "3.10"(current mypy no longer accepts 3.9 as a target), while the CI test matrix still runs the suite on Python 3.9 to 3.13, so 3.9 runtime compatibility is covered by the tests. cexy/_generated/is generated with datamodel-code-generator;cexy/_sync/is generated fromcexy/_async/. Edit the sources, then runscripts/generate.sh; CI fails on drift.
License
MIT, see LICENSE.
Metadata
Release files for cexy 0.1.0.dev12
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 |
|---|---|---|---|---|
| cexy-0.1.0.dev12.tar.gz | 105.3 kB | With provenance | Details for cexy-0.1.0.dev12.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cexy-0.1.0.dev12-py3-none-any.whl | Python 3 | none | any | Details for cexy-0.1.0.dev12-py3-none-any.whl |
Total release size: 203.7 kB
Release files / cexy-0.1.0.dev12.tar.gz
| Download URL | cexy-0.1.0.dev12.tar.gz |
|---|---|
| Size | 105.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
41c0ce265a474474d23dc25975d5aa43b14f37bdb1ca2bd3f508f1574fda360f
|
|
BLAKE2b-256 checksum How to use checksums |
af6ce45a8d32ad3cff4a5227a72277b166d4f705f6633862756bcebaa1466bcd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 2, 2026.
Transparency logRelease files / cexy-0.1.0.dev12-py3-none-any.whl
| Download URL | cexy-0.1.0.dev12-py3-none-any.whl |
|---|---|
| Size | 98.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
03bedcd08ff8e4aa9e4e25eee2d836380b95f6cf21f3d65c3fc0304aacd85aa1
|
|
BLAKE2b-256 checksum How to use checksums |
64fffaeb39cf51ce238a174054d23e6d8007b651fb5e4dea216d37a0fc2b1574
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 2, 2026.
Transparency logSecurity for cexy 0.1.0.dev12
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 cexy-0.1.0.dev12.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 Oct 2, 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.