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

Uploaded Source

Built Distribution

vk_dev-3.0.1-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vk_dev-3.0.1.tar.gz
  • Upload date:
  • Size: 9.9 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.1.tar.gz
Algorithm Hash digest
SHA256 c303a65221f0dcfd9bc6c367ace77fd477dab17dd05d7145ea18c4eaa9212fd0
MD5 4680b654cff9856fdafc45c04c0fba47
BLAKE2b-256 e77f5b8acc7465fb36bd1d3ac6ea3f282618602d4f284c3b98dd8579cf6570d7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vk_dev-3.0.1-py3-none-any.whl
  • Upload date:
  • Size: 16.6 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6e1d3027efb756052c3882ac8ed74375dd9b04b1809774f91f689cd7a556d81a
MD5 34ece3b5662db2f7c44a20ec6da31a03
BLAKE2b-256 76de430bbb5a9209fce6f57cc8dba812b1aa1350437e4d749ad7da576fd311db

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