Skip to main content

An API wrapper for Geometry Dash written in Python.

Project description

gd.py

License Version Downloads Discord

Documentation Check Test Coverage

An API wrapper for Geometry Dash written in Python.

Installing

Python 3.7 or above is required.

pip

Installing the library with pip is quite simple:

$ pip install gd.py

Alternatively, the library can be installed from source:

$ git clone https://github.com/nekitdev/gd.py.git
$ cd gd.py
$ python -m pip install .

poetry

You can add gd.py as a dependency with the following command:

$ poetry add gd.py

Or by directly specifying it in the configuration like so:

[tool.poetry.dependencies]
"gd.py" = "^1.0.0"

Alternatively, you can add it directly from the source:

[tool.poetry.dependencies."gd.py"]
git = "https://github.com/nekitdev/gd.py.git"

Examples

Fetching

# file.py

import asyncio

import gd

SONG_ID = 1081309
SONG = "{} by {} (ID: {}, size: {} MB)"


async def main() -> None:
    client = gd.Client()

    song = await client.get_song(SONG_ID)

    print(SONG.format(song.name, song.artist.name, song.id, song.size))


asyncio.run(main())
$ python file.py
PANDA EYES - BROKEN by PandaEyesOfficial (ID: 1081309, size: 9.71 MB)

Listening

import gd

client = gd.Client()

DAILY = "new daily! {daily.name} by {daily.creator.name} (ID: {daily.id})"


@client.event
async def on_daily(daily: gd.Level) -> None:
    print(DAILY.format(daily=daily))


client.listen_for_daily()

client.create_controller().run()

Documentation

You can find the documentation here.

Support

If you need support with the library, you can send an email or refer to the official Discord server.

Changelog

You can find the changelog here.

Security Policy

You can find the Security Policy of gd.py here.

Contributing

If you are interested in contributing to gd.py, make sure to take a look at the Contributing Guide, as well as the Code of Conduct.

License

gd.py is licensed under the MIT License terms. See License for details.

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-1.0.0.tar.gz (5.4 MB view details)

Uploaded Source

Built Distributions

gd_py-1.0.0-cp311-cp311-win_amd64.whl (5.6 MB view details)

Uploaded CPython 3.11 Windows x86-64

