Metadata-Version: 2.5
Name: golded
Version: 1.0.0
Summary: GoldED message reader for FTN areas in SQLite, 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-sqlite<2,>=1.1.0
Requires-Dist: golded-ftn<2,>=1.5.1
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, modelled on GoldED. Built with Textual. Storage comes from [`golded-ftn`](https://pypi.org/project/golded-ftn/) and [`golded-ftn-sqlite`](https://pypi.org/project/golded-ftn-sqlite/).

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

## 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).
