Skip to main content

vk.com API async Python wrapper. Only Python 3.4+

Project description

=========================
vk.com API async Python wrapper
=========================

AsyncVk project is a fork of pretty library 'vk' (https://github.com/dimka665/vk) by Dmitry Voronin (https://github.com/dimka665)

This is a vk.com (the largest Russian social network) async python API wrapper.
The goal is to support all API methods (current and future)
that can be accessed from server.

Quickstart
==========

Install
-------

.. code:: bash

pip install AsyncVk

Usage
-----

.. code:: python

>>> import asyncio
>>> import AsyncVk
>>>
>>> @asyncio.coroutine
>>> def some_method():
>>> vkapi = AsyncVk.API()
>>> # vkapi = AsyncVk.API(user_login='user@gmail.com', user_password='******', app_id='123456')
>>> # vkapi = AsyncVk.API(access_token='********************')
>>> time = yield from vkapi.getServerTime()
>>> print(time)
>>>
>>> loop = asyncio.get_event_loop()
>>> loop.run_until_complete(some_method())
>>> loop.close()


See https://vk.com/dev/methods for detailed API guide.

More info
=========

`Read full documentation <http://asyncvk.readthedocs.org>`_

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

AsyncVk-1.0-alpha.tar.gz (4.3 kB view hashes)

Uploaded Source

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