Metadata-Version: 2.4
Name: byond-wire
Version: 0.1.2
Summary: Small standard-library BYOND Topic client
Author: Wirewraith
License-Expression: MIT
Project-URL: Repository, https://github.com/Wirewraith/byond-wire
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# BYOND Wire

Small, standard-library BYOND Topic client. MIT licensed.

Library calls return decoded text, numbers, or null. Raw calls preserve text bytes.


Requires Python 3.9 or later. Install the library and CLI with `python3 -m pip install byond-wire`.
Ports must be integers from `1` to `65535` (booleans are rejected).
Timeouts are positive numbers up to `2147483647` seconds;
invalid values raise `ValueError` before DNS or socket creation.

```sh
python3 cli.py 127.0.0.1 4999 status
```

Import the installed module, or copy `byond_wire.py` onto your Python import path:

```python
from byond_wire import topic, topic_raw

response = topic("127.0.0.1", 4999, "status", timeout=5)
# str, float, or None; failures raise exceptions, including TimeoutError.
raw = topic_raw("127.0.0.1", 4999, "status")  # bytes, float, or None
```

Run regression tests with `python3 -m unittest discover -s python`.
