Skip to main content

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.

Metadata

Release files for infinihash-kyt 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for infinihash-kyt 0.1.0
File Size Uploaded
infinihash_kyt-0.1.0.tar.gz 8.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for infinihash-kyt 0.1.0
File Interpreter ABI Platform
infinihash_kyt-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 17.3 kB

Release files / infinihash_kyt-0.1.0.tar.gz

Download URL infinihash_kyt-0.1.0.tar.gz
Size 8.5 kB
Tags Source
SHA-256 checksum
How to use checksums
8207d6ec764c77d38715450850eee040642d2924a2906230e0e8e374c983c9cb
BLAKE2b-256 checksum
How to use checksums
482da631ba29f116d645f62d595fcbb9eea8d547d112292879ec09ea94d4e10c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release files / infinihash_kyt-0.1.0-py3-none-any.whl

Download URL infinihash_kyt-0.1.0-py3-none-any.whl
Size 8.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c47ccb6339e48db965ca3470bd752828306c4f67f77f72de4bfc6528e322cf05
BLAKE2b-256 checksum
How to use checksums
f795900f5b2b28195db2ac852b293e5618f60b389d615b79c5152846961ea082
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page