Skip to main content

Package for creating VK bots

Project description

vk_dev

PyPI version Downloads

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


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-3.0.0.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

vk_dev-3.0.0-py3-none-any.whl (16.7 kB view details)

Uploaded Python 3

File details

Details for the file vk_dev-3.0.0.tar.gz.

File metadata

  • Download URL: vk_dev-3.0.0.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for vk_dev-3.0.0.tar.gz
Algorithm Hash digest
SHA256 60b7dccb3e993403019ff3cc4d02d261da69dd068ef02335489a465e3e2191fd
MD5 03ced0f7e5709ebefbc71cb6f799c8e6
BLAKE2b-256 9726458ad6b3f4ce7322f73358a3fe8ccfb35522217764a95ff7c5422e879852

See more details on using hashes here.

File details

Details for the file vk_dev-3.0.0-py3-none-any.whl.

File metadata

  • Download URL: vk_dev-3.0.0-py3-none-any.whl
  • Upload date:
  • Size: 16.7 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/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for vk_dev-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d2934fbec6be56b659d5ebd357cab8d5ab4199b02dda7c6f95b14110d7b0da12
MD5 9671d44a19e60bde09912a6cd56a7f37
BLAKE2b-256 69160207421e7c11c17138ff82187242d7d58518e5a195209f60220035ac9943

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page