credit01 — 01credit Python SDK
Official Python SDK for 01credit.
Install
pip install credit01
Quickstart
from credit01 import CreditClient
client = CreditClient(api_key="01l_live_xxx")
config = client.get_config()
decision = client.check(action="swap", amountUSD=250, venue="Uniswap V3")
if decision["result"] == "REVIEW":
resolution = client.wait_for_approval(decision["checkId"])
if resolution != "approved":
raise SystemExit("Operator denied the action")
Credit Flow
approval = client.request_credit(amount=30, chain_id=11155111)
if approval["approved"]:
draw = client.draw_credit(amount=30, chain_id=approval["chainId"])
outstanding = client.get_outstanding(draw["loanId"])
client.repay_credit(draw["loanId"], "0xrepay...")
Methods
get_config()is_kill_switch_active()set_status(status)update_metrics(**kwargs)report_transaction(**kwargs)log(level, message, **kwargs)log_batch(entries)request_credit(amount, chain_id=None)draw_credit(amount, chain_id=None)get_outstanding(loan_id)repay_credit(loan_id, tx_hash)check(**context)resolve(log_id, resolved_by)get_approval_status(check_id)wait_for_approval(check_id, timeout=300, interval=5)
Metadata
Release files for credit01 0.2.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 | Actions |
|---|---|---|---|---|
| credit01-0.2.0.tar.gz | 9.2 kB | Without provenance | Details for credit01-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| credit01-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for credit01-0.2.0-py3-none-any.whl |
Total release size: 18.5 kB
Release files / credit01-0.2.0.tar.gz
| Download URL | credit01-0.2.0.tar.gz |
|---|---|
| Size | 9.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
317302f8c8ebb46a1de5eb1f0cc6a40dbd5c8f33a44c3c4a5dfeed437c89346e
|
|
BLAKE2b-256 checksum How to use checksums |
5990cd7373c631dfa997dfee2e15a3a6ac66ba8cd2f603f835a40d58bb688bbf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Release files / credit01-0.2.0-py3-none-any.whl
| Download URL | credit01-0.2.0-py3-none-any.whl |
|---|---|
| Size | 9.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ab418b359debf69bc0207ba549a05b0cea8a1124a3f08c26b77fff2ae3b89d77
|
|
BLAKE2b-256 checksum How to use checksums |
a834e8cb8f01de2f7049e51fd9a4104578d404ecb142779a46f0d044c49fb037
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Security for credit01 0.2.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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.