Skip to main content

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_python

gmd = gmdapi_python.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_python

gmd = gmdapi_python.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_python

gmd = gmdapi_python.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_python

gmd = gmdapi_python.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_python

gmd = gmdapi_python.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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gmdapi-python-1.0.0b2.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

gmdapi_python-1.0.0b2-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file gmdapi-python-1.0.0b2.tar.gz.

File metadata

  • Download URL: gmdapi-python-1.0.0b2.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

Hashes for gmdapi-python-1.0.0b2.tar.gz
Algorithm Hash digest
SHA256 ba78dff0d34d1dd5e17de3c705c2be4df4f5c01a6faffa64aa2c8d23c7ca437d
MD5 6658edf8f6f05157d0a7183ac0c10112
BLAKE2b-256 eedd4e8e4b35f3955a8df94e2f56ed2be9626a397607ce091dfa894451014e59

See more details on using hashes here.

File details

Details for the file gmdapi_python-1.0.0b2-py3-none-any.whl.

File metadata

File hashes

Hashes for gmdapi_python-1.0.0b2-py3-none-any.whl
Algorithm Hash digest
SHA256 16c61655645863bcff8ee0864d70ca13e5225015599728a2469e01334cfea257
MD5 6556daa3081b9a570e31563a34628a71
BLAKE2b-256 cbe0ad354a507706b8a7a9de6c2c5831618156bb3b83446ef723a9e6d1af4709

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