Skip to main content

Simple async VK library faster than vk_api

Project description


VKBee - простая в использовании библиотека для взаимодействия с API ВКонтакте

Made with Python Downloads License


Из PyPI:

$ pip install vkbee

Из GitHub (рекомендуется):

$ pip install

Минимальная версия Python - 3.6

Пример использования

import asyncio
import vkbee

from vkbee.longpoll import BotLongpoll, Session
from vkbee import API

async def main(loop):
    vk_session = Session(token='token', loop=loop)
    longpoll = BotLongpoll(vk_session, 'groupid', 10)

    async for event in
        user_id = event['object']['message']['from_id']
        message_text = event['object']['message']['text']

        await, 'messages.send', {'user_id': user_id, 'message': message_text, 'random_id': 0})

loop = asyncio.get_event_loop()

Более расширенное использование описано в документации



Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vkbee-4.1.tar.gz (4.6 kB view hashes)

Uploaded source

Built Distribution

vkbee-4.1-py3-none-any.whl (10.5 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page