Skip to main content

A Geometry Dash API wrapper for Python

Project description

Project License Build Status PyPI Library Version Required Python Versions Project Development Status Library Downloads/Week Documentation Status Code Quality [Codacy] Code Coverage Patreon Page [Support]

gd.py is a library that provides its users ability to interact with servers of Geometry Dash.

Key Features

  • Modern Pythonic API

  • High coverage of the supported Geometry Dash API

  • Using async and await syntax

Installing

Python 3.5.3 or higher is required

To install the library, you can just run the following command:

# Linux/OS X
python3 -m pip install -U gd.py

# Windows
py -3 -m pip install -U gd.py

You can also install optional aioconsole package, which can be used to run async functions in repl:

# Linux/OS X
python3 -m pip install -U gd.py[console]

# Windows
py -3 -m pip install -U gd.py[console]

gd.py also provides an optional Cython extension to speed up its parser functions in gd.api folder, so make sure that you have Cython and C++ Build Tools installed.

To install the developer version, run these commands:

$ git clone https://github.com/NeKitDS/gd.py
$ cd gd.py
$ python3 -m pip install -U .[dev]

Quick example

Below is an example of fetching a song by its ID.

import gd

client = gd.Client()

async def test():
    song = await client.get_song(633206)
    print(song.name)

client.run(test())

# OUTPUT: Random Song 01

You can find more examples in examples directory.

Credits

Thanks to Alex1304 for inspiring the creation of this library.

Credits to Rapptz and discord.py library developers; tasks package in discord.py is a base for tasks.py file.

Authors

This project is mainly developed by NeKitDS, with help of blue. Big thanks to cos8o and SMJS for helping to make several requests. Also thanks to cos8o again for developing GDCrypto library, which was used as a base for crypto package.

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

gd.py-0.10.3.tar.gz (150.4 kB view details)

Uploaded Source

File details

Details for the file gd.py-0.10.3.tar.gz.

File metadata

  • Download URL: gd.py-0.10.3.tar.gz
  • Upload date:
  • Size: 150.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

File hashes

Hashes for gd.py-0.10.3.tar.gz
Algorithm Hash digest
SHA256 43c49bcf86806a400c449a82f61985509d336bbe56d2bd1fad3b4775ab2812ec
MD5 269a52661520ee3f839fcf265de2edd7
BLAKE2b-256 ba6879ab0edb690590252ea1f57c01204d30bd607f6775c1e2d7ab3d8c063f53

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page