Skip to content

fossabot/vk.py

Repository files navigation

vk.py

Welcome to vk.py 👋

Version [License: MIT FOSSA Status ](https://github.com/prostomarkeloff/vk.py/blob/master/LICENSE) Twitter: prostomarkeloff Codacy Badge Build Status

Fastest, scalable, fully asynchronous.

Install

pip install https://github.com/prostomarkeloff/vk.py/archive/master.zip --upgrade

In requirements.txt:

# some stuff
https://github.com/prostomarkeloff/vk.py/archive/master.zip

Fast version with uvloop and ujson (only for *nix like OS):

pip https://github.com/prostomarkeloff/vk.py/archive/master.zip#egg=vk.py[fast]

With ultra handlers:

pip https://github.com/prostomarkeloff/vk.py/archive/master.zip#egg=vk.py[ultra]

More about it: click

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=<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

Example of use bot framework, with docker integration click

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)

Alternatives

  • Kutana. Bot engine for creating Telegram and VK bots
  • VKBottle. Bot framework for VK bot development.
  • VK_API. A simple library for accessing VK API.

And many other libraries...

Author

👤 prostomarkeloff

🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page.

Show your support

Give a ⭐️ if this project helped you!

📝 License

Copyright © 2019 prostomarkeloff.
This project is MIT licensed.


This README was generated with ❤️ by readme-md-generator

FOSSA Status

About

Extremely-fast Python 3.6+ toolkit for create applications work with VKAPI. Have bot framework out-of-the-box.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages