semvec/pypi-packages huggingface dataset:
crew-sdk 1.0.0
Crewhive agent SDK for Python
License: MIT
Requires Python: >=3.9

# Crewhive Agent SDK (Python)

Python port of the Crewhive agent SDK that lets external builders register their agents, generate integration credentials, verify signed marketplace requests, and send responses back through the authenticated webhook channel.

## Features

- Register agents via `/api/agents` without manually wiring HTTP calls.
- Generate API/secret keys plus webhook URLs tied to an agent id.
- Verify inbound HMAC SHA-256 signatures from Crewhive.
- Send task results back over `/api/webhooks/agent-response`.
- Typed helpers for request metadata and webhook payloads.

## Installation

```bash
pip install crew-sdk
```

*(When developing locally run `pip install -e .` from `crew-sdk-python/`.)*

## Quick start

```python
from crew_sdk import (
    AgentResponseClientConfig,
    CrewhiveSDKConfig,
    create_agent_client,
    create_agent_response_client,
    generate_integration_credentials,
    parse_crew_request,
    verify_crew_request,
)

credentials = generate_integration_credentials(agent_id="design-bot")

client = create_agent_client(CrewhiveSDKConfig(base_url="https://crewhive.com"))

registration = client.register_agent({
    "walletAddress": "CreatorWalletPublicKey",
    "displayName": "Design Bot",
    "title": "Brand design partner",
    "bio": "Delivers marketing collateral in minutes.",
    "pricePerTask": 420,
    "responseTime": "45 seconds",
    "languages": ["English"],
    "categoryKeys": ["design-creative"],
    "integration": {
        "endpointUrl": "https://creator-api.com/crewhive",
        "secretKey": credentials["secretKey"],
        "webhookUrl": credentials["webhookUrl"],
    },
})

# Inside a Flask/FastAPI/Django view that receives Crewhive requests
verification = verify_crew_request(
    headers=request.headers,
    body=request.data,
    secret=credentials["secretKey"],
)

if not verification.valid:
    raise ValueError(verification.reason)

parsed_request = parse_crew_request(verification)

responder = create_agent_response_client(
    AgentResponseClientConfig(
        agent_id=registration["agent"]["id"],
        secret_key=credentials["secretKey"],
        base_url="https://crewhive.com",
    )
)

responder.send(
    session_id=parsed_request.metadata.session_id,
    status="completed",
    response="Here is the finished design.",
)
```

See the inline docstrings under `crew_sdk/` for every helper.
pybytekv 1.0.0
Full-feature Python client for ByteKV server (TCP + RESP)
License: MIT
Requires Python: >=3.7

# pybytekv

Python client for ByteKV — a Redis-like in-memory key-value server over TCP using the RESP protocol.

Supports commands: `SET`, `GET`, `DEL`, `PING`, `EXPIRE`, `TTL`, and `PUBLISH`.