This release is a pre-release and may not be stable for production use.
Holdfast backend
FastAPI API + arq worker. Python 3.12, managed by uv. Don't use the system Python.
Setup
cd backend
uv sync # creates .venv from uv.lock (dev group included)
Settings come from environment variables, then ../.env and backend/.env
(see app/config.py and the repo's .env.example). Nothing is required to boot:
DATABASE_URL defaults to postgresql+psycopg://holdfast@db:5432/holdfast and takes its
password from POSTGRES_PASSWORD when the URL has none. REDIS_URL defaults to
redis://redis:6379/0.
Run
uv run uvicorn app.main:create_app --factory --reload --port 8000 # API: /api/health, /api/docs
uv run arq app.worker.main.WorkerSettings # worker
uv run alembic upgrade head # migrations
Normally you run all of this through make up / ./scripts/dev.ps1 up from the repo root.
Checks
uv run ruff check . && uv run ruff format --check . && uv run mypy app
uv run pytest -q
uv run pip-audit
Tests block outbound network (see tests/conftest.py). Tests marked services need a real
Postgres and Redis:
docker run -d --rm --name hf-test-pg -e POSTGRES_USER=holdfast -e POSTGRES_PASSWORD=test \
-e POSTGRES_DB=holdfast -p 127.0.0.1:55432:5432 postgres:16-alpine
docker run -d --rm --name hf-test-redis -p 127.0.0.1:56379:6379 redis:7-alpine
TEST_DATABASE_URL=postgresql+psycopg://holdfast:test@127.0.0.1:55432/holdfast \
TEST_REDIS_URL=redis://127.0.0.1:56379/0 uv run pytest -q
docker rm -f hf-test-pg hf-test-redis
Without them those tests skip locally. With CI set they fail instead, so CI must provide both.
Layout
app/main.py (app factory), app/config.py (settings), app/db.py (engine, Base),
app/logging.py (JSON logs + redaction), app/security/crypto.py (Fernet at rest),
app/api/ (routers under /api), app/worker/ (arq), migrations/ (Alembic).
Empty packages mark where later phases land: models, schemas, integrations/plaid,
importers, domain, tax, agent, notify.
Rules that bite
Money is Decimal, never float. Never log tokens, keys or passwords (the redaction filter is
a backstop, not permission). Schema changes go through Alembic only. See CLAUDE.md.
Metadata
Release files for holdfast-finance 0.0.0a0
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 |
|---|---|---|---|---|
| holdfast_finance-0.0.0a0.tar.gz | 121.9 kB | With provenance | Details for holdfast_finance-0.0.0a0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| holdfast_finance-0.0.0a0-py3-none-any.whl | Python 3 | none | any | Details for holdfast_finance-0.0.0a0-py3-none-any.whl |
Total release size: 275.0 kB
Release files / holdfast_finance-0.0.0a0.tar.gz
| Download URL | holdfast_finance-0.0.0a0.tar.gz |
|---|---|
| Size | 121.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fefe8362cd9c399ffca2e4e30c8c237512da1b5f8c40b342b9096211bd6f1868
|
|
BLAKE2b-256 checksum How to use checksums |
65ab459332087131e2251ecc3d6c002e5fdc611f248faf17c2fc38d349fdd462
|
| 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 21, 2026.
Transparency logRelease files / holdfast_finance-0.0.0a0-py3-none-any.whl
| Download URL | holdfast_finance-0.0.0a0-py3-none-any.whl |
|---|---|
| Size | 153.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c10485d32c5a50e29beb339e91ab26ef0ea06c6c075ef0fda2d205f4c97dd029
|
|
BLAKE2b-256 checksum How to use checksums |
f25c16e99fc947b41c442c12bd7f19bcd2c3ca013de3e9cb929fea8e7fe8dfb2
|
| 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 21, 2026.
Transparency logSecurity for holdfast-finance 0.0.0a0
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 holdfast_finance-0.0.0a0.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 21, 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.