Metadata-Version: 2.1
Name: snapshoter-connector-abm
Version: 0.2.2
Summary: connector to snapshoter
Author: i.vasiliev
Author-email: i.vasiliev@technokert.ru
Requires-Python: >=3.10,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: http-tools-abm (>=1.0.47474,<3)
Description-Content-Type: text/markdown

## SnapshotConnector

service to get snapshots from rtsp stream

## Library Installation

```
pip install --extra-index-url https://pypi.abm-jsc.ru snapshoter-connector-abm
```

## Quick Start


#### Getting snapshot
```python
import asyncio

import aiohttp
from snapshoter_connector.connector import SnapshotConnector


async def make_snapshot():
    
    session = aiohttp.ClientSession()

    email_service_connector = SnapshotConnector(
        config=SnapshotConnector.Config(
            url='127.0.0.1:8080',
            server_name='immovable_server',
        ),
        context=SnapshotConnector.Context(
            session=session,
        ),
    )
    rstp_url = "rtsp://login:pass@ip"
    snapshot = await email_service_connector.get_snapshot(rstp_url)
    print(len(snapshot))
    await session.close()


asyncio.run(make_snapshot())
```

