Metadata-Version: 2.5
Name: forjio-secronna
Version: 0.2.0
Summary: Secronna SDK — typed Python client for the secronna.com secrets REST API. Sister to the JS + Go SDKs.
Project-URL: Homepage, https://secronna.com/docs/sdk/python
Project-URL: Repository, https://github.com/hachimi-cat/saas-secronna
Author-email: Forjio <support@forjio.com>
License: Proprietary
Requires-Python: >=3.10
Requires-Dist: httpx>=0.27.0
Provides-Extra: dev
Requires-Dist: pytest>=8.0.0; extra == 'dev'
Description-Content-Type: text/markdown

# forjio-secronna

Typed Python client for the [secronna.com](https://secronna.com) secrets
REST API.

```bash
pip install forjio-secronna
```

```python
from forjio_secronna import SecronnaClient

client = SecronnaClient(token="sk_live_...")

project = client.create_project(name="Web")
env = client.create_environment(project["id"], name="production")
client.set_secret(env["id"], key="DATABASE_URL", value="postgres://...")

# Pull the whole environment into a {KEY: value} dict:
secrets = client.fetch_secrets(env["id"])
# {"DATABASE_URL": "postgres://..."}
```

Auth is a Bearer token — an `sk_live_...` API key from the dashboard (or
a Huudis-minted access token). Pass `token=` or set `SECRONNA_TOKEN`.

Every response rides the Forjio envelope `{data, error, meta}`; the
client unwraps `data` and raises `SecronnaError` (carrying the
envelope's `error.code`) on failure.

## Family

Sister to:

- [`@forjio/secronna`](https://www.npmjs.com/package/@forjio/secronna) (JS/TS)
- [`hachimi-cat/secronna-go`](https://github.com/hachimi-cat/secronna-go) (Go)
