Skip to main content

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)

Source distribution for sdc-api 0.2.1
File Size Uploaded
sdc_api-0.2.1.tar.gz 3.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sdc-api 0.2.1
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page