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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: VKSlaves-1.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 38c0014ffb9bbb72cfca30e8c5720ae7d6b7b348714df45f68607b30a9fe285e
MD5 60f5940f0e447b4dadce28b55527da1b
BLAKE2b-256 9c911d23c86e2011af9c8a33f98e29cf62d5fbfad9b2784103f012df4fa5eec8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: VKSlaves-1.0.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6c4b120bf3cfe9f823b28989b919e2d6a8f7a805d120464f6ef388a643e1c0c6
MD5 1dd1166bef8143a7be12f4d41acf2374
BLAKE2b-256 b997fe85a16c4646ea66e8e46b960e425061efad7c546008399ee3cb9b693eda

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