Metadata-Version: 2.4
Name: reminix
Version: 1.0.0rc13
Summary: Reminix API client
Keywords: scripts,internal-tools,automation,ai-agents,mcp,python,sdk,api-client,asyncio
License-Expression: Apache-2.0
License-File: LICENSE
License-File: NOTICE
Requires-Dist: httpx>=0.27,<1
Requires-Dist: pydantic>=2,<3
Requires-Python: >=3.10
Project-URL: Homepage, https://reminix.com/docs/python/
Project-URL: Source, https://github.com/reminixhq/reminix-python
Project-URL: Changelog, https://github.com/reminixhq/reminix-python/blob/main/CHANGELOG.md
Description-Content-Type: text/markdown

# reminix

The Reminix Python SDK runs your team's published scripts from your code: one call starts a run, waits for it however long it takes, handles approvals and files, and gives you the result. Every API operation is a typed method too, sync or async.

[![A script published with reminix publish becomes a tool: Jordan asks Claude for a refund, Sam approves it in Reminix, and the refund goes out.](https://media.reminix.com/launch/readme-20261117-1555.gif)](https://reminix.com/#demo)

[▶ Watch the 1-minute demo](https://reminix.com/#demo)

Reminix turns your scripts into internal tools. Upload a Python, shell or Node script, and Reminix runs it from a form, the API, the CLI or your AI agents, on a schedule or from a webhook. Keys stay out of the code, and every run is on record.

## Install

```bash
pip install reminix
```

Needs Python 3.10 or later. Set `REMINIX_API_KEY` to a key from
**Settings → Developers** in the app. To pass the key yourself, use
`Reminix(api_key=key)`.

## Publish a script

Scripts are published with the Reminix CLI. In the script's folder:

```bash
npm install -g @reminix/cli
reminix login
reminix publish
```

Reminix works out how the script runs from the folder. Inputs, drafts
and publishing several scripts at once are in the
[CLI guide](https://reminix.com/docs/cli/).

## Run a script

`run` runs a published script and gives you its result in one call,
however long it takes:

```python
from reminix import Reminix

reminix = Reminix()  # reads REMINIX_API_KEY

run = reminix.run(
    "refund-customer",
    {"orderId": "A-10423", "amount": 40, "reason": "Charged twice for the same order"},
)
print(run.output)  # {"order": "A-10423", "amount": "$40.00", "refund": "re_…"}
```

- A run that needs a person's approval waits for them. Pass
  `on_approval` to show them where to approve it.
- A run that fails, or whose approval is turned down, raises a
  `RunError` with the run's status and error.

## Files given and saved

Give a file input as a `pathlib.Path`, an open file or a `FileUpload`; the SDK
uploads it first. The files a run saves come back with a download
link:

```python
from pathlib import Path

from reminix import Reminix

reminix = Reminix()

run = reminix.run(
    "monthly-report",
    {"month": "2026-09", "adjustments": Path("adjustments.csv")},
)
for file in run.files or []:
    if file.origin == "saved":
        print(file.name, file.download_url)
```

## Everything else

Every API operation is a typed method, named like its CLI command:
`reminix runs list` is `reminix.runs.list()`. For asyncio, use
`AsyncReminix`. A response is a typed model, so you read its fields as
attributes, such as `run.output`. A list goes through every page when
you loop over it. When the API returns an error, the SDK raises an
`APIError` with the error's `code`, `message`, `status_code` and
`request_id`. Every error a call raises is a `ReminixError`.

## Links

- [Website](https://reminix.com)
- [Python SDK guide](https://reminix.com/docs/python/)
- [API reference](https://reminix.com/docs/reference/)
- [Changelog](https://github.com/reminixhq/reminix-python/blob/main/CHANGELOG.md)
- [Discord](https://reminix.com/discord)
- [Report a security issue](https://reminix.com/security/)

## Contributing

This repository is generated from Reminix's source on each
release, so pull requests are ported there and credited (see
[CONTRIBUTING.md](https://github.com/reminixhq/reminix-python/blob/main/CONTRIBUTING.md)).

## License

Licensed under the Apache License 2.0.
