Skip to main content

coffeehouse-common

Shared Python package for Coffee House ecosystem FastAPI apps:

  • coffeehouse_common.csrf — CSRFMiddleware subclass (form body + header + safe body replay; the cookie has a lifetime, every refusal is logged with its reason)
  • coffeehouse_common.security_middleware — SecurityHeadersMiddleware (raw ASGI; the HTTPS-only header is switched on per app)
  • coffeehouse_common.session_renewal — SessionRenewalMiddleware (raw ASGI): renews an expired session inside the request that needs it
  • coffeehouse_common.auth_gate — auth_required_handler: the one answer every app gives when a session cannot be renewed
  • coffeehouse_common.logging_config — RequestIdMiddleware (raw ASGI), RequestIdFilter, configure_logging, get_request_id; since 0.21.3 configure_logging also attaches DbErrorRedactionFilter to its handler and to the uvicorn.error logger (where uvicorn logs an unhandled exception through its own handler), so a database error's traceback or formatted message in the log output carries class, SQLSTATE, constraint/table/column, the statement with placeholders and every frame, but no submitted value, also when the message or an argument holds the error's text (log.error(f"failed: {exc}")), inside an exception group, or in a traceback another handler formatted first. Every record also loses DETAIL/HINT/CONTEXT/WHERE/LINE n/[parameters: ...] lines (and a value continued over the following lines, up to the next [SQL:/(Background/traceback line); records without a database error and without such lines are printed exactly as before
  • coffeehouse_common.observability — init_sentry(app_slug) Sentry SDK bootstrap; reads SENTRY_DSN from env (no-op when unset), tags events with app_slug, drops 4xx HTTP/CSRF noise, keeps 5xx; drops the duplicate that sentry-sdk's auto-enabled GoogleGenAIIntegration sends, as unhandled, for every error the google-genai client raises (0.23.1, mechanism google_genai), and keeps the app's own report of it, so log or raise every Gemini failure: one the app swallows silently no longer reaches Sentry; events carry no stack-frame local variables (0.21.1: the raw ASGI headers in every frame would otherwise ship session cookies and keys) and no HTTP request body (0.21.2: max_request_body_size="never"; a failed form or JSON POST would otherwise ship names, salaries and notes under any field name), and the names pin, pin_hash, temporary_pin, x-app-key, x_app_key, ch_session and ch_refresh are scrubbed from request headers, data and extras, at any depth, on top of the SDK's own list. The scrubbing matches names only: it does not reach the request's query string, the parameters of a log message, or breadcrumb messages (an INFO log line becomes a breadcrumb), so never log headers, cookies or request bodies and never put a secret in a URL. Data an app attaches itself is sent with only that name scrubbing (set_extra, set_context) or none at all (the text of capture_message), so never attach a person's records to an event. Exception messages are sent verbatim, except a database error's, which is rebuilt without its values (0.21.3, coffeehouse_common.db_errors): a pydantic ValidationError quotes the rejected input, so models built from request data should set model_config = ConfigDict(hide_input_in_errors=True)
  • coffeehouse_common.db — create_engine_with_defaults(url, **opts) (pool_pre_ping=True, pool_recycle=300, and since 0.21.2 hide_parameters=True, which drops SQLAlchemy's [parameters: ...] list from exception text and SQL logging; caller args win) and with_db_retry for background workers. hide_parameters does not touch the database's own message: PostgreSQL quotes values in a constraint or type error (DETAIL: Key (email)=(...) already exists., DETAIL: Failing row contains (...), invalid input syntax for type integer: "...")
  • coffeehouse_common.db_errors — safe_db_error_message(exc) rebuilds the message of a psycopg2 / psycopg error, or of a SQLAlchemy DBAPIError wrapping one, from structured fields only (primary message with class-22 quotes replaced, SQLSTATE, constraint, table, column, and the statement with its placeholders); redact_db_errors(text, exceptions) applies it to any text and strips DETAIL/HINT/CONTEXT/LINE n/[parameters: ...] lines from text it cannot attribute. Since 0.21.3 init_sentry applies it to every event (exception values, log entries) and log breadcrumb, and configure_logging to the log output. Not covered (known limits): a class-22 value quoted in text an app wrote without keeping the exception object (its DETAIL/LINE/[parameters: ...] lines are still stripped, in Sentry and in the log output alike), a message raised by the database's own functions (RAISE EXCEPTION in PL/pgSQL; no app uses it), error text an app puts into a log record's extra or a breadcrumb's data (no app does), and drivers other than psycopg2 / psycopg. Failure is closed: the log filter replaces a record's text and traceback with a fixed notice if redaction raises, a breadcrumb is dropped, and the SDK drops an event whose before_send raises

v0.3.0+ implements security headers and request ID middleware as raw ASGI (not BaseHTTPMiddleware) so streaming responses are not fully buffered. v0.3.1 sets X-Frame-Options: SAMEORIGIN (same-origin iframes allowed; third-party framing blocked). Logs include a per-request correlation id when configure_logging() + RequestIdMiddleware are used.

Install

From PyPI (exact release; each app pins the version in its own requirements.txt):

pip install "coffeehouse-common==0.23.1"

Local editable install:

pip install -e ../coffeehouse-common

Development

Set up the repo for local development + testing:

git clone https://github.com/rubencfh/coffeehouse-common.git
cd coffeehouse-common
pip install -e ".[testing]"
pip install -r requirements-dev.txt
pre-commit install

Run the full test suite (with coverage, fails under 70%):

pytest

Run the pre-commit hooks against all files (format, lint, secret scan, syntax check):

pre-commit run --all-files

Individual checks:

ruff format --check .          # formatting
ruff check .                   # linting
mypy coffeehouse_common        # type-checking (lenient baseline)
bandit -c pyproject.toml -r coffeehouse_common coffeehouse_testing  # SAST
pip-audit -r requirements-dev.txt                                    # SCA

CI runs the same checks on every push / PR via .github/workflows/ci.yml. See coffeehouse-ecosystem/docs/pipeline.md for the broader pipeline.

Shared test fixtures

The coffeehouse_testing subpackage ships with this repo and provides shared pytest fixtures that consumer apps import in their own tests/conftest.py:

from coffeehouse_testing.jwt_factory import jwt_factory
from coffeehouse_testing.client import authed_client
from coffeehouse_testing.db import postgres_container, clean_db  # noqa: F401
from coffeehouse_testing.auth_stub import make_auth_stub, build_roles_manifest

Database isolation per test, two fixtures:

  • db_savepoint runs each test inside one transaction that is rolled back (about 1 ms). Use it when every session the test opens goes through the app's session_scope().
  • clean_db empties every table in public before each test and restarts the sequences those tables own (ids start at 1 again), for tests that need data committed and seen from several connections: threads, SKIP LOCKED, sessions opened on the engine directly. Since 0.22.0 it deletes only from the tables that hold rows, found with an exact EXISTS per table after waiting for any writer still in its transaction, which costs about 10 ms per test; the per-table TRUNCATE ... CASCADE loop before it cost 0.2 to 0.9 s, depending on how many foreign keys the schema has. Standalone sequences (owned by no column) keep counting, as before.

postgres_container starts PostgreSQL 16 with fsync, synchronous_commit and full_page_writes off (since 0.22.0): a test database is thrown away with its container, so nothing needs to wait for the disk.

All heavy dependencies (PyJWT, testcontainers, starlette) are loaded lazily — import the modules you need in tests and the import errors only fire if the underlying package is not installed.

Model drift: the models equal the schema the migrations build

coffeehouse_testing.model_drift (since 0.23.0) proves an app's SQLAlchemy models describe exactly the schema alembic upgrade head builds. When they disagree, a suite built with create_all tests a database production does not have, and alembic revision --autogenerate proposes undoing migrations. It builds the schema both ways on scratch databases and compares them five ways:

Check Catches
autogenerate_differences what autogenerate would write, against a frozen KNOWN_DIFFERENCES
alembic_check alembic check in a fresh process: a model module env.py forgets (the test process has every model loaded, so it cannot see this)
server_default_changed + CheckResult.reports an env.py that does not really pass compare_server_default
compare_schemas what autogenerate ignores, read from PostgreSQL's catalog: constraint and index names, index conditions and methods, CHECK and EXCLUDE, column types (incl. enum/array udt_name), defaults, identity and its parameters, generated expressions, collations, sequences and their owners, enum labels and order
unregistered_table_modules, importers_of, configure_option_gaps a table module env.py never loads; app code that loads the model registry; an env.py that does not pass the options in offline or online mode

It needs alembic (in the testing extra, >=1.20,<2) and the app's PostgreSQL driver. Never import it from alembic/env.py: env.py runs in the production image, which installs the package without the testing extra, and coffeehouse_testing imports pytest. The comparison options stay in the app.

Adopting in an app

app/db/migration_compare.py, shared by alembic/env.py and the test (Auth, Digi and CHQR have it). An app without migration-only tables drops MIGRATION_ONLY_TABLES and include_object:

#: Tables only a migration creates and reads, never the app. No model on purpose.
MIGRATION_ONLY_TABLES = frozenset({"dept_rename_created", "dept_rename_moves"})


def include_object(obj, name, type_, reflected, compare_to):
    """Leave the migration-only tables out of every comparison."""
    return not (type_ == "table" and reflected and name in MIGRATION_ONLY_TABLES)


COMPARE_OPTIONS = {
    "compare_type": True,
    "compare_server_default": True,
    "include_object": include_object,
}

alembic/env.py passes **COMPARE_OPTIONS to context.configure in both offline and online mode, and imports every table module (directly, through app.db.models, or through a registry such as Digi's model_registry.py).

The test, usually tests/integration/test_models_match_migrations.py. This is tests/integration/test_drift_app_example.py in this repo, which runs against a fixture app on every CI run:

from collections.abc import Iterator
from pathlib import Path
from typing import Any

import pytest
from sqlalchemy.engine import Engine

from app.db.migration_compare import COMPARE_OPTIONS, MIGRATION_ONLY_TABLES
from app.db.models import Base  # or the registry that imports every model
from coffeehouse_testing import model_drift as md

pytestmark = pytest.mark.integration

ROOT = Path(__file__).resolve().parents[2]  # parents[1] for a file directly in tests/
PROJECT = md.AlembicProject(
    ROOT / "alembic.ini",
    # Every variable app.config reads a URL from. Inherited *DATABASE_URL
    # variables are dropped, so only these reach the subprocess.
    url_env=("AUTH_DATABASE_URL", "DATABASE_URL"),
)

#: Exact: new drift fails, and so does a fixed one still listed. An entry is an
#: ``md.operation_key`` tuple with a comment saying why it is accepted.
KNOWN_DIFFERENCES: frozenset[tuple[Any, ...]] = frozenset()


@pytest.fixture(scope="module")
def migrated(postgres_container: Any) -> Iterator[Engine]:
    with md.migrated_database(postgres_container, PROJECT) as engine:
        yield engine


@pytest.fixture(scope="module")
def created(postgres_container: Any, migrated: Engine) -> Iterator[Engine]:
    with md.create_all_like(postgres_container, Base.metadata, migrated) as engine:
        yield engine


def test_autogenerate_finds_only_the_known_differences(migrated: Engine) -> None:
    before = md.sequence_states(migrated)
    found = md.autogenerate_differences(migrated, Base.metadata, COMPARE_OPTIONS)
    assert md.sequence_states(migrated) == before  # no nextval default was evaluated
    assert found == KNOWN_DIFFERENCES


def test_alembic_check_in_a_fresh_process_finds_nothing(migrated: Engine) -> None:
    before = md.sequence_states(migrated)
    result = md.alembic_check(PROJECT, migrated)
    assert md.sequence_states(migrated) == before
    assert result.clean, result.output


def test_alembic_check_compares_server_defaults(migrated: Engine) -> None:
    with md.server_default_changed(migrated, "users", "status", "'drifted'"):
        result = md.alembic_check(PROJECT, migrated)
    assert result.reports("modify_default", "users", "status"), result.output


def test_the_catalog_matches(migrated: Engine, created: Engine) -> None:
    excluded = md.excluded_tables(migrated, COMPARE_OPTIONS)
    assert excluded == MIGRATION_ONLY_TABLES  # frozenset() without migration-only tables
    diffs = md.compare_schemas(migrated, created, exclude_tables=excluded)
    assert diffs == [], "\n".join(diffs)


def test_the_comparison_is_not_of_nothing(migrated: Engine) -> None:
    """What this app relies on is really in the compared schema."""
    snapshot = md.schema_snapshot(migrated, MIGRATION_ONLY_TABLES)
    indexes = {definition for _table, _name, definition in snapshot.indexes}
    assert any(" WHERE " in d for d in indexes)  # a partial index the app has
    assert {kind for _t, _n, kind, _d in snapshot.constraints} >= {"c", "f", "u", "p"}


def test_env_py_loads_every_model_and_passes_the_options() -> None:
    env = ROOT / "alembic" / "env.py"
    assert md.unregistered_table_modules(env, ROOT) == set()
    assert md.importers_of("model_registry", ROOT) == set()  # only with a registry
    assert md.configure_option_gaps(env) == []

What changes per app:

  • Where the file sits. ROOT is the repository root: parents[2] for tests/integration/, parents[1] for a flat tests/ (Digi).
  • The integration marker must be registered in the app's pytest config (markers = ["integration: ..."]); with --strict-markers an unregistered one is an error. Digi does not register it today: drop pytestmark or add it.
  • url_env lists every name the config reads a URL from, in any order (CHQR: ("CHQR_DATABASE_URL", "APP_DATABASE_URL", "DATABASE_URL")). The subprocess inherits no variable ending in DATABASE_URL, and migrated_database refuses an upgrade that left no alembic_version in the scratch database, so a missed name fails loudly instead of migrating something else.
  • extra_env={...} for any other variable app.config refuses to start without (CHQR: APP_SECRET_KEY, JWT_SECRET).
  • The probed column for server_default_changed: any real column with a server default (default_sql is SQL: "'x'" for text, "-1" for a number; it is sent verbatim, so % and :word are safe).
  • The presence checks. Assert what the app relies on, so the comparison is never of nothing. Digi: a WHERE index, a USING gist index, a generated column (row[17] == "ALWAYS" in snapshot.columns), all five constraint kinds {"c", "x", "f", "u", "p"}, and person_code_seq in snapshot.sequences.
  • The upgrade's output, if a migration logs what its guards did: pass on_upgrade= to migrated_database and assert on the CompletedProcess (CHQR: assert "guard fired" not in result.stderr).

How to read and keep it:

  • KNOWN_DIFFERENCES is exact. The comparison must equal it, so new drift fails and so does a fixed difference left in the list. Every entry carries a comment saying why it is accepted. compare_schemas has no such list: the catalog must match (or the app's own test says why not).
  • compare_schemas lines. differs (migrations -> models): column t.c: default "'jpeg'::character varying" -> None names an object both sides have and only the fields that differ, migrations' value first. only in migrations: / only in models: name an object one side lacks, with all its fields.
  • Write server defaults as PostgreSQL reflects them. With compare_server_default on, Alembic strips ::regclass from the reflected default only when it starts with nextval(, then compares strings. Any other difference is settled with SELECT <db default> = <model default> on the database, and for a nextval default that uses up sequence values that are never given back. So server_default=text("nextval('x_seq')"), but text("(nextval('x_seq'::regclass))::text") when the call is wrapped. The sequence_states assertions (around autogenerate and around alembic check) fail if a comparison consumed a value.
  • Migration-only tables (dept_rename_* in Auth, Space and Cupping) stay in the app's include_object; excluded_tables asks it (and include_name) about every reflected table, so env.py and the catalog comparison use one list. Their indexes, constraints, columns, owned sequences and the enums only they use are left out with them. A clean alembic_check with those tables present proves env.py passes the filter.
  • The static guards. unregistered_table_modules follows the imports that run when env.py loads: every import in env.py itself (including inside run_migrations_online), module-level imports in what it reaches, and literal importlib.import_module("x") calls; never imports under TYPE_CHECKING. A module the table scan matches that declares no model (a reflection helper with Table(..., autoload_with=...)) goes in ignore=frozenset({...}); an ignored module that stops defining a table is an error.
  • A sequence no column owns (Digi's person_code_seq) is declared in the models with Sequence(..., metadata=Base.metadata) and the migration's parameters, so create_all builds it.
  • Keep the two database fixtures module-scoped; under xdist run with --dist loadfile so one worker builds them once. Each scratch database has a random name and is dropped WITH (FORCE) when its block ends.
  • Not compared: triggers, functions, views, grants.
  • To show a check really catches something, change the migrated schema inside a transaction and roll it back: every function takes an engine or a connection (alembic_check takes an engine: the other process sees only what is committed).

Usage

from coffeehouse_common.csrf import CSRFMiddleware
from coffeehouse_common.logging_config import RequestIdMiddleware, configure_logging
from coffeehouse_common.observability import init_sentry
from coffeehouse_common.security_middleware import SecurityHeadersMiddleware

configure_logging()  # once at startup; attaches RequestIdFilter for %(request_id)s
init_sentry(app_slug="auth")  # no-op if SENTRY_DSN is unset

init_sentry reads SENTRY_DSN, RAILWAY_ENVIRONMENT_NAME (or ENVIRONMENT), and RAILWAY_GIT_COMMIT_SHA from the environment. Errors-only sample rate by default (traces_sample_rate=0.0). 401/403/404/405 responses, 4xx HTTPExceptions, and CSRFErrors are dropped client-side so they don't burn the Sentry quota. 5xx HTTPExceptions and any other exception class are kept. Pass extra_ignored_status_codes= / extra_ignored_exceptions= to extend the filter per app.

Explicit dependency: itsdangerous (CSRF token signing).

Report-table sorting

coffeehouse_common.report_sort (promoted from Grind after Stoply became the second adopter) pairs with coffeehouse-ui's sortable_th macro: parse_sort(request, allowed=..., default_sort=...) validates ?sort=/?dir= against a per-report allowlist; sort_data(rows, sort, dir) sorts a materialized list[dict] in place (Nones last in both directions, case-insensitive strings). Both are re-exported from the package root.

Redirects by route name

coffeehouse_common.redirects (promoted from Cupping) builds every Post/Redirect/Get target from the app's own route table instead of a string:

# app/redirects.py -- one Redirector per app
from typing import Any

from coffeehouse_common.redirects import Redirector


def _app() -> Any:
    from app.server import app  # lazy: server imports the route modules

    return app


redirects = Redirector(_app)

# in a route
return redirects.to("view_thing", fallback="list_things", thing_id=7, success="saved")

to() answers 303 with flash codes in the query string (error=, success=, warning=; a value that is not a code is dropped). The Location comes from Starlette's url_path_for, so it can only be one of the app's own paths. A route name the table does not serve, or a path parameter that is not an int or a string of URL-unreserved characters, falls back to the named fallback route, and to root (/) if that cannot be built either -- with a warning that names parameter keys and types, never values. url_for() is the href-building half and raises instead of falling back. Redirector(..., int_param_suffix="_id") additionally requires every *_id parameter to be an int. Unlike coffeehouse_common.flash (a sentence in a session cookie), this needs no middleware.

Sessions: renewal, and the answer when renewal is not possible

Auth's ch_session cookie lasts 15 minutes and activity does not extend it. Two modules (0.21.0) make that invisible to a person at work and uniform when it cannot be:

from coffeehouse_common.auth_gate import auth_required_handler
from coffeehouse_common.session_renewal import SessionRenewalMiddleware

app.add_exception_handler(AuthRequired, auth_required_handler(build_login_url))

app.add_middleware(RequestIdMiddleware)
app.add_middleware(SecurityHeadersMiddleware, hsts_max_age=31_536_000)
app.add_middleware(CSRFMiddleware, secret=APP_SECRET_KEY, exempt_urls=[...])
# Immediately before CORS, which stays the last registration (= outermost).
app.add_middleware(SessionRenewalMiddleware, auth_url=AUTH_SERVICE_URL)
app.add_middleware(CORSMiddleware, ...)

SessionRenewalMiddleware acts on a request that carries the week-long ch_refresh cookie and whose ch_session is absent, unreadable or within 60 seconds of expiry. It asks Auth (POST {auth_url}/api/session/renew, in a worker thread, at most four at a time, 2 s to connect and 3 s to read), hands the app the renewed session and passes Auth's Set-Cookie through on the same response. So a form saved after 15 minutes is saved.

  • It is registered outside CSRF and inside CORS: the add_middleware call immediately before the CORS one.
  • It never raises and never reads the request body. A refusal (401), an unreachable Auth or a malformed answer leaves the request as it arrived, and the app's own guard answers it. After a network failure nobody asks again for 30 seconds; a refusal starts no such pause.
  • It renews only on a well-formed 200: a token of three base64url segments and a set_cookie whose ch_session value is exactly that token, with no control character. The app runs this request as token and the browser sends the cookie's value from then on, so the two must be one session. Any other 200 counts as Auth being unreachable.
  • It never renews a background poll (X-Background-Request, set by coffeehouse-ui's session.js on timer-fired HTMX requests) or a request with Authorization: Bearer. Only a person's action renews.
  • exp is read without checking the signature, only to decide whether to ask; the app's guard still verifies the token.
  • No cache and no skip list. auth_url empty or None switches it off.
  • A route that raises is answered by Starlette outside every middleware, so a 500 does not carry the renewed cookie; the next request renews again.

auth_required_handler(build_login_url, *, api_response=None) is the exception handler for the app's own AuthRequired. It answers by kind of request and returns the person to the page they were on:

Request Answer Comes back to
page load (GET/HEAD) 302 to login the request URL
HTMX 401 + HX-Redirect HX-Current-URL (same host only)
HTMX background poll 204, empty nothing navigates
any other method 303 to login Referer (same host only), else the app root

api_response(request) runs first, for an app that answers its JSON API in its own shape; return None to fall through. session_expired_response(request, login_url) is the same answer without the exception plumbing.

Log lines. Each names the first path segment (area=/questions), never the path, and never a token:

session renewal: outcome=renewed|refused|unreachable reason=<...> method=<...> area=<...>
session expired: kind=write|htmx method=<...> area=<...>
csrf rejected: reason=cookie_missing|token_missing|mismatch method=<...> area=<...> session=yes|no

session expired is how a lost save is counted: after adoption it is a 303, the same status as a saved one. session=yes means the request carried ch_session or ch_refresh.

The security cookie (csrftoken) is issued with Max-Age of one year; CSRFMiddleware(..., cookie_max_age=None) restores a session cookie; zero or a negative number is refused at start-up, because the browser would discard the cookie at once. A browser that already holds a valid cookie is not sent a new one.

The HTTPS-only header is off by default. SecurityHeadersMiddleware(hsts_max_age=31_536_000) sends Strict-Transport-Security: max-age=31536000 on every response, never with includeSubDomains or preload. A browser keeps the rule for a year: to take it back pass hsts_max_age=0; None only stops sending it.

In an app's tests

from coffeehouse_testing.auth_gate import (
    assert_every_route_requires_session,
    assert_public_paths_are_served,
)
from coffeehouse_testing.session_renewal import assert_renewal_wraps_csrf, fake_renewal

PUBLIC = {"/health", "/csrf-smoke", "/openapi.json", "/docs", "/docs/oauth2-redirect", "/redoc"}


def test_every_route_requires_a_session():
    client = TestClient(app, follow_redirects=False)
    checked = assert_every_route_requires_session(
        client, public_paths=PUBLIC, login_url=f"{AUTH_SERVICE_URL}/login"
    )
    assert len(checked) > 5  # an empty walk would pass everything


def test_public_paths_are_real_routes():
    assert_public_paths_are_served(app, PUBLIC)


def test_renewal_is_registered_where_it_must_be():
    assert_renewal_wraps_csrf(app)


def test_an_expired_session_is_renewed_inside_the_request():
    token = jwt_factory(sub="E-1", apps={"myapp": {"role": "admin"}}, secret=JWT_SECRET)
    client = TestClient(app, follow_redirects=False)
    client.cookies.set("ch_refresh", "any-value")  # no ch_session: it expired
    with fake_renewal("renewed", token=token) as calls:
        assert client.get("/a-guarded-page").status_code == 200
    assert calls == ["any-value"]

The walk sends an anonymous GET to every route the app serves and fails on any that renders. It counts a 404, 405 or 410 as denied (catch-all routes need that), so a route that looks an id up before checking the session passes on its 404: for an app that checks the session inside the handler, the check must come before any lookup. fake_renewal("refused") and fake_renewal("unreachable") produce the other two outcomes; only the HTTP call is replaced, so the test fails when the middleware line is removed.

See CONVENTIONS.md in the coffeehouse-ecosystem repo for middleware order and CSRF patterns.

First-time publish (maintainers)

  1. Create an empty repo on GitHub: rubencfh/coffeehouse-common
  2. From this directory:
git remote add origin https://github.com/rubencfh/coffeehouse-common.git
git push -u origin master
git push origin v0.9.0

Until the repo and tag exist, app Docker builds that pip install from GitHub will fail. For local dev, use editable install (above).

Metadata

Release files for coffeehouse-common 0.24.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for coffeehouse-common 0.24.0
File Size Uploaded Provenance Actions
coffeehouse_common-0.24.0.tar.gz 144.9 kB With provenance Details for coffeehouse_common-0.24.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for coffeehouse-common 0.24.0
File Interpreter ABI Platform Actions
coffeehouse_common-0.24.0-py3-none-any.whl Python 3 none any Details for coffeehouse_common-0.24.0-py3-none-any.whl

Total release size: 251.7 kB

Release files / coffeehouse_common-0.24.0.tar.gz

Download URL coffeehouse_common-0.24.0.tar.gz
Size 144.9 kB
Tags Source
SHA-256 checksum
How to use checksums
8a21ad1b264040e97ef66c44f2451cf62e8c2ce9e9295937dd89d7f82e1535f3
BLAKE2b-256 checksum
How to use checksums
269ee57149bf64c64ccbdee152003634c3e8a4aca7cc01671d2b0182659bf5bc
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 19, 2026.

Transparency log

Release files / coffeehouse_common-0.24.0-py3-none-any.whl

Download URL coffeehouse_common-0.24.0-py3-none-any.whl
Size 106.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dca9986ecf5e79c420c10b54d5093dca174c1df4c87b52e41776cc7aa78254bb
BLAKE2b-256 checksum
How to use checksums
8987c3bb608ba7a59ae98d4685d30f727ee5d050d3b5f2571c136717c0d62328
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 19, 2026.

Transparency log

Security for coffeehouse-common 0.24.0

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.

Select from 2 files

Attestation for coffeehouse_common-0.24.0.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 19, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page