ape-xaps
XAPS pre-execution audit helpers for Ape scripts and agent workflows.
Recommended by ApeWorX maintainers as an SDK integration (not core) — see ApeWorX/ape#2796.
Install
pip install ape-xaps xaps-sdk
export XAPS_AGENT_KEY=xaps_...
export XAPS_API_URL=https://api.xaps.network # optional
Quick use (2-line guard)
from ape_xaps import audit_before_send, XapsApeRejectedError
# Right before account.send_transaction(txn) or provider.send_transaction(txn)
receipt = audit_before_send(txn, action="transfer")
if receipt["audit"]["status"] != "APPROVED":
raise XapsApeRejectedError(receipt["audit"].get("beta_attack", "REJECTED"), receipt=receipt)
account.send_transaction(txn)
CLI (optional, via ape.cli pattern)
ape-xaps health
ape-xaps audit --action transfer --contract 0xabc... --amount 0.01
Links
- XAPS SDK: https://github.com/APMC1/xaps-sdk
- Ape plugin/SDK guidance: https://github.com/ApeWorX/ape/issues/2796
Release files for ape-xaps 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 | |
|---|---|---|---|
| ape_xaps-0.1.0.tar.gz | 4.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ape_xaps-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.8 kB
Release files / ape_xaps-0.1.0.tar.gz
| Download URL | ape_xaps-0.1.0.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
756c3281429e94ffd564955e2c1bb908bd1bb52d0b40cce32ae3f9425ccee311
|
|
BLAKE2b-256 checksum How to use checksums |
fccc575da037ed008110b0b93e04a82468ae9973425dcc8982266cc6267aeb99
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Release files / ape_xaps-0.1.0-py3-none-any.whl
| Download URL | ape_xaps-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a7de709a2f38d917263f0f5336e1d560a3280b961f4edda1d22fb100f1e67456
|
|
BLAKE2b-256 checksum How to use checksums |
95602329c7b918813c1f3ef3d319c5dab8dcfa59300c03596664f323b636dd2d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|