Skip to main content

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)

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


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.0.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

sdc_api-0.2.0-py3-none-any.whl (3.5 kB view hashes)

Uploaded Python 3

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