An async wrapper for Server-Discord.Com API
Project description
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')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sdc_api-0.2.1.tar.gz
(3.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sdc_api-0.2.1.tar.gz.
File metadata
- Download URL: sdc_api-0.2.1.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
607004cba799a392703213868998c703b34532a913a260f8bff2f68262d61df5
|
|
| MD5 |
a4c455f1b101a2eac7f6a7649429ef2e
|
|
| BLAKE2b-256 |
e52a298590252a756c65e28d9d2284fcea7c3dc3f4ddb2ab59c31975b7f5b45f
|
File details
Details for the file sdc_api-0.2.1-py3-none-any.whl.
File metadata
- Download URL: sdc_api-0.2.1-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9f4cf83aeeb6ca9aa89f98224b4b8d0e6921a6b67dd9cbc897a179d7329e713
|
|
| MD5 |
86032acc60bc832d5f2861e71bce3e85
|
|
| BLAKE2b-256 |
d4a10f1fa2d87caa5480a1111aae5fc67b89a8661d57299130bc441d9ddfe564
|