Metadata-Version: 2.4
Name: peercolab-engine
Version: 0.1.2
Summary: Transport abstraction library for operation dispatching with interceptors
Author: New Horizon Invest AS
License: "Commons Clause" License Condition v1.0
        
        The Software is provided to you by the Licensor under the License, as defined below, subject to the following condition.
        
        Without limiting other conditions in the License, the grant of rights under the License will not include, and the License does not grant to you, the right to Sell the Software.
        
        For purposes of the foregoing, "Sell" means practicing any or all of the rights granted to you under the License to provide to third parties, for a fee or other consideration (including without limitation fees for hosting or consulting/ support services related to the Software), a product or service whose value derives, entirely or substantially, from the functionality of the Software. Any license notice or attribution required by the License must also include this Commons Clause License Condition notice.
        
        Software: PeerColab Engine
        License: Apache 2.0
        Licensor: New Horizon Invest AS
License-File: LICENSE
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Typing :: Typed
Requires-Python: >=3.8
Provides-Extra: dev
Requires-Dist: pytest-asyncio>=0.21; extra == 'dev'
Requires-Dist: pytest>=7.0; extra == 'dev'
Description-Content-Type: text/markdown

# PeerColab Engine - Python

Transport abstraction library for operation dispatching with interceptors.

## Installation

```bash
pip install peercolab-engine
```

## Quick Start

```python
from peercolab_engine import Transport, RequestOperation, Result

class GetUser(RequestOperation[dict, dict]):
    def __init__(self):
        super().__init__("users.get", "GET")

get_user = GetUser()

session = (
    Transport.session("my-service")
    .intercept(get_user.handle(my_handler))
    .build()
)
```
