semvec/pypi-packages huggingface dataset:
async-bot-api-adapters 0.0.1
Common interface for vk/telegram api calls

‍⚕ WIP: Async Bot API Adapters ‍⚕
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This package allows to interact with vk and telegram API using the same
interface.

It's main purpose is to simply switch 🕹 between services while
developing bots.

Setup
-----

Firstly you should export environment variables. Create ``.env`` file
and fill vars:

::

    TELEGRAM_TOKEN=telegram_token
    VK_TOKEN=vk_token

Example
-------

Upload Images to vk and tg.

.. code:: python

    import asyncio

    import aiofiles

    from adapters.factory import create_adapter
    from adapters.enums import AdapterType
    from dotenv import load_dotenv
    load_dotenv()

    tg_adapter = create_adapter(adapter_type=AdapterType.TELEGRAM)
    vk_adapter = create_adapter(adapter_type=AdapterType.VK)


    async def main():
        async with aiofiles.open('test.png', mode='rb') as data:
            content = await data.read()
            await asyncio.gather(*[
                    tg_adapter.send_image(chat_id=-195789610, image=content),
                    vk_adapter.send_image(chat_id=2000000006, image=content)
            ])

    asyncio.run(main())
scrapli-ssh2 2020.10.24
ssh2-python transport plugin for the scrapli SSH|Telnet screen scraping library
Requires Python: >=3.6

scrapli_ssh2
============

This is the ssh2-python plugin for [scrapli](https://github.com/carlmontanari/scrapli).

If you would like to use scrapli, but prefer to use ssh2-python as a driver for whatever reason (perhaps you are into
 ludicrous speed!), this is the library for you!
 
Please see the main [scrapli repo](https://github.com/carlmontanari/scrapli) for much more information.