Skip to main content

Python client for Kricket Protocol: DeFi intelligence and execution suite

Project description

kricket-client

Async Python client for the Kricket Protocol — DeFi intelligence APIs for rug detection, wallet profiling, price feeds, smart contract analysis, and notifications.

Requires Python 3.10+. All methods are async.

Installation

pip install kricket-client

Quick Start

import asyncio
from kricket_client import KricketClient

async def main():
    async with KricketClient(api_key="your-api-key") as kricket:
        # Scan a token for rug-pull risk
        result = await kricket.mantis.scan("TOKEN_ADDRESS")
        print(result.risk_score.rating)  # 'low' | 'moderate' | 'high' | 'critical'
        print(result.risk_score.score)   # 0–100

        # Get a wallet intelligence profile
        wallet = await kricket.firefly.get_wallet("WALLET_ADDRESS")
        print(wallet.score, wallet.style, wallet.win_rate)

asyncio.run(main())

Clients

Client Description Key Methods
kricket.mantis Rug-pull detection & token risk scoring scan(token), get_score(token), add_to_watchlist(tokens), get_watchlist()
kricket.firefly Wallet intelligence & smart money signals get_wallet(address), get_signals(), get_leaderboard(), track(address)
kricket.pulse Unified price feeds (CEX + DEX) get_price(symbol), get_spread(symbol)
kricket.chirps Notification channel management list_channels(), create_channel(config), delete_channel(id)
kricket.debugger Smart contract vulnerability analysis analyze(source, language)

Configuration

from kricket_client import KricketClient, KricketConfig

config = KricketConfig(
    api_key="your-api-key",
    base_url="https://api-cricket.vylth.com/api/kricket",  # optional override
    timeout=30.0,  # seconds, default 30
)
kricket = KricketClient(config)

Error Handling

from kricket_client import KricketError

try:
    result = await kricket.mantis.scan(token)
except KricketError as e:
    print(e.code, e.message, e.status)

Full Docs

cricket.vylth.com/docs

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kricket_client-0.1.0.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kricket_client-0.1.0-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file kricket_client-0.1.0.tar.gz.

File metadata

  • Download URL: kricket_client-0.1.0.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for kricket_client-0.1.0.tar.gz
Algorithm Hash digest
SHA256 be9df83722a57e255c4fae51a1f8da0cb5a45cbe95bb1b464484131ce0349ec1
MD5 78a1daf0a27decb55e630b9da56725a6
BLAKE2b-256 f54b63f3dee6877fc46eb39bea44963adb3fbbd58709d97eef9a3adf57fde725

See more details on using hashes here.

File details

Details for the file kricket_client-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: kricket_client-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for kricket_client-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6ddfaa0cdbe69895dcfe6c949803f4af3b42955ff5e3502330d4dd0b106f9715
MD5 97ace97547e18a2c8a4108220842dd9c
BLAKE2b-256 ea00f1480df1eb8e8860b356340b1476b4bf113a7b937f9644d4b222b5d4ecad

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page