Skip to main content

golded-ftn-sqlite

Repository: golded-ftn-sqlite-python. Install version 1.1.0 with Python 3.12 or newer:

python -m pip install golded-ftn-sqlite==1.1.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 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.1.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 golded-ftn-sqlite 1.1.0
File Size Uploaded Provenance Actions
golded_ftn_sqlite-1.1.0.tar.gz 20.5 kB With provenance Details for golded_ftn_sqlite-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for golded-ftn-sqlite 1.1.0
File Interpreter ABI Platform Actions
golded_ftn_sqlite-1.1.0-py3-none-any.whl Python 3 none any Details for golded_ftn_sqlite-1.1.0-py3-none-any.whl

Total release size: 32.4 kB

Release files / golded_ftn_sqlite-1.1.0.tar.gz

Download URL golded_ftn_sqlite-1.1.0.tar.gz
Size 20.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ce84f158139f7fa5340d0d840a519749ebf8fb007aaa17f2f4c1e2e8c8de69f5
BLAKE2b-256 checksum
How to use checksums
cea00ab40de8571862b2a73d64b37e20a509996ff059b71c8d4063805b105779
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 27, 2026.

Transparency log

Release files / golded_ftn_sqlite-1.1.0-py3-none-any.whl

Download URL golded_ftn_sqlite-1.1.0-py3-none-any.whl
Size 11.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
16dd03e87560802640f2c4e880f73f3a27947ba67379896df3dad2c5ebed7c0a
BLAKE2b-256 checksum
How to use checksums
42d071f3acb4ddeb74faa56fe3db181c8bebf44ccf5437c6fa426f17d7dfb74f
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 27, 2026.

Transparency log

Security for golded-ftn-sqlite 1.1.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 golded_ftn_sqlite-1.1.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 27, 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.

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files Full provenance

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