Extremely-fast, easy-to-use, ready for production. The asyncio based library for Python and Humans written to be efficient and reliable.
🏠 Homepage
Install package from PyPi: (current version is 6 alpha of 1.0.0)
pip install vk.py-1.0.0a6==1.0.0 -U
Warning: this version really unstable and not recommended to use in production.
A simple example
from vk import VK
from vk.utils.task_manager import TaskManager
from vk.utils.auth_manager import AuthManager
import logging
logging.basicConfig(level="INFO")
auth = AuthManager("7999123456", "my-password")
vk = VK(access_token=auth.get_token())
async def status_get():
resp = await vk.api_request("status.get")
print(resp)
if __name__ == "__main__":
task_manager = TaskManager(vk.loop)
task_manager.add_task(status_get)
task_manager.run()
You can find more examples here.
- Rich high-level API.
- Fully asynchronous. Based on asyncio and aiohttp.
- Bot framework out of-the-box.
- Fully typed, thanks to Pydantic.
- Compatible with PyPy.
- Have a lot of tools (in bot framework) out-of-the-box for creating largest and powerful applications click:
- Caching
- Blueprints
- Cooldowns
- FSM (WIP)
- Python -> VKScript converter (WIP). try it
- Kutana. Bot engine for creating Telegram and VK bots
- VK_API. A simple library for accessing VK API.
And many other libraries...
This is only bot library? - No, this library could be used for acessing userapi or botapi without any troubles.
How to use it? - You may check docs or see our examples.
Why do you do it? - We are interesting to create the most used and easy-to-use library for Python.
When 1.0.0
will be released? - We don't know. We hope that it's moment will come to us ASAP. However, you can see current issues and help us.
👤 Cl0ckHvH
- Github: @Cl0ckHvH
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Also you can check your contributors guide.
Give a ⭐️ if this project helped you!