• Stars
    star
    120
  • Rank 295,983 (Top 6 %)
  • Language
    Python
  • License
    MIT License
  • Created over 5 years ago
  • Updated 5 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

An API Wrapper for Geometry Dash written in Python.

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.1"

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.

More Repositories

1

iters

Composable external iteration.
Python
19
star
2

braces.py

Braces for Python Programming Language.
Python
19
star
3

enums.py

Enhanced Enumerations for Python.
Python
7
star
4

versions

Parsing, inspecting and specifying versions.
Python
6
star
5

gd.platformer

Geometry Dash Platformer Mod, written in Python.
Python
5
star
6

entrypoint

Decorated functions as entry points.
Python
5
star
7

changelogging

Building changelogs from fragments.
Rust
4
star
8

gd.rpc

Geometry Dash Discord Rich Presence.
Python
4
star
9

mai

MAI lections and related documents.
4
star
10

gd.share

Sharing Geometry Dash levels through CLI.
Python
3
star
11

wraps

Meaningful and safe wrapping types.
Python
3
star
12

orderings

Ordering enumeration and protocols.
Python
2
star
13

typing-aliases

Various type aliases.
Python
2
star
14

async-extensions

Asynchronous extensions.
Python
2
star
15

named

Named types.
Python
2
star
16

enum-extensions

Enhanced enumerations for Python.
Python
2
star
17

advent-of-code

Advent of Code Solutions.
Python
2
star
18

nekitdev

The repository for the GitHub Profile.
2
star
19

nekit.dev

nekit.dev - Personal website written in Python.
Python
2
star
20

colors-core

Core color functionality.
Python
1
star
21

wraps-parse

Parsing feature of wraps.
Python
1
star
22

bulma.py

Small Compiler for Bulma and Extensions.
Python
1
star
23

versions-core

Parsing, inspecting and specifying versions (core).
1
star
24

spotify.py

An API wrapper for Spotify written in Python.
1
star
25

nekit.heroku

Small setup to run my stuff on Heroku.
Python
1
star
26

aoc-core

Advent of Code in Python.
Python
1
star
27

mixed-methods

Mixed methods.
Python
1
star
28

gd.ps

Geometry Dash Private Server written in Python.
Python
1
star
29

paths

Cross-platform path manipulation.
Python
1
star
30

github.py

An API wrapper for GitHub written in Python.
1
star
31

solus

Singleton types.
Python
1
star
32

funcs

Functional programming in Python.
Python
1
star
33

2048

Simple, optimized and fast 2048 game in C.
C
1
star
34

gd.graph

Plotting Graphs in Geometry Dash!
Python
1
star
35

wraps-futures-core

Core functionality of wraps-futures.
Python
1
star
36

gd

Geometry Dash API wrapper written in Rust.
1
star