shipeasy (Python)
Server SDK for Shipeasy — feature flags, dynamic configs, kill switches, A/B experiments, and metric tracking. Server-key only; never embed in a browser.
📚 Full documentation: https://shipeasy-ai.github.io/sdk-python/ — also browsable under
docs/. This README is generated from those docs.
🤖 Using an AI agent?
This SDK ships an installable agent skill — a copy-paste-ready guide to
configure() + Client(user), testing, experiments, error reporting, and more,
with links the agent can pull for deeper docs:
- Skill:
docs/skill/SKILL.md· raw:https://shipeasy-ai.github.io/sdk-python/skill/SKILL.md - Install it (ships with the package — no network):
shipeasy-skill install→.claude/skills/shipeasy-python/SKILL.md(or via the Shipeasy CLI:shipeasy docs skill --sdk python --install)
Humans: you can copy that skill straight into your own project's agent skills
directory (e.g. .claude/skills/shipeasy-python/SKILL.md) so your
coding agent always uses the correct Shipeasy patterns. Every doc page and snippet
is also fetchable by URL — start from the manifest at https://shipeasy-ai.github.io/sdk-python/manifest.json.
Install
# pip
pip install shipeasy
# poetry
poetry add shipeasy
# uv
uv add shipeasy
Requires Python 3.9+. Per-framework setup (Django / Flask / FastAPI) and the anon-id middleware are on the Installation page.
Quickstart — configure() once, then Client(user) per request
import shipeasy
shipeasy.configure(
api_key="sdk_server_...",
attributes=lambda u: {"user_id": u.id, "country": u.country, "plan": u.plan},
)
# construct once per callsite (cheap; binds the user)
client = shipeasy.Client(current_user)
if client.get_flag("new_checkout"):
...
config = client.get_config("billing_copy")
a = client.universe("checkout").assign() # ≤1 experiment; exposure logs on first get()
if a.get("button_color") == "green":
...
client.track("purchase", {"amount": 49}) # on conversion
Constructing Client(user) before configure() raises RuntimeError.
Documentation
| Page | What |
|---|---|
| Overview | The configure() + Client(user) model. |
| Installation | Install, frameworks (Django / Flask / FastAPI), configure() wiring. |
| Configuration | Keys, attributes, one-shot vs poll, every option. |
| Feature flags | get_flag, get_flag_detail, defaults. |
| Dynamic configs | get_config, typed decode, defaults. |
| Kill switches | get_killswitch, named switches. |
| Experiments | get_experiment, log_exposure, track. |
| Internationalization | SSR loader tag (rendering is client-side). |
| Error reporting | see() structured error reporting. |
| Testing | configure_for_testing / configure_for_offline, overrides. |
| OpenFeature | ShipeasyProvider (OpenFeature server provider). |
| Advanced | Anon-id middleware, private attributes, sticky bucketing, SSR. |
| Admin API client | Optional shipeasy.admin client for administering resources (generated from the OpenAP… |
Copy-paste snippets live under docs/snippets/
(release · metrics · i18n · ops); an installable agent skill is at
docs/skill/SKILL.md.
Testing
Use configure_for_testing() — the test-mode sibling of configure(). It does zero network, needs no api_key, and seeds the values your code under test should see via override arguments. Then read through the ordinary shipeasy.Client(user) — the same call your production code uses.
import shipeasy
from shipeasy import Client
shipeasy.configure_for_testing(
flags={"new_checkout": True},
configs={"billing_copy": {"title": "Welcome"}},
)
# construct once per callsite (cheap; binds the user)
client = Client({"user_id": "u_123"})
assert client.get_flag("new_checkout") is True
assert client.get_config("billing_copy") == {"title": "Welcome"}
# track() and get()-triggered exposure are no-ops in test mode — safe to call, send nothing
client.track("purchase", {"amount": 49})
More — the on-the-spot override helpers and a working example
shipeasy-snapshot.json — on the Testing page.
License
MIT. Evaluation is tested against the cross-language MurmurHash3 vectors in
experiment-platform/04-evaluation.md.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file shipeasy-0.19.0.tar.gz.
File metadata
- Download URL: shipeasy-0.19.0.tar.gz
- Upload date:
- Size: 338.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fbf636283b213c5012a20f4fbdb17471858e121d6a789c34d525be4619694c5c
|
|
| MD5 |
48b47498cda3d8ac54ee7ff053779ea2
|
|
| BLAKE2b-256 |
b01c59a6ef1f2b11bd400dc6af53f732f88f0cef4f223045821fbfb22b04cbaf
|
Provenance
The following attestation bundles were made for shipeasy-0.19.0.tar.gz:
Publisher:
publish.yml on shipeasy-ai/sdk-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
shipeasy-0.19.0.tar.gz -
Subject digest:
fbf636283b213c5012a20f4fbdb17471858e121d6a789c34d525be4619694c5c - Sigstore transparency entry: 2166750289
- Sigstore integration time:
-
Permalink:
shipeasy-ai/sdk-python@776b434ea0645b7d2818c6da4bbaf89f638969c4 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/shipeasy-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@776b434ea0645b7d2818c6da4bbaf89f638969c4 -
Trigger Event:
push
-
Statement type:
File details
Details for the file shipeasy-0.19.0-py3-none-any.whl.
File metadata
- Download URL: shipeasy-0.19.0-py3-none-any.whl
- Upload date:
- Size: 514.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bfa6def13d825c3ecdfc7ee3d81d3b79634bf890e4edc40c6689391bf2dcb528
|
|
| MD5 |
1dcb6f5c5aa07f75fa08073b3e3e249c
|
|
| BLAKE2b-256 |
ed950a261bbdceb595001a68ce696c460efe991854a323e66cd773a06ea5a47a
|
Provenance
The following attestation bundles were made for shipeasy-0.19.0-py3-none-any.whl:
Publisher:
publish.yml on shipeasy-ai/sdk-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
shipeasy-0.19.0-py3-none-any.whl -
Subject digest:
bfa6def13d825c3ecdfc7ee3d81d3b79634bf890e4edc40c6689391bf2dcb528 - Sigstore transparency entry: 2166750295
- Sigstore integration time:
-
Permalink:
shipeasy-ai/sdk-python@776b434ea0645b7d2818c6da4bbaf89f638969c4 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/shipeasy-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@776b434ea0645b7d2818c6da4bbaf89f638969c4 -
Trigger Event:
push
-
Statement type: