
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Из PyPI:
$ pip install vkbee
Из GitHub (рекомендуется):
$ pip install https://github.com/vkbee/vkbee/archive/master.zip
Минимальная версия 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 longpoll.events():
user_id = event['object']['message']['from_id']
message_text = event['object']['message']['text']
await API.call(vk_session, 'messages.send', {'user_id': user_id, 'message': message_text, 'random_id': 0})
loop = asyncio.get_event_loop()
loop.run_until_complete(main(loop))
Более расширенное использование описано в документации
Soon
FAQs
Simple async VK library faster than vk_api
We found that vkbee demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.