NOTICE! This fork modifies the lib for provide async support. The support was achieved by replacing requests lib with httpx
This is a vk.com (the largest Russian social network) python API wrapper.
The goal is to support all API methods (current and future) that can be accessed from server.
import asyncio
import vk
api = vk.API(access_token='...')
async def main():
result = await api.users.get(user_ids=1)
print(result)
asyncio.run(main())
[{'id': 1, 'first_name': 'Pavel', 'last_name': 'Durov', ... }]
See official VK documentation for detailed API guide.
Read full documentation on Read the Docs