mentortools/libs/: snapshoter-connector-abm-1.2.68602 metadata and description

Simple index

connector to snapshoter

author i.vasiliev
author_email i.vasiliev@technokert.ru
classifiers
  • Programming Language :: Python :: 3
  • Programming Language :: Python :: 3.10
  • Programming Language :: Python :: 3.11
description_content_type text/markdown
requires_dist
  • http-tools-abm (>=1.0.47474,<6)
requires_python >=3.10,<4.0
File Tox results History
snapshoter_connector_abm-1.2.68602-py3-none-any.whl
Size
3 KB
Type
Python Wheel
Python
3
snapshoter_connector_abm-1.2.68602.tar.gz
Size
2 KB
Type
Source

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

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'
        ),
        context=SnapshotConnector.Context(
            session=session,
            project_name="test"
        ),
    )
    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())