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 = 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
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-2.1.4.tar.gz
(7.4 kB
view details)
Built Distribution
vk_dev-2.1.4-py3-none-any.whl
(10.2 kB
view details)
File details
Details for the file vk_dev-2.1.4.tar.gz
.
File metadata
- Download URL: vk_dev-2.1.4.tar.gz
- Upload date:
- Size: 7.4 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 | f6ccfbf1f0079040bcc10d46a78be9c8d833f949a5e887b971250a34190daa8d |
|
MD5 | 093b3e4cbec34b7c0ec408c9f56d88be |
|
BLAKE2b-256 | 262719f795a74f779b263b60b2dcac274bb404574f4cdef7598343f8ab914cad |
File details
Details for the file vk_dev-2.1.4-py3-none-any.whl
.
File metadata
- Download URL: vk_dev-2.1.4-py3-none-any.whl
- Upload date:
- Size: 10.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 | acdd5363edef1f10fedd2aa3b0fb3e01aa1a376895d68abbd5734096393c6f86 |
|
MD5 | f5bf4c07c7ae674990a61a2416235549 |
|
BLAKE2b-256 | 2e1e3b2f3d1418fbaa1415f43c570476f5c021176a145d31d72c127b446d21ae |