Metadata-Version: 2.4
Name: c-two
Version: 0.4.8
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: Programming Language :: Rust
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: POSIX
Classifier: Operating System :: MacOS
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: System :: Distributed Computing
Requires-Dist: pydantic-settings>=2.0.0
License-File: LICENSE
Summary: C-Two is a resource-RPC framework that enables resource-oriented classes to be remotely invoked across different processes or machines.
Requires-Python: >=3.10
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM

# C-Two Python SDK

This directory contains the published Python package for C-Two.

The Python SDK does not own the `c3` CLI. `c3` is built from the repository root
`cli/` package and released as an independent native tool.

## Development

From the repository root:

```bash
uv sync
uv sync --reinstall-package c-two
cargo build --manifest-path cli/Cargo.toml
C2_RELAY_ADDRESS= uv run pytest sdk/python/tests -q --timeout=30
```

For source-checkout CLI usage, build and link the development binary:

```bash
python tools/dev/c3_tool.py --build --link
c3 --version
```

Run Rust checks from the repository root:

```bash
cd core && cargo check --workspace
```

## Examples

Python examples live under `../../examples/python/`:

```bash
uv run python examples/python/local.py
```

## Benchmarks

Python-specific benchmarks live in `benchmarks/`:

```bash
C2_RELAY_ADDRESS= uv run python sdk/python/benchmarks/segment_size_benchmark.py
```

