prostomarkeloff / Vk.py
Programming Languages
Projects that are alternatives of or similar to Vk.py
Welcome to vk.py 👋
Extremely-fast, easy-to-use, ready for production. The asyncio based library for Python and Humans written to be efficient and reliable.
Warning for new (and old users)
The final release (1.0.0) was introduced. It's incompatible with 0.6
. Documentation for migration from 0.6
to 1.0.0
won't be. Examples too.
If you wanna to use older version (0.6):
pip install vk.py==0.6
Or:
pip install vk.py
for latest.
This project unmaintained but PRs are welcome.
Homepage
🏠Install
Install package from PyPi
pip install vk.py
Usage
A simple example
from vk import VK
from vk.utils.task_manager import TaskManager
import logging
logging.basicConfig(level="INFO")
vk = VK(access_token="my-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.
Features
- 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
Alternatives
- Kutana. Bot engine for creating Telegram and VK bots
- VK_API. A simple library for accessing VK API.
And many other libraries...
FAQ
This is only bot library? - No, this library could be used for acessing userapi or botapi without any troubles.
Where i can find the docs? - Check it.
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.
Author
👤 prostomarkeloff
- Github: @prostomarkeloff
🤝 Contributing
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Also you can check your contributors guide.
Show your support
Give a ⭐️ if this project helped you!
📝 License
Copyright © 2019 prostomarkeloff.
This project is MIT licensed.