Skip to main content

Asynchronous api wrapper for the game from vk.com called 'slaves'

Project description

VKSlaves

Asynchronous api wrapper for the game from vk.com called "slaves"

Example of usage

import asyncio
from vkslaves import Slaves

slaves_api = Slaves(app_auth="vk_access_token_settings=friends,status&vk_app_id=7794757...")


async def main():
    await slaves_api.start()  # update .me and .slaves
    print(slaves_api.me.balance) # get your balance
    user = await slaves_api.user(id=1) # get info about vk.com/id1
    print(user.master_id) # get id of user's master

asyncio.run(main())

I'm too lazy to write documentation, just look at the names of the functions and docstrings

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

VKSlaves-1.0.1.tar.gz (16.6 kB view details)

Uploaded Source

Built Distribution

VKSlaves-1.0.1-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

File details

Details for the file VKSlaves-1.0.1.tar.gz.

File metadata

  • Download URL: VKSlaves-1.0.1.tar.gz
  • Upload date:
  • Size: 16.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.9.0 pkginfo/1.6.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.6

File hashes

Hashes for VKSlaves-1.0.1.tar.gz
Algorithm Hash digest
SHA256 2e80940d1ebfff4c38ded88a42e9e19e2d57d46d2c17d8cc39ade54e89d845f1
MD5 a18b6edebd79d2ccb3d734a623e5cf9a
BLAKE2b-256 67ae193a7edee5f0cbbf245db429380e8cec699ebde3d5b6ddeca0d52fe4d253

See more details on using hashes here.

File details

Details for the file VKSlaves-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: VKSlaves-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 17.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.9.0 pkginfo/1.6.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.6

File hashes

Hashes for VKSlaves-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7b472e1864dd62cdb88d9f73b79b4bc308fc591cc4619079a9a9d1ee18c8c4cc
MD5 db3d3f156df2c77d97af32319a030fbc
BLAKE2b-256 80c59c83a52380f6c2a7ca20754fb00422efcbf90db38e64c7337209daaefdfb

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