Package for creating VK bots
Project description
vk_dev
Localizations:
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
pip3 install vk_dev
Example
import vk_dev
api, handler = vk_dev.Auth(
token='token',
group_id=192979547,
v=5.103
)
lp = handler.LongPoll()
## You can create own decorators
@vk_dev.cond.Path('direct')
@vk_dev.cond.Prefix('/', '.')
@lp.message_new()
def reaction(event, pl):
"""
This function will work if
message was sended to direct and
starts at `/` or `.`
"""
## Send response to the interlocutor
api.messages.send(
peer_id=event.object.message.peer_id,
message='Hello there',
random_id=vk_dev.random_id()
)
if __name__ == '__main__':
lp()
Documentation
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
vk_dev-1.0.1.tar.gz
(5.2 kB
view details)
Built Distribution
File details
Details for the file vk_dev-1.0.1.tar.gz
.
File metadata
- Download URL: vk_dev-1.0.1.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9ea50902f431e9acb402170f81532eac3e4b3a230eeaa45211f547700356e6f |
|
MD5 | c79fa5d0b4d90977a3ad61a8e2a3dad6 |
|
BLAKE2b-256 | e1e4b9e940bfd2e006ae02b60fd02b67f8fd08d79b49c95435368550045738d4 |
File details
Details for the file vk_dev-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: vk_dev-1.0.1-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01a84d484eeb1f6e4ba60507f90a991f5af84be479ba48c42ce50f5ac6ce7b91 |
|
MD5 | 889d9e3f51b6906562ab3407ba546fa0 |
|
BLAKE2b-256 | 1b7f858d9e7fb661979e816cc471e7726070f083f95b68286f0ad3e4a1a25921 |