golded-ftn-sqlite
Repository: golded-ftn-sqlite-python.
Install version 1.0.0 with Python 3.12 or newer:
python -m pip install golded-ftn-sqlite==1.0.0
golded-ftn-sqlite stores FTN netmail and echomail in SQLite through the
golded-ftn message models.
It requires Python 3.12 or newer.
The format supports several areas in one database. The ordinary layout is still one database file per area: it maps cleanly to GoldED configuration, keeps backup and recovery local, and limits the blast radius when a disk has opinions.
Pipe with ftnt
ftnt treats export envelopes as write input for every format, including SQLite:
ftnt create ./general.sqlite3 --format sqlite --area-code FIDO.GENERAL
ftnt export ./general --format jam |
ftnt write ./general.sqlite3 --format sqlite --jsonl
Use it
from golded_ftn import FtnAddress, OutgoingMessage
from golded_ftn_sqlite import (
AreaDefinition,
AreaKind,
SqliteDatabase,
SqliteReader,
SqliteWriter,
)
path = "fido-general.sqlite3"
SqliteDatabase.create(
path,
area=AreaDefinition(
code="FIDO.GENERAL",
name="FidoNet General",
kind=AreaKind.ECHOMAIL,
default_origin=FtnAddress(zone=2, net=230, node=0),
),
)
with SqliteWriter().open(path) as session:
result = session.append(
OutgoingMessage(
from_name="Alice",
to_name="All",
subject="Hello",
body_text="Stored transactionally.",
)
)
stored = session.read(result.identity.msgno)
messages = tuple(SqliteReader().read(path))
When a database contains several areas, pass the area code to SqliteReader and
SqliteWriter. Omitting it is allowed only for a single-area database. Message
numbers are monotonic and local to each area.
Netmail requires origin and destination addresses. The origin may come from the
area's default_origin; the destination is always explicit. Echomail keeps ordered
control lines, repeated unknown kludges, SEEN-BY, PATH, reply links and import
provenance.
Writer sessions provide read, append, update and soft delete. Updates and
deletes require a revision token. The token covers the message row and its ordered
control, routing and reply-list rows, including changes made by another SQLite
client.
SQLite format
Schema version 1 uses SQLite application ID 0x47465453 (GFTS), strict tables,
foreign keys and WAL journaling. The schema is a public format contract:
docs/schema.md documents identification, DDL, column semantics,
allocation, soft delete, concurrency and backup so other packages or applications
can implement the same database without this Python code.
Do not copy an open WAL database as a lone .sqlite3 file. Use SQLite's backup API
or close/checkpoint it first.
Development
uv sync --python 3.14
uv run pytest
uv run ruff check .
uv run ruff format --check .
uv run mypy
uv run python -m mypy.stubtest golded_ftn_sqlite
uv build
uv run twine check dist/*
uv run python scripts/verify_distribution.py
Metadata
Release files for golded-ftn-sqlite 1.0.0
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 |
|---|---|---|---|---|
| golded_ftn_sqlite-1.0.0.tar.gz | 20.4 kB | With provenance | Details for golded_ftn_sqlite-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| golded_ftn_sqlite-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for golded_ftn_sqlite-1.0.0-py3-none-any.whl |
Total release size: 32.3 kB
Release files / golded_ftn_sqlite-1.0.0.tar.gz
| Download URL | golded_ftn_sqlite-1.0.0.tar.gz |
|---|---|
| Size | 20.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7e974ec3f4236249b0bfac8c96bfb57ebf8ab852c209808023f42ef8a7ca0b01
|
|
BLAKE2b-256 checksum How to use checksums |
97a1b2bac2e5f4c862044ed34aca64fd103f4966457c90548b3bff8eca779299
|
| 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 25, 2026.
Transparency logRelease files / golded_ftn_sqlite-1.0.0-py3-none-any.whl
| Download URL | golded_ftn_sqlite-1.0.0-py3-none-any.whl |
|---|---|
| Size | 11.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4f9dc10e12dd24f19855a3791980c5d7b358bf5dfc05d70c284a90fa802d6557
|
|
BLAKE2b-256 checksum How to use checksums |
f71416c2b38d5f780d4946782daca9c642cee35a353ac3a15c907adb47a5f3ae
|
| 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 25, 2026.
Transparency logSecurity for golded-ftn-sqlite 1.0.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.
Attestation for golded_ftn_sqlite-1.0.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 Oct 25, 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.