strata-python
Common code for the strata Python web server apps (FastAPI + CLI), the Python counterpart of strata-react. Every app made from python-app-template used to carry its own drifting copy of these modules; they live here once. It is opinionated and built for those apps rather than as a general-purpose library, but it is public, MIT-licensed and on PyPI.
| Module | What it gives an app |
|---|---|
strata_python.oslib |
Cross-platform file locks, process liveness (pid_alive), kill_tree, lower_priority, detached_kwargs, load_average, start_supervised/watch_supervisor/kill_group (a child in its own process group that dies with its parent), venv_python, cli_command(module) |
strata_python.settings |
Settings / Setting / ListSetting: one JSON file in ~/.<app> with <APP>_* environment overrides, validation (absolute_path, non_empty, number_between, whole_between, iso_date, boolean), typed getters, atomic saves, and bind(store) to keep them elsewhere (strata_python.db.settings.TableStore) |
strata_python.web |
base_app (health with the app's own fields and commit + typed settings routes), add_error_handlers (exceptions to ErrorBody responses), add_system (GET /api/system: folders, disks, services), source_commit, add_web (built web app or stand-in page at every non-API path), with_base (reverse-proxy-safe <base href>), static_file (path-safe), serve |
strata_python.cli |
add_doctor (imports, labels, optional modules and the app's own Checks), add_set, add_serve for the app's argparse subcommands |
strata_python.contracts |
The shapes the apps' APIs share, as pydantic models for response_model: Health, SystemInfo, ErrorBody, Task (with TaskState), Progress, Page[T], FileRef, Judgment |
strata_python.client |
ServiceClient, the standard-library base for calling a strata service: JSON calls, Rejected (4xx, with the reason and payload) and Unavailable (down or 5xx), retried reads, a long-poll wait, available(), and env_url |
strata_python.tasks |
Work outside a request: next_state/backoff_s/RetryLater (when to retry), report_progress and ProgressReporter (throttled), SingleFlight (one run per key, Conflict on a second), StatusFile and Detached (a process that outlives the server), Ticker (a loop that survives its errors), and with the [db] extra tasks.queue (Queue, Worker, jobs_table: durable jobs with retry, dedupe, resources, cancel and crash recovery) |
strata_python.clients.models |
The strata-models client, standard library only: run, submit, wait, role_model, gpu_lease, a shortcut for every role the service runs (faces, face_kind, transcribe, ocr, speak, denoise_audio, audio_quality, generate_image, embed, enhance_video, and ask for the language models) and a typed result for each |
strata_python.http_server / live |
A real scripted HTTP server and a real uvicorn server on loopback, for tests that make actual requests |
| pytest plugin | Loaded automatically: hermetic home and data folders (strata_env adds the app's own variables), a no-network guard, http_server and live_app, the fake_urlopen, fake_popen, fake_run and no_sleep fixtures, fake_models (a stand-in strata-models), and the integration marker on everything under tests/integration |
strata_python.testing |
The fakes behind those fixtures (FakeResponse, http_error, FakeUrlopen, FakePopen, FakeRun, Sleeper) FakeModels, and the CLI runners run_cli(main, *args) and run_module("myapp", *args, src=...) |
strata_python.db (extra [db]) |
The shared database: connect("myapp") (the app's schema of one shared Postgres, or a SQLite path), a declarative base with the shared NAMING_CONVENTION for typed models, Alembic migrations with no per-app env.py, the live-database guard, the strata-db command, and the db_* fixtures (SQLite by default, a throwaway Postgres with --pg) |
strata_python.pages (extra [pdf]) |
A scanned page described as blocks, lines, styled spans and figures in scan pixels, drawn as a PDF with real embedded fonts (render), and read back as pixels at the scan's dpi (rasterise) and as text (read_text): for rebuilding scanned books, and for scoring a rebuild with the renderer that prints it |
strata-check |
The one gate: lockfile, ruff, ruff format, pyright strict, ty, unit tests with coverage |
strata-public-check |
Fails on email addresses, private IPv4 addresses, home-folder paths and the regexes in STRATA_PUBLIC_DENY in a tree, sdist or wheel; run before anything public is published. Silence a false positive with [tool.strata-public-check] exclude = ["web/package-lock.json"] (or --exclude), or strata-public-check: ignore on the line (never applies to STRATA_PUBLIC_DENY) |
Move an app onto it
The goal: an app keeps only its plumbing and business logic, and everything else comes from here. Work through the steps in order, one commit each, running scripts/check after every step. Each step says what to delete, so the app gets smaller as it goes. What changed in each release, and how to upgrade, is in CHANGELOG.md.
1. Depend on the release
# pyproject.toml
[project]
dependencies = [
"strata-python>=0.2,<0.3", # brings FastAPI, uvicorn, pydantic and pytest; while 0.x, cap below the next minor
# ... only what is the app's own: torch, opencv, yt-dlp ...
]
[dependency-groups]
dev = ["strata-python[dev]"] # ruff, pyright, ty, httpx and the pytest plugins, at the versions strata-check expects
Delete from the app's own lists everything strata-python already brings (fastapi, uvicorn, pydantic, pytest, ruff, pyright, ty, pytest-cov, pytest-xdist, pytest-randomly, pytest-timeout, httpx) and any [tool.uv.sources] strata-python = { git = ... } entry, then run uv lock. To try an unreleased commit, put a git source with rev = "<sha>" back for the moment.
The shared versions are decided here: strata-python sets a minimum (what its CI tested) and a cap (the next release that may break) for each, and its own dependabot keeps them current. Each app still has its own uv.lock, so one dependabot PR a week per app is the floor; make it one, not one per package:
# .github/dependabot.yml in the app
version: 2
updates:
- package-ecosystem: uv
directory: /
schedule: { interval: weekly }
groups: { python: { patterns: ["*"] } } # strata-python and everything else in one PR
- package-ecosystem: github-actions
directory: /
schedule: { interval: monthly }
groups: { actions: { patterns: ["*"] } }
Security updates still arrive on their own as soon as they are published; keep them on.
2. The gate
scripts/check becomes one line, and the app's own scripts/check.py goes:
#!/bin/bash
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$DIR/.." && exec uv run --locked strata-check "$@"
It runs the lockfile check, ruff, ruff format, pyright strict, ty and the unit tests with coverage. --fast skips the tests and --fix applies safe ruff fixes. An optional [tool.strata-check] sets paths (default src, tests, scripts) and tests (default tests/unit). CI calls the same script. A public app also runs uv run strata-public-check . dist/* in CI, with STRATA_PUBLIC_DENY as a repository secret.
3. Settings
Replace the app's settings.py (its key list, getters, file handling and environment lookups) with a declaration:
from strata_python.settings import ListSetting, Setting, Settings, absolute_path, non_empty, whole_between
SETTINGS = Settings(
"myapp", # ~/.myapp/settings.json, moved with MYAPP_HOME
[
Setting("data_dir", default=lambda: "/srv/myapp", normalise=absolute_path),
Setting("greeting", default="Hello", normalise=non_empty),
Setting("workers", default="2", normalise=whole_between(1, 16)),
ListSetting("source_roots", item=absolute_path, env="MYAPP_SOURCES"), # MYAPP_SOURCES split on os.pathsep
],
prefix="MYAPP", # only if the app already runs with other variable names
)
SETTINGS.get("greeting") # MYAPP_GREETING, else the file, else the default
SETTINGS.save({"greeting": "Hi"}) # validated and written atomically; None resets to the default
SETTINGS.folder("data_dir") # the value as a folder, created if missing
Values are canonical strings, and lists of them. Normalisers for the common kinds give one spelling each: number_between(lo, hi), whole_between(lo, hi), iso_date(allow_blank=True) and boolean, read back with get_float, get_int and get_bool. A ListSetting is a JSON list in the file (a string there is split, so a hand edit works), split on sep in the environment (os.pathsep by default, sep="," for names), with item normalising each entry. get_list returns it, and all() and GET /api/settings return it as JSON. get and set show it joined, and save takes a list or a joined string.
To keep the values in the app's database instead of the file, add the table to the models and bind at service start, after the migrations. The file's values are copied in the first time, and the CLI and tests without a database keep using the file:
from strata_python.db.settings import TableStore, settings_table
SETTINGS_TABLE = settings_table(Base.metadata) # in models.py, so the migrations create it
SETTINGS.bind(TableStore(engine, SETTINGS_TABLE)) # any object with load() and update(changes) is a store
4. The server
from strata_python import web
def create_app():
app = web.base_app("myapp", __version__, SETTINGS) # GET /api/health, GET and PUT /api/settings, /api/docs
# ... the app's own /api routes ...
web.add_web(app, STATIC_DIR, LANDING_HTML) # last: /assets, top-level files, and index.html at every other path
return app
Two more that replace code most servers carry:
web.add_error_handlers(app) # ValueError 400, PermissionError 403, KeyError and FileNotFoundError 404,
# tasks.Conflict 409, client.Rejected 502, client.Unavailable 503: {detail, payload}
web.add_system(app, __version__, commit=web.source_commit(__file__),
folders={"data": lambda: SETTINGS.get("data_dir")},
services={"strata-models": "http://127.0.0.1:8366"}) # GET /api/system, a SystemInfo
Delete the app's guard() (or each route's try/except raising HTTPException), passing its own exceptions as add_error_handlers(app, {BookLocked: 423}), and its /api/system route. Give base_app the same commit= so /api/health says which source the server runs. Declare a route's answer with a shape from strata_python.contracts (response_model=Page[Task]) where the app already returns that shape, so the web app's types can come from /api/openapi.json.
Delete the app's own /api/health and /api/settings routes, its /assets mount, SPA fallback, with_base and static_file copies and its uvicorn.run wrapper. web.serve(app, argv, default_port=...) replaces the last of these. For health fields of the app's own, pass health=lambda: {"gpu": gpu_name()}: they follow ok and version, and may set ok to false. It runs on every request, so keep it cheap.
5. The CLI
import argparse
from strata_python import cli, web
def main(argv=None):
parser = argparse.ArgumentParser(prog="myapp")
sub = parser.add_subparsers(dest="cmd", required=True)
cli.add_doctor(sub, "myapp", __version__, ("fastapi", "uvicorn")) # versions, and whether each import works
cli.add_set(sub, SETTINGS) # myapp set KEY [VALUE|default]
cli.add_serve(
sub, lambda host, port: web.serve(create_app(), ["--host", host, "--port", str(port)]), default_port=8000
)
# ... the app's own subcommands, each with set_defaults(fn=...) ...
args = parser.parse_args(argv)
return args.fn(args)
Delete the hand-written doctor, set and serve subparsers. Each app's port belongs in its deploy units, not in this library.
A doctor that needs more than imports takes labels, optional modules, checks and its own hint, and prints every app's rows in the same columns:
cli.add_doctor(
sub,
"myapp",
__version__,
("fastapi", ("rawpy (DNG decoding)", "rawpy"), cli.Module("ultralytics", optional=True)),
checks=[cli.Check("ffmpeg", cli.program("ffmpeg", "apt install ffmpeg")), cli.Check("gpu", gpu_check)],
hint="uv sync (scripts/setup_env)",
)
A check returns (status, text) with status ok, missing, slow (works, but not as it should; never fails) or broken, and an exception counts as broken. Doctor exits 1 when a required module or check is missing or broken. A check that may be missing without that being a fault is Check(..., optional=True).
5b. The strata-models client (apps that use the model service)
Drop the strata-models-client path or git dependency and change the import. The functions, their arguments and the exceptions are the same:
from strata_python.clients import models as sm # was: import strata_models_client as sm
page = sm.OcrPage.from_json(sm.ocr("/path/page.png", app="strata-scan")) # typed: page.lines[0].words[0].box
talk = sm.Transcript.from_json(sm.transcribe("/path/talk.wav", app="strata-360"))
with sm.gpu_lease("strata-stills", vram_gb=4):
run_my_own_cuda_code()
The shortcuts still return the service's JSON, so existing code keeps working, and the result classes keep all of it in .raw. There is one shortcut for every role the service runs (sm.ROLES): faces, face_kind, transcribe (also role="transcribe-fast"), ocr, speak, denoise_audio, audio_quality, generate_image, embed and enhance_video, plus ask for the language-model roles (vision-language, text, and the judges). Each has a result class (Answer, GeneratedImage, Embeddings, FaceKinds, CleanAudio, AudioQuality, EnhancedVideo and the four above). In tests, the fake_models fixture (section 7) stands in for the service, so the app's tests need neither the service nor a GPU. The roles models.toml lists without a runtime yet (sound-events, speaker-embedding, detect-people, upscale, denoise, nsfw) have none: run(role, params, app) reaches them once the service serves them.
6. OS helpers
Delete the app's oslib.py and import from strata_python.oslib: file_lock(f), pid_alive(pid), kill_tree(pid, sig), lower_priority(nice, io=False) (io=True for idle disk priority too; drop the app's ionice helper), venv_python(venv) and cli_command(module). cli_command now takes the module name (cli_command("myapp")). Local alive(pid), _alive and lower_priority() copies go too. detached_kwargs() starts a process outside the server's session and load_average() replaces 360's copy. listory's job_process, start_job, watch_supervisor, terminate_job_group and kill_job are start_supervised(cmd, env=), watch_supervisor(), terminate_own_group() and kill_group(proc); with the queue's Worker an app needs none of them directly.
6b. Background work
Replace the app's job dicts and loops with strata_python.tasks:
- An in-process run per key ("scan this folder") is
SingleFlight:FLIGHTS.start(key, fn)raisesConflict(a 409 withadd_error_handlers) when that key is running;fn(flight)checksflight.stopping;FLIGHTS.get(key).as_json()is the status. Delete the app's*_JOBSdicts, their locks and their stop flags. - Work that must outlive a restart is
Detached(cmd, status_path, log):start(),read(),stop(). The child writes its own progress and end state withStatusFile.from_env().update(...). Delete the app'swrite_statuscopies and its pid bookkeeping. - A loop every N seconds is
Ticker(every_s, fn, name=...). Delete the hand-writtenwhile not stop.wait(...)threads. - Progress from deep inside a task is
report_progress(done, total, text); the runner binds aProgressReporter(at most one write a second). Retry rules arenext_state(attempts, error, progressed=...): delete the app's own backoff. - Jobs that must survive a restart, retry and be listed are the durable queue (with the db extra). Add
JOBS = jobs_table(Base.metadata)to the models and a revision, then:
from strata_python.tasks.queue import Job, Queue, Worker
QUEUE = Queue(engine, JOBS, on_fail=cascade) # on_fail(conn, job, error), in the failing transaction
QUEUE.enqueue("ocr", {"page": 3}, domain="book:12", dedupe=True, resources=["gpu"], timeout_s=600)
WORKER = Worker(QUEUE, {"ocr": ocr_page}, concurrency=2).start() # a job process per thread, reused; recovers dead workers' jobs
QUEUE.page(state="running", after=cursor) # Page[Task] for GET /api/jobs
QUEUE.cancel(job_id); QUEUE.retry(job_id); QUEUE.prune(older_than_s=30 * 86400)
A handler is a module-level fn(job) -> result that reads job.options and reports progress. By default jobs run in job processes (python -m strata_python.tasks.child, one per worker thread, kept between jobs and importing the handlers by name), so a cancel, a timeout or WORKER.stop() kills the job and every tool it started, and jobs die with the server; a quick job costs about half a millisecond more than on a thread (3.5 ms against 2.9 ms a job on SQLite), since only a kill starts a new process. max_jobs=N replaces a process after N jobs, for code that leaks. The worker checks at start-up that every handler can be imported. Worker(lower_priority=True) runs the jobs at idle CPU and disk priority. Worker(isolate=False) runs handlers on the server's threads instead, where they return early when job.stopping. In tests, QUEUE.step(handlers) claims and runs one job in the test's own thread.
7. Tests
The pytest plugin loads itself once strata-python is installed. Configure it in pyproject.toml:
[tool.pytest.ini_options]
strata_env_prefix = "MYAPP" # MYAPP_HOME and MYAPP_DATA point into a fresh folder for every test
strata_tuning_vars = ["MYAPP_WORKERS"] # removed for every test: what a developer sets to try things
strata_env = [ # set for every test; {env} is that folder
"MYAPP_SWEEP_SECONDS=0",
"MYAPP_PROJECTS={env}/projects",
]
Then delete these from the app:
tests/utils/fakes.py, or keep only the doubles that are the app's own (a fake model, a fake yt-dlp).- The
fake_urlopen,fake_popenandfake_runfixtures, and anyno_sleep. pytest_collection_modifyitems, which added theintegrationmarker. The plugin registers the marker and adds it undertests/integration.- The
isolated_env(orisolated_home) andno_networkfixtures. The app's extra variables move tostrata_env. Keep a small autouse fixture only for what is not a variable, such as patching a module default. - The integration
cliandcli_subprocessfixtures. They become short fixtures intests/integration/conftest.py:
from pathlib import Path
import pytest
from strata_python.testing import run_cli, run_module
SRC = str(Path(__file__).parents[2] / "src")
@pytest.fixture
def cli():
from myapp import cli as app_cli
return lambda *args, check=True: run_cli(app_cli.main, *args, check=check)
@pytest.fixture
def cli_subprocess(isolated_env):
return lambda *args, check=True: run_module("myapp", *args, src=SRC, check=check)
What every test gets:
| Fixture | Use it for |
|---|---|
isolated_env (autouse) |
Home, app home and data in a fresh folder, tuning variables removed, strata_env set. Returns the folder |
no_network (autouse) |
An outbound connection fails the test; loopback is fine |
http_server |
First choice for HTTP: a real server on loopback. http_server.route("GET", "/items/1", {"id": 1}), once=True for a sequence, then http_server.requests. A request no route answered fails the test |
live_app |
with live_app(create_app()) as base: runs the app on a real port for a client under test |
fake_urlopen |
Many quick cases at a web API's edge: fake_urlopen.reply(http_error(429), {"ok": 1}), then fake_urlopen.calls[0].url, .method, .headers["user-agent"], .body (parsed JSON) |
fake_popen |
Code that starts a long-running process: nothing starts; fake_popen.instances[-1].cmd and .kw; set .returncode = 0 to finish it |
fake_run |
Code that runs a program: fake_run.returns["ffprobe"] = b"...", fake_run.code = 1, then fake_run.calls |
no_sleep |
Retries and backoff without waiting: no_sleep.delays |
fake_models |
An app that calls strata-models: a stand-in service on a real port with STRATA_MODELS_URL set, so strata_python.clients.models runs unchanged. fake_models.results["ocr"] = {...} (or a function of the params), .fail("CUDA out of memory", role="faces"), .busy = True (leases wait), .down = True (503s), then .jobs[0]["params"] |
strata_python.testing holds the classes behind them (FakeResponse, http_error, FakeUrlopen, FakePopen, FakeRun, Sleeper, FakeModels and its example replies MODELS_RESULTS) for a test that needs one directly. Prefer the real thing: http_server over fake_urlopen, the actual program over fake_run. A fake is for a true external edge where speed matters.
8. Database (apps with one)
Replaces the git-pinned database package, with the same behaviour under new names.
# pyproject.toml
dependencies = ["strata-python[db]>=0.2,<0.3"] # SQLAlchemy 2, Alembic, psycopg 3
[tool.strata-db] # was the old package's own table: rename it, the keys are the same
app = "myapp" # owner role and schema (lower case, digits, _)
models = "myapp.models:Base"
migrations = "migrations" # the app's Alembic revisions, unchanged
# engine = "postgres" # only for an app that uses Postgres-only features
-
Imports: the old package's names come from
strata_python.db(connect,session,NAMING_CONVENTION,Project,upgrade,drift,check_migrations,LiveDatabaseRefused); the standard tests fromstrata_python.db.testing. The naming convention is byte-identical, so existing revisions and databases do not drift. -
Models: write the base class out, not
Base = make_base(), which ty rejects as a base (unsupported-base) and so fails the gate:from sqlalchemy import MetaData from sqlalchemy.orm import DeclarativeBase, MappedAsDataclass from strata_python.db import NAMING_CONVENTION class Base(MappedAsDataclass, DeclarativeBase): metadata = MetaData(naming_convention=NAMING_CONVENTION)
-
Environment:
STRATA_DB_LIVE=1in the service unit (next to the old variable until every app has moved), andSTRATA_DB_DATABASEnaming the shared database. It has no built-in name any more, because that name is the owner's and this package is public; set it once where the services get their environment.STRATA_DB_URLand<APP>_DATABASE_URLwork as before. Tests and CI:STRATA_DB_TEST_ADMIN_URL,STRATA_DB_TEST=postgres. -
Commands:
strata-db revision -m "...",strata-db check,strata-db migrate --live,strata-db current --live,strata-db new-app,strata-db init(orpython -m strata_python.db). -
At service start (only there):
Project.load(__file__).upgrade(connect("myapp")). -
Tests: the plugin is registered with every install and does nothing until the extra is installed and the project has
[tool.strata-db](orstrata_db = truein[tool.pytest.ini_options];strata_db = falseturns it off). So an app can take a 0.2.x release before it moves its database, even with the old database package still installed. Thendb_session,db_engine,db_url(a URL for code that builds its own engine),db_env(points the app's ownconnect("myapp")at the test database; make it autouse inconftest.pyfor an app that connects by itself),db_backend,db_project. Migrations run once into a template and each test gets a copy, so a test costs a file copy.pytest --pg(or--strata-pg, which no other plugin can take) runs the same tests on a private Postgres the run starts for itself (needs the PostgreSQL server binaries), or onSTRATA_DB_TEST_ADMIN_URL. Add the standard tests once:# tests/unit/test_database.py from strata_python.db.testing import test_migrations, test_schema_matches_models # noqa: F401
Never build a test schema with
Base.metadata.create_all(): the tests would pass with broken migrations. And never write a guard of your own: under pytest every psycopg connection to a database that is not a throwawaystrata_db_*one fails withLiveDatabaseRefused, in the test process and its subprocesses. -
CI: run the tests with
--pgas well for an app that deploys on Postgres, since SQLite hides Postgres-only behaviour (types, defaults, locking). The fixtures need the PostgreSQL server binaries on the runner (sudo apt-get install -y postgresqlif they are missing; this repo'sci.ymlshows the step), orSTRATA_DB_TEST_ADMIN_URLpointing at a service container.
Delete: the git source for the old package, its [tool.*] table, any home-made "unset the URL" or "block the database" fixture, and any create_all() in tests.
Done when
grep -rn "def fake_urlopen\|def no_network\|def isolated_env\|pytest_collection_modifyitems\|class FakeRun\|uvicorn.run\|/api/health" src testsfinds nothing the app still needs.- The app has no
oslib.py,settings.pywith file handling,fakes.pycopy orscripts/check.py. scripts/checkand the integration tests pass, and the app's changelog names the strata-python version it moved to.
Keep it current
Read the Unreleased section and each new version in CHANGELOG.md when dependabot raises a bump. A ### Breaking line ends with what to change. When the app finds code it shares with another app, it belongs here: open a PR on this repo instead of copying it.
Develop
uv sync, then scripts/check (add --fast to skip the tests, --fix for safe ruff fixes). Integration tests (uv run pytest tests/integration) run the gate on a tiny project, serve in a separate process and strata-db as a command. The database tests use a throwaway Postgres: the private server needs the PostgreSQL server binaries on the machine (initdb refuses to run as root), or point STRATA_DB_TEST_ADMIN_URL at a throwaway server. Read AGENTS.md before changing anything; every change gets a CHANGELOG.md line for the apps and a DEVLOG.md entry for us. Merging to main releases: release.yml bumps the version through its own PR, tags it and creates the GitHub release, and pypi-publish.yml uploads it to PyPI.
Metadata
Release files for strata-python 0.2.3
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 |
|---|---|---|---|---|
| strata_python-0.2.3.tar.gz | 174.3 kB | With provenance | Details for strata_python-0.2.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| strata_python-0.2.3-py3-none-any.whl | Python 3 | none | any | Details for strata_python-0.2.3-py3-none-any.whl |
Total release size: 303.8 kB
Release files / strata_python-0.2.3.tar.gz
| Download URL | strata_python-0.2.3.tar.gz |
|---|---|
| Size | 174.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5c0d6e158404ddb9471b3dc99b6ee13fb1977da68325ae0bc958891fee4b466a
|
|
BLAKE2b-256 checksum How to use checksums |
997d0d2fd6eee0f3015de7dc88d6776682533819b5feacac7278eb2a5551edeb
|
| 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 14, 2026.
Transparency logRelease files / strata_python-0.2.3-py3-none-any.whl
| Download URL | strata_python-0.2.3-py3-none-any.whl |
|---|---|
| Size | 129.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1a5c251318ea8d4f8cb2c7376e7ba947cadea21de2cc22b2c502ac63b7acb810
|
|
BLAKE2b-256 checksum How to use checksums |
483f84aa88fb60e3e921e0e826be88b57df39afd9a8e3e8e4e5ce2a4261fd02b
|
| 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 14, 2026.
Transparency logSecurity for strata-python 0.2.3
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 strata_python-0.2.3.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 14, 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.