semvec/pypi-packages huggingface dataset:
vk-dev 3.0.1
Package for creating VK bots
Requires Python: >=3.6

# vk_dev
[![PyPI version](https://badge.fury.io/py/vk-dev.svg)](https://badge.fury.io/py/vk-dev)
[![Downloads](https://pepy.tech/badge/vk-dev/week)](https://pepy.tech/project/vk-dev/week)

Localizations:
* [README on Russian](./README_RU.md)

## Info
> *What true convenience is?*

You have a lot of *doorways* to try amazing python package for developing with API VKontakte. By using the flavor of python this library let you write on readable style without complications when need write fast ~or when you are at 0 days~ and refactor your project conveniencly and with idea.

## Installation
```bash
pip3 install vk_dev
```
## Example
```python
import vk_dev

api = vk_dev.Api(
    token='token',
    group_id=192979547,
    v=5.103
)
lp = api >> vk_dev.LongPoll()

## You can create own decorators
@vk_dev.cond.Path('direct')
@vk_dev.cond.Prefix('/', '.')
@lp.message_new()
async def reaction(event, pl):
    """
    This function will work if
    message was sended to direct and
    starts at `/` or `.`
    """

    ## Send response to the interlocutor
    await api.messages.send(
        peer_id=event.object.message.peer_id,
        message='Hello there',
        random_id=vk_dev.random_id()
    )

if __name__ == '__main__':
    lp()
```
## Documentation
* [Wiki](https://github.com/Rhinik/vk_dev/wiki)