Metadata-Version: 2.4
Name: zulip-nod
Version: 0.1.1
Summary: Small non-interactive JSON CLI for Zulip
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: zulip==0.9.1

# zulip-nod

A small, non-interactive Zulip CLI using the official Python `zulip` client.
Requires Python 3.10 or newer. No Node.js or terminal UI is required.

## Install and configure

Install the wheel with `python -m pip install ./zulip_nod-0.1.1-py3-none-any.whl`.
For Nod, supply these variables in private setup, not as CLI arguments:

- `ZULIP_URL`: your Zulip HTTPS origin, with no path or credentials.
- `ZULIP_EMAIL`: the user or bot's Zulip API email.
- `ZULIP_API_KEY`: the account's Zulip API key.

This CLI ignores `~/.zuliprc`, proxy settings and TLS override variables. It
verifies TLS, does not follow redirects, and disables SDK retries. The SDK fetches
server settings before the requested operation. No other commands mutate Zulip.

## Usage

```sh
zulip profile
zulip read --limit 10
zulip read --channel engineering --topic planning --limit 10
zulip search 'quarterly budget' --channel finance --limit 10
zulip send --channel-id 42 --topic planning < message.txt
zulip send --user-id 12 --user-id 34 < message.txt
zulip send --user-id 12 --content 'Hello from Zulip'
```

Reads and searches default to 20 messages and accept a limit of 1 to 100, with
no auto-pagination or mark-as-read calls. Search follows Zulip's own permissions
and history rules. `send` requires an explicit destination and a nonblank UTF-8
message of at most 64 KiB (Zulip may impose a lower limit). Pass the message as
one `--content` argument, or omit the flag to read from stdin. When the flag is
present, stdin is ignored, even if the argument is empty and fails validation.
Use `--content=VALUE` for text starting with a dash. Command-line arguments may
appear in process listings or shell history; prefer stdin where available for
sensitive content. The command never prompts. Repeat `--user-id` for a group DM.
If a send reports an unknown outcome, check Zulip before retrying.

Commands write one JSON object to stdout. Exit codes: `0` success, `2` invalid
input or missing configuration, `1` request failure or unknown send outcome.
`--help` and `--version` are plain text and work offline. Successful profile and
message output contains private account data; treat it accordingly.

## Package and upload

From the source tree, run `python -m pip install build twine` and then
`python -m build` to build both distributions. To publish the supplied files
without rebuilding, put only those two files in a clean `dist/` directory, review
them, and run:

```sh
python -m twine check dist/zulip_nod-0.1.1*
python -m twine upload dist/zulip_nod-0.1.1*
```

Use your own PyPI account and enter an upload token privately if prompted. Do
not put the token in the command line or send it in chat. The upload is public.

## Offline tests

After installing the wheel, run `python -m unittest discover -s tests -v` from
an extracted source distribution. The tests exercise the installed package and
stub the HTTP adapter; no Zulip server or real credentials are used.
