cryptocom-tools-core
Core base classes for Crypto.com Developer Platform tools.
Installation
pip install cryptocom-tools-core
Usage
from cryptocom_tools_core import CDPTool, BalanceResult
from pydantic import BaseModel, Field
class GetBalanceInput(BaseModel):
address: str = Field(description="Wallet address")
class GetBalanceTool(CDPTool):
name: str = "get_balance"
description: str = "Get native token balance"
args_schema: type[BaseModel] = GetBalanceInput
def _run(self, address: str) -> str:
# Your implementation
return str(BalanceResult(address=address, balance="100", unit="CRO"))
# Use with LangChain
tool = GetBalanceTool(api_key="your-api-key")
# Or export to OpenAI/Anthropic via adapters
from cryptocom_tool_adapters import to_openai_function
openai_tool = to_openai_function(tool)
Exports
CDPTool- Base class extending LangChain BaseTool with CDP API key injectionToolResult- Base class for structured tool outputsBalanceResult- Result type for balance queriesTransactionResult- Result type for transaction queriesTickerResult- Result type for exchange ticker queries
Metadata
Release files for cryptocom-tools-core 2.0.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 | |
|---|---|---|---|---|
| cryptocom_tools_core-2.0.0.tar.gz | 5.3 kB | Without provenance | Details |
Release files / cryptocom_tools_core-2.0.0.tar.gz
| Download URL | cryptocom_tools_core-2.0.0.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bbb0492245548a8f387f517e7590f2a9f7f89e5247c5b87684325ffbbbe413f5
|
|
BLAKE2b-256 checksum How to use checksums |
588566f7062492100ace404904aa23ea4d5fdcc0597e025426f7b1d6dceebed9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.9
|
Security for cryptocom-tools-core 2.0.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.