GDAPI is a simple Python Geometry Dash API module.
Project description
GMDAPI
GMDAPI is a simple Python Geometry Dash API module aimed at making easy access functionalities within Python. Please note that this is a beta version, so any bugs encountered should be reported on the GitHub repository.
With the support of a dedicated community, GMDAPI has been able to implement hard to code features, like posting account comments, level comments, user messages, friend requests, and more.
Features
- Post Account Comments: You can post comments on user accounts.
- Post Level Comments: Comment on specific levels within the game.
- Post User Messages: Send messages to other users.
- Post Friend Requests: Send friend requests to other users.
Many more features are planned for future updates.
Installation
Using PyPI
pip install gmdapi-python
Using the Repository
git clone https://github.com/Xytriza/gmdapi-python.git
cd gmdapi-python
pip install .
Examples
Custom Databases
If you use a GDPS you can use it here too!
import gmdapi_py
gmd = gmdapi_py.gmdapi("username", "password", "https://xps.xytriza.com") #for example, this would connect to XPS database instead of Geometry Dash main server database
Posting Account Comments
import gmdapi_py
gmd = gmdapi_py.gmdapi("username", "password")
comment = "Comment to post goes here"
success, response = gmd.post_account_comment(comment)
if success:
print(f"Comment posted with ID #{response}")
else:
print(f"Failed to post comment, server response is {response}")
Posting Level Comments
import gmdapi_py
gmd = gmdapi_py.gmdapi("username", "password")
comment = "Comment to post goes here"
levelid = "LevelID to post comment on"
percent = "Percent gotten on level (0 for none)"
success, response = gmd.post_level_comment(comment, levelid, percent)
if success:
print(f"Comment posted with ID #{response}")
else:
print(f"Failed to post comment, server response is {response}")
Posting User Messages
import gmdapi_py
gmd = gmdapi_py.gmdapi("username", "password")
subject = "Subject of message goes here"
body = "Body of message goes here"
accountid = "Target account id goes here"
success = gmd.post_user_message(subject, body, accountid)
if success:
print(f"Message posted successfully")
else:
print(f"Failed to post message")
Posting User Friend Requests
import gmdapi_py
gmd = gmdapi_py.gmdapi("username", "password")
comment = "Comment of friend request goes here"
accountid = "Target account id goes here"
success = gmd.post_user_friend_request(comment, accountid)
if success:
print(f"Friend request posted successfully")
else:
print(f"Failed to post friend request")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file gmdapi-python-1.0.0b1.tar.gz
.
File metadata
- Download URL: gmdapi-python-1.0.0b1.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60231ecffcc54ad1255498a991890c03a6a2daafad0413db23dd66113debe784 |
|
MD5 | 72893ed23600abdc869b8f1db08db57c |
|
BLAKE2b-256 | e580ed7974d485f1295f7047d7e98de8287ce11bbb9364436fb29c809b6fb56e |
File details
Details for the file gmdapi_python-1.0.0b1-py3-none-any.whl
.
File metadata
- Download URL: gmdapi_python-1.0.0b1-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c08fbdef88a659506853a506ef47a9cea11812b293786664e0e1da4b6c49e98 |
|
MD5 | fa2fd23b403a5edf44e91ebe26e977ad |
|
BLAKE2b-256 | ec9d4f5abe0ecc2fe07932d1d827beed52807c9b1944cfd396e51506992acf5f |