gd_py-1.0.0-cp311-cp311-manylinux_2_35_x86_64.whl (6.5 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.35+ x86-64

gd_py-1.0.0-cp311-cp311-macosx_12_0_x86_64.whl (5.7 MB view details)

Uploaded CPython 3.11 macOS 12.0+ x86-64

gd_py-1.0.0-cp310-cp310-win_amd64.whl (5.6 MB view details)

Uploaded CPython 3.10 Windows x86-64

gd_py-1.0.0-cp310-cp310-manylinux_2_35_x86_64.whl (6.5 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.35+ x86-64

gd_py-1.0.0-cp310-cp310-macosx_12_0_x86_64.whl (5.7 MB view details)

Uploaded CPython 3.10 macOS 12.0+ x86-64

gd_py-1.0.0-cp39-cp39-win_amd64.whl (5.6 MB view details)

Uploaded CPython 3.9 Windows x86-64

gd_py-1.0.0-cp39-cp39-manylinux_2_35_x86_64.whl (6.5 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.35+ x86-64

gd_py-1.0.0-cp39-cp39-macosx_12_0_x86_64.whl (5.7 MB view details)

Uploaded CPython 3.9 macOS 12.0+ x86-64

gd_py-1.0.0-cp38-cp38-win_amd64.whl (5.6 MB view details)

Uploaded CPython 3.8 Windows x86-64

gd_py-1.0.0-cp38-cp38-manylinux_2_35_x86_64.whl (6.5 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.35+ x86-64

gd_py-1.0.0-cp38-cp38-macosx_12_0_x86_64.whl (5.7 MB view details)

Uploaded CPython 3.8 macOS 12.0+ x86-64

gd_py-1.0.0-cp37-cp37m-win_amd64.whl (5.6 MB view details)

Uploaded CPython 3.7m Windows x86-64

gd_py-1.0.0-cp37-cp37m-manylinux_2_35_x86_64.whl (6.5 MB view details)

Uploaded CPython 3.7m manylinux: glibc 2.35+ x86-64

gd_py-1.0.0-cp37-cp37m-macosx_12_0_x86_64.whl (5.7 MB view details)

Uploaded CPython 3.7m macOS 12.0+ x86-64

File details

Details for the file gd_py-1.0.0.tar.gz.

File metadata

  • Download URL: gd_py-1.0.0.tar.gz
  • Upload date:
  • Size: 5.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.4 Linux/5.15.0-1040-azure

File hashes

Hashes for gd_py-1.0.0.tar.gz
Algorithm Hash digest
SHA256 564216dbc0a2f69aebd16d1b3651244ddd33adb726e7946f055caa520a14ceff
MD5 179a2e028ce14dc80d5a92cdd6f14346
BLAKE2b-256 6a51460b6bd6cdbf2deb1afc12ee8975e39928c18f4aef8bee2e8f3782c4ae64

See more details on using hashes here.

File details

Details for the file gd_py-1.0.0-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: gd_py-1.0.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 5.6 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.4 Windows/10

File hashes

Hashes for gd_py-1.0.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0c9ef2841c18da9a3f8cc6525e42b432c79d28bea9c4979cf262c5ab6ec93c9c
MD5 4296b842fb2e99394da8eae37c0f1319
BLAKE2b-256 9c0c404aa0053877bdff46dd17b800cfe512cd05fe1f2e77e845aa706810cd07

See more details on using hashes here.

File details

Details for the file gd_py-1.0.0-cp311-cp311-manylinux_2_35_x86_64.whl.

File metadata

  • Download URL: gd_py-1.0.0-cp311-cp311-manylinux_2_35_x86_64.whl
  • Upload date:
  • Size: 6.5 MB
  • Tags: CPython 3.11, manylinux: glibc 2.35+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.4 Linux/5.15.0-1040-azure

File hashes

Hashes for gd_py-1.0.0-cp311-cp311-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 78b27d89bfbc608020c62ecea1f700640d738ae31bc791559bb7b661656c845e
MD5 db2b3e61c9134e1ff14ec8866228a38a
BLAKE2b-256 010de08a28c2a491daa2b1ba5841c79026be4af08c1e52b2f4443a48ecde06f2

See more details on using hashes here.

File details

Details for the file gd_py-1.0.0-cp311-cp311-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for gd_py-1.0.0-cp311-cp311-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 5cf6cd6c696f539bf4ea98a1d37206199c6c8e60cc51706877f97c48de5affab
MD5 9a54088dfd792d2f511a67216f711461
BLAKE2b-256 218cfc1a6cc7da7bb12ab0e79163cdb3232de89c972f54066072a30bac1858a3

See more details on using hashes here.

File details

Details for the file gd_py-1.0.0-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: gd_py-1.0.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 5.6 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.11 Windows/10

File hashes

Hashes for gd_py-1.0.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d4ba65ec8da69b613c1d474e17470db0615a2a372415d694608f83e4e4927919
MD5 9ea0646ae9c8684b71be710cff3d6ffc
BLAKE2b-256 756f7fbbc07cd9c2f2740ad5d0b3214acd4190b3b17d7bb9f024caadaea1d37e

See more details on using hashes here.

File details

Details for the file gd_py-1.0.0-cp310-cp310-manylinux_2_35_x86_64.whl.

File metadata

  • Download URL: gd_py-1.0.0-cp310-cp310-manylinux_2_35_x86_64.whl
  • Upload date:
  • Size: 6.5 MB
  • Tags: CPython 3.10, manylinux: glibc 2.35+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.12 Linux/5.15.0-1040-azure

File hashes

Hashes for gd_py-1.0.0-cp310-cp310-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 60c6dbbd96fe23b8018b21b21bccd1bec2fd7fac617601b377186db6783d2f5a
MD5 e15a1ef3c5f2297de4299dc2db1d3190
BLAKE2b-256 434cb04f6e4f8d42032072c63d1a8f69b358376119cdde0a760ca62e36693830

See more details on using hashes here.

File details

Details for the file gd_py-1.0.0-cp310-cp310-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for gd_py-1.0.0-cp310-cp310-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 7851a065875353390ea384dd85b67255477d7d26253c46a8ca409850e38d5950
MD5 4e98cf63fa4abe3a6ac934308f93ae7e
BLAKE2b-256 42d37ad27e6ddf9a52e6675db02affd08fb31cf6eb7dd55b07a5c51ee64ca83b

See more details on using hashes here.

File details

Details for the file gd_py-1.0.0-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: gd_py-1.0.0-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 5.6 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.9.13 Windows/10

File hashes

Hashes for gd_py-1.0.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 6adef4f34f4746a4cce3b18e76d134c150284f038b43e81d377291eadda8cc37
MD5 2bedf5e5e0c623d10ab32ce4fe8a1fcf
BLAKE2b-256 a512ab450b20e6cf8f35c69e632fa3ec6964d45cc47c89178bc04232e90f8dac

See more details on using hashes here.

File details

Details for the file gd_py-1.0.0-cp39-cp39-manylinux_2_35_x86_64.whl.

File metadata

  • Download URL: gd_py-1.0.0-cp39-cp39-manylinux_2_35_x86_64.whl
  • Upload date:
  • Size: 6.5 MB
  • Tags: CPython 3.9, manylinux: glibc 2.35+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.9.17 Linux/5.15.0-1040-azure

File hashes

Hashes for gd_py-1.0.0-cp39-cp39-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 c8012c3a6900f63166e0a73cdab4d9e1bb7f2f5a46c09dd6307c0f7b4d46f65a
MD5 ea6e4c03e579b6b51065c05e1fdc2dae
BLAKE2b-256 88a8b54d3a17002f822f392c956551d057e2ed77787f0e1ccce77e692b6ecb69

See more details on using hashes here.

File details

Details for the file gd_py-1.0.0-cp39-cp39-macosx_12_0_x86_64.whl.

File metadata

  • Download URL: gd_py-1.0.0-cp39-cp39-macosx_12_0_x86_64.whl
  • Upload date:
  • Size: 5.7 MB
  • Tags: CPython 3.9, macOS 12.0+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.9.17 Darwin/21.6.0

File hashes

Hashes for gd_py-1.0.0-cp39-cp39-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 ef680ecd2d92f91d1a08baeb8d740603f77abd48c3a5baec6e5210a15143d842
MD5 7fa8821cbc6812b3f04ba192d80cf1ec
BLAKE2b-256 32baa7c76d7a2c21c9ee5d0c79e7a649c7cc3f07d191ec1d5b787b9414a82224

See more details on using hashes here.

File details

Details for the file gd_py-1.0.0-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: gd_py-1.0.0-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 5.6 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.8.10 Windows/10

File hashes

Hashes for gd_py-1.0.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 6d2e22dfe00b6177d00483b7b78402d9154bbe8009dd832022ba9e78bd5f5ac5
MD5 c7cac05c27a6cf8d19f7248cdfcfcf8b
BLAKE2b-256 587cd7717d72f64c4c5ffc2c264fbcdc2ea07ece920da6af6c984589641f7ce2

See more details on using hashes here.

File details

Details for the file gd_py-1.0.0-cp38-cp38-manylinux_2_35_x86_64.whl.

File metadata

  • Download URL: gd_py-1.0.0-cp38-cp38-manylinux_2_35_x86_64.whl
  • Upload date:
  • Size: 6.5 MB
  • Tags: CPython 3.8, manylinux: glibc 2.35+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.8.17 Linux/5.15.0-1040-azure

File hashes

Hashes for gd_py-1.0.0-cp38-cp38-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 1fa94b739986a9ec2d1d372bb5e4572e3712a45a5be2d6e7c47585357b6f587f
MD5 7971cd608a235165ed332a7387c8c267
BLAKE2b-256 d053cb16432a6b08e99f2868a37a6aeb3d578508eba3666070e1b09bdfcb36e1

See more details on using hashes here.

File details

Details for the file gd_py-1.0.0-cp38-cp38-macosx_12_0_x86_64.whl.

File metadata

  • Download URL: gd_py-1.0.0-cp38-cp38-macosx_12_0_x86_64.whl
  • Upload date:
  • Size: 5.7 MB
  • Tags: CPython 3.8, macOS 12.0+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.8.17 Darwin/21.6.0

File hashes

Hashes for gd_py-1.0.0-cp38-cp38-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 07d9dfb53de502b941e5e1bb6e449aa8af3f6f3f7319350c509b110f3e03ec09
MD5 43e03ceae3361e842a3fe71835c1710f
BLAKE2b-256 9c8f3ac7ac286b4b5c303552dd9ac54330d8987cb0d4e56a936c2f85f157b1b4

See more details on using hashes here.

File details

Details for the file gd_py-1.0.0-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: gd_py-1.0.0-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 5.6 MB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.7.9 Windows/10

File hashes

Hashes for gd_py-1.0.0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 fc20a73f7bfd8515dfa160755452a0f3fe072373ce8641f9f7918b8c7a142056
MD5 28210aae106a9784fa1075a742ccc1fe
BLAKE2b-256 1585bd29dc0ae93734c4bebc13dcc8c7c46399dc6d3456112bc3b595dd2a4726

See more details on using hashes here.

File details

Details for the file gd_py-1.0.0-cp37-cp37m-manylinux_2_35_x86_64.whl.

File metadata

  • Download URL: gd_py-1.0.0-cp37-cp37m-manylinux_2_35_x86_64.whl
  • Upload date:
  • Size: 6.5 MB
  • Tags: CPython 3.7m, manylinux: glibc 2.35+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.7.17 Linux/5.15.0-1040-azure

File hashes

Hashes for gd_py-1.0.0-cp37-cp37m-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 482a276c806aa5046d5dc14f6ab5252e5ff97ebca07c69c0f9925e34e08c54a8
MD5 37079e35d9677a1ee6e035a87e574b59
BLAKE2b-256 1a5f5738b62331d11c86f4be75a4316e30e9f2f534b5b5ee21b6395b4251abfc

See more details on using hashes here.

File details

Details for the file gd_py-1.0.0-cp37-cp37m-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for gd_py-1.0.0-cp37-cp37m-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 6b7b383cb11f428c2a1ad3e709cdd86f473511990db0d6cf2cda4e00ae090495
MD5 2d15acde54c2f78c3c385ea4e5a95b9a
BLAKE2b-256 646379c95e6421211ba570d6982f2749a8ba6f0075593172ded807e235875d35

See more details on using hashes here.

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