Metadata-Version: 2.5
Name: golded
Version: 1.1.0
Summary: GoldED message reader for SQLite, JAM, Squish, MSG, Opus and Hudson FTN areas, in the terminal
Project-URL: Repository, https://github.com/golded-dev/golded-python
Project-URL: Issues, https://github.com/golded-dev/golded-python/issues
Project-URL: Changelog, https://github.com/golded-dev/golded-python/blob/main/CHANGELOG.md
Author: GoldED.dev contributors
License-Expression: MIT
License-File: LICENSE
Classifier: Environment :: Console :: Curses
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Communications :: BBS
Classifier: Typing :: Typed
Requires-Python: >=3.12
Requires-Dist: golded-ftn-hudson<2,>=1.4.0
Requires-Dist: golded-ftn-jam<2,>=1.3.1
Requires-Dist: golded-ftn-msg<2,>=1.4.0
Requires-Dist: golded-ftn-sqlite<2,>=1.1.0
Requires-Dist: golded-ftn-squish<2,>=1.4.0
Requires-Dist: golded-ftn<2,>=1.5.2
Requires-Dist: rich>=14.2.0
Requires-Dist: textual<9,>=8.2.8
Description-Content-Type: text/markdown

# golded

A terminal message reader for FidoNet echomail and netmail stored in SQLite, JAM, Squish, MSG, Opus or Hudson, modelled on GoldED. Built with Textual. Storage uses [`golded-ftn-sqlite`](https://pypi.org/project/golded-ftn-sqlite/), [`golded-ftn-jam`](https://pypi.org/project/golded-ftn-jam/), [`golded-ftn-squish`](https://pypi.org/project/golded-ftn-squish/), [`golded-ftn-msg`](https://pypi.org/project/golded-ftn-msg/) and [`golded-ftn-hudson`](https://pypi.org/project/golded-ftn-hudson/).

The manual covers message bases, configuration, every key and each screen: <https://golded-dev.github.io/golded-python/>. Its source is in `site/`, built by `scripts/build_pages.py`.

## Install

```bash
uv tool install golded
golded --help
```

Python 3.12 or newer, on Linux, macOS or Windows. `pipx install golded` works too.

## Run

```bash
golded --database messages.sqlite3
```

`golded --database` opens one golded-ftn-sqlite base. Without options it looks for `messages.sqlite3` and `golded.toml` in the current directory. The manual shows how to create a base with `ftnt` from [`golded-ftn-tools`](https://pypi.org/project/golded-ftn-tools/).

`↑` `↓` and `Enter` pick an area and a message, `←` `→` step through messages, `r` replies, `F2` saves, `Esc` goes back and quits from the area list.

## Config

`golded.toml` sets who you are when you write:

```toml
from_name = "Odinn"
from_address = "2:236/777"
database = "messages.sqlite3"
origin = "Where we're going, we don't need roads."
theme = "dark"
threaded_list = false
splash_seconds = 10
```

`--config`, `--database` and `--theme` override the file. A value golded cannot use stops it at startup with one line and exit status 1. The manual describes each field.

For JAM, Squish, MSG, Opus or Hudson bases, or areas spread across several bases, add an `[areas]` table to
`golded.toml`. Quote area IDs containing dots. Each JAM area can override the
global `[jam].read_mode`, which defaults to `strict`.

```toml
[jam]
read_mode = "strict"

[areas]
"FIDONET.GENERAL" = { description = "General discussion", group = "A", type = "echo", format = "jam", path = "bases/general", read_mode = "lenient" }
```

An explicit `--database` or `--area-config` overrides the TOML message source.
A nonempty `[areas]` table takes precedence over the TOML `database` setting.
For classic definitions, run `golded --area-config golded.cfg`:

```text
AREADEF GENERAL "General discussion" A Echo SQLite "bases/echo.sqlite3" . ()
AREADEF NETMAIL "Private mail" 0 Net SQLite bases/mail.sqlite3 . ()
AREADEF UNIX "UNIX discussion" A Echo JAM bases/UNIX . ()
```

For SQLite, the echo ID and type must match an area in the named database. For JAM and Squish, specify the base filename without its extension. For MSG and Opus, specify the directory containing the numbered message files. For Hudson, set `HUDSONPATH` to the shared base directory and use the board number (1–200) in each `AREADEF`. In TOML, use `format = "hudson"`, the base directory as `path`, and the board number as `board`. Relative paths start at the configuration file. The configuration page in the manual describes the supported subset of classic `AREADEF` syntax.

## Development

Requires [uv](https://docs.astral.sh/uv/).

```bash
uv sync
uv run python scripts/seed_demo.py
cp golded.toml.example golded.toml
uv run golded
```

`scripts/seed_demo.py` writes a demo `messages.sqlite3`. **It deletes that file first if it exists, along with its `-wal` and `-shm` files.**

```
src/golded/cli.py   entry point (`golded`, `python -m golded`)
src/golded/ui/      draws the screen and handles keys (Textual)
src/golded/logic/   selected area, current message, navigation, draft
src/golded/data/    thin edge toward the FTN packages
scripts/            demo seeder, manual builder and release checks
tests/              unittest, run with pytest
```

`cli.py` opens the store and hands it to `ui/app.py`, which wraps it in a `logic` `Session`; the screens work through that session.

See [CONTRIBUTING.md](CONTRIBUTING.md) for the checks and [docs/release.md](docs/release.md) for release preparation.

## License

MIT. See [LICENSE](LICENSE).
