raposa (Python)
from raposa import Raposa, Denied, TimedOut
gate = Raposa() # reads RAPOSA_API_KEY
def issue_refund(order_id, amount_eur, reason):
try:
decision = gate.guard(action="issue_refund",
context=f"Order {order_id}, EUR {amount_eur:.2f}. Reason: {reason}",
risk="high" if amount_eur >= 100 else "medium",
requested_by="support-agent")
except Denied as exc:
return f"Refund not issued — a human declined: {exc}"
except TimedOut as exc:
return f"Refund not issued — nobody answered in time: {exc}"
# the real refund goes here, and only here
return f"Refund issued. Approved by {decision['decided_by']} at {decision['decided_at']}."
guard returns only when a named person approved. Rejection or expiry raises Denied; silence raises
TimedOut. Every decision is sealed in a hash-chained audit log you can export (gate.export_audit()).
Also: gate.create(...) (no waiting, returns the id), gate.get(id), gate.wait(id), gate.me().
Extra request options pass through: remind_after_sec, escalate_to, approvers, required, webhook_url.
Zero dependencies, Python ≥ 3.9. Free sandbox key: https://raposa.group/start/ · Docs: https://raposa.group/docs/
Metadata
Release files for raposa 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| raposa-0.1.0.tar.gz | 4.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| raposa-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.1 kB
Release files / raposa-0.1.0.tar.gz
| Download URL | raposa-0.1.0.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
888f26d75da51f5256f32ffcae9c324a37d70684df73bd561331f32a9a474e9f
|
|
BLAKE2b-256 checksum How to use checksums |
663056f0a5a1fbbb2924bd8f12a84f648d18de7e36ab45063d521d80c0269b29
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / raposa-0.1.0-py3-none-any.whl
| Download URL | raposa-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
63e00a4f0ec2adbfa69ff7c63481045e1972a9097864ee67e0d98d8ea8ec77b3
|
|
BLAKE2b-256 checksum How to use checksums |
c22013cab1a47f2c2ba846a4cd6fa9434a61777649e4a2063c365211ef1509ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Security for raposa 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.