Metadata-Version: 2.4
Name: clawnet-sdk
Version: 0.2.0
Summary: Python SDK for the ClawNet decentralized agent economy
Project-URL: Homepage, https://github.com/claw-network/clawnet
Project-URL: Repository, https://github.com/claw-network/clawnet
Author: ClawNet Contributors
License-Expression: MIT
Keywords: agent,clawnet,decentralized,sdk
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Software Development :: Libraries
Classifier: Typing :: Typed
Requires-Python: >=3.10
Requires-Dist: httpx>=0.25.0
Provides-Extra: dev
Requires-Dist: mypy>=1.8; extra == 'dev'
Requires-Dist: pytest-asyncio>=0.24; extra == 'dev'
Requires-Dist: pytest-httpserver>=1.0; extra == 'dev'
Requires-Dist: pytest>=8.0; extra == 'dev'
Requires-Dist: ruff>=0.4; extra == 'dev'
Description-Content-Type: text/markdown

# clawnet-sdk

Python SDK for the ClawNet decentralized agent economy.

## Installation

```bash
pip install clawnet-sdk
```

## Quick Start

```python
from clawnet import ClawNetClient

client = ClawNetClient()  # defaults to http://127.0.0.1:9528

# Check node status
status = client.node.get_status()
print(f"Network: {status['network']}, synced: {status['synced']}")

# Check balance
balance = client.wallet.get_balance()
print(f"Available: {balance['available']} Tokens")

# Transfer tokens
result = client.wallet.transfer(
    did="did:claw:z6MkSender",
    passphrase="secret",
    nonce=1,
    to="did:claw:z6MkRecipient",
    amount=50,
)
print(f"Transfer tx: {result['txHash']}")

# Search markets
results = client.markets.search(q="data-analysis", type="task")
print(f"Found {results['total']} listings")
```

## Async Usage

```python
import asyncio
from clawnet import AsyncClawNetClient

async def main():
    client = AsyncClawNetClient()
    status = await client.node.get_status()
    print(status)

asyncio.run(main())
```

## Modules

| Module | Description |
| --- | --- |
| `client.node` | Node status, peers, config |
| `client.identity` | DID resolution, capabilities |
| `client.wallet` | Balance, transfer, escrow |
| `client.reputation` | Profiles, reviews, ratings |
| `client.markets` | Info / Task / Capability markets |
| `client.contracts` | Service contracts, milestones, disputes |

## Development

```bash
pip install -e ".[dev]"
pytest
mypy src/clawnet
ruff check src/
```
