Python SDK for the Infinihash KYT API (wallet screening, cases, SAR drafts).
Project description
infinihash-kyt (Python)
Thin Python wrapper for the Infinihash KYT REST API. Screen wallets, manage cases, pull SAR drafts.
Install
pip install infinihash-kyt
Use
from infinihash_kyt import KYT
client = KYT(api_key="ih_kyt_...") # or set INFINIHASH_KYT_KEY in your env
# Screen a wallet
r = client.screen.address("0x722122dF12D4e14e13Ac3b6895a86e84145b6967", chain="ethereum")
print(r["risk_score"], r["risk_level"])
# Open a case
case = client.cases.create(
address="0x722122dF12D4e14e13Ac3b6895a86e84145b6967",
chain="ethereum",
notes="High-risk exposure detected from automated screen.",
)
# FinCEN-shaped JSON template (read-only - you still file with FinCEN yourself)
export = client.cases.sar_export_fincen(case["id"])
Errors
All non-2xx responses raise KYTError(status, message, body). The body field
preserves the parsed JSON the server sent back, when available.
Status
Alpha. The surface area mirrors what is documented at https://kyt.infinihash.com/docs. If you need an endpoint that is not in the client, file an issue.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file infinihash_kyt-0.1.0.tar.gz.
File metadata
- Download URL: infinihash_kyt-0.1.0.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8207d6ec764c77d38715450850eee040642d2924a2906230e0e8e374c983c9cb
|
|
| MD5 |
09b17519592c2d0204ceeb0aa09bd546
|
|
| BLAKE2b-256 |
482da631ba29f116d645f62d595fcbb9eea8d547d112292879ec09ea94d4e10c
|
File details
Details for the file infinihash_kyt-0.1.0-py3-none-any.whl.
File metadata
- Download URL: infinihash_kyt-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c47ccb6339e48db965ca3470bd752828306c4f67f77f72de4bfc6528e322cf05
|
|
| MD5 |
f8d9e5a392789f43b55dcbb45bbbf679
|
|
| BLAKE2b-256 |
f795900f5b2b28195db2ac852b293e5618f60b389d615b79c5152846961ea082
|