sdc-api.py
Installation
pip install sdc-api
Quick Example
.. code:: py
from sdc_api import SDC
sdc = SDC('dKey')
# Get guild, where you generated dKey
guild = await sdc.get_guild()
print(guild)
# Get guild's place
place = await guild.place()
print("Place of server in SDC is %d" % place)
Usage
Get Guild
.. code:: py
guild = await sdc.get_guild('id')
Get Guild Votes
.. code:: py
guild = Guild(id='id')
votes = await guild.get_votes()
.. code:: py
votes = await sdc.get_guild_votes('id')
Get Guild Place
.. code:: py
place = await sdc.get_guild_place('id')
print("Place of server in SDC is %d" % place)
.. code:: py
guild = await sdc.get_guild('id')
place = await guild.place()
print("Place of server in SDC is %d" % place)
Get User's Votes
.. code:: py
user = User(id='id')
votes = await user.get_votes()
.. code:: py
votes = await sdc.get_user_votes('id')
Release files for sdc-api 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sdc_api-0.2.1.tar.gz | 3.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sdc_api-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.6 kB
Release files / sdc_api-0.2.1.tar.gz
| Download URL | sdc_api-0.2.1.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
607004cba799a392703213868998c703b34532a913a260f8bff2f68262d61df5
|
|
BLAKE2b-256 checksum How to use checksums |
e52a298590252a756c65e28d9d2284fcea7c3dc3f4ddb2ab59c31975b7f5b45f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3
|
Release files / sdc_api-0.2.1-py3-none-any.whl
| Download URL | sdc_api-0.2.1-py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e9f4cf83aeeb6ca9aa89f98224b4b8d0e6921a6b67dd9cbc897a179d7329e713
|
|
BLAKE2b-256 checksum How to use checksums |
d4a10f1fa2d87caa5480a1111aae5fc67b89a8661d57299130bc441d9ddfe564
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3
|