Metadata-Version: 2.4
Name: plutus-sync
Version: 0.1.0
Summary: CRDT-based state management for agentic swarms
Project-URL: Homepage, https://github.com/RB9823/plutus
Project-URL: Repository, https://github.com/RB9823/plutus
Project-URL: Issues, https://github.com/RB9823/plutus/issues
Project-URL: Documentation, https://github.com/RB9823/plutus#readme
Author: Plutus Contributors
License: MIT License
        
        Copyright (c) 2026 Plutus Contributors
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Keywords: agents,collaboration,crdt,distributed-systems,swarm
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: Topic :: Software Development :: Libraries
Classifier: Topic :: System :: Distributed Computing
Requires-Python: >=3.10
Requires-Dist: anyio>=4.0
Requires-Dist: loro>=1.10.0
Requires-Dist: msgpack>=1.0
Requires-Dist: websockets>=13.0
Provides-Extra: dev
Requires-Dist: mypy>=1.13; extra == 'dev'
Requires-Dist: pytest-asyncio>=0.24; extra == 'dev'
Requires-Dist: pytest>=8.0; extra == 'dev'
Requires-Dist: ruff>=0.8; extra == 'dev'
Provides-Extra: e2b
Requires-Dist: e2b>=1.0; extra == 'e2b'
Description-Content-Type: text/markdown

# Plutus

CRDT-based state management for agentic swarms.

Plutus provides:
- `PlutusAgent` for local/networked swarm participation
- CRDT-backed shared namespaces and descriptors
- A sync daemon + WebSocket transport
- Blueprint workflow execution for multi-step agent flows

## Quick Start (uv)

### 1. Install as a dependency

```bash
uv add plutus-sync
```

### 2. Run locally from source

```bash
git clone https://github.com/RB9823/plutus.git
cd plutus
uv sync --group dev
uv run pytest tests/ -v
```

### 3. Try examples

```bash
uv run python examples/basic_swarm.py
uv run python examples/networked_swarm.py
uv run python examples/blueprint_example.py
```

## Minimal Usage

Install name is `plutus-sync`; import package remains `plutus`.

```python
import anyio
from plutus import PlutusAgent


async def main():
    agent = PlutusAgent(name="worker", peer_id=1)
    await agent.join()
    agent.state("tasks").set("task_1", {"status": "pending"})
    agent.commit()
    await agent.leave()


anyio.run(main)
```

## Development

- Setup: `uv sync --group dev`
- Tests: `uv run pytest tests/ -v`
- Optional linting: `uv run ruff check src tests`
- Optional type checking: `uv run mypy src`

See [CONTRIBUTING.md](CONTRIBUTING.md) for full contributor workflow.

## Releasing

See [docs/RELEASING.md](docs/RELEASING.md) for the uv-based release process and PyPI publishing setup.
Use workflow-dispatch to publish to `testpypi` first, then publish to `pypi` from a GitHub Release.

## Project Health

- Changelog: [CHANGELOG.md](CHANGELOG.md)
- Security policy: [SECURITY.md](SECURITY.md)
- Code of conduct: [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md)
- License: [LICENSE](LICENSE)
