Skip to main content

Making Geometry Dash tool development easier in Python.

Project description

ObsidianPy (obsn)

ObsidianPy is a library for Python that provides easier access to Geometry Dash, Encryptions relating to Geometry Dash functions and other utilities. Made mainly for obsidian tools.
https://sevenworks.eu.org/obsidian

Installation

You can install the package via pip:

pip install obsn

Usage

Importing the Library

import obsn as obsidian

Functions

Encryption/Decryption and Generation

  • xor_cipher(data, key)

    Encrypt something with XOR.

    x = obsidian.xor_cipher("hello there", "key")
    
  • base64_encode(string)

    Encode a string in Base64.

    b64 = obsidian.base64_encode("hello")
    
  • base64_decode(encoded_string)

    Decode a Base64 string.

    b64d = obsidian.base64_decode(b64)
    
  • gjp_encrypt(data)

    Encrypt data using GJP (Geometry Jump Password) encryption.

    password = obsidian.gjp_encrypt("data")
    
  • gjp_decrypt(encrypted_data)

    Decrypt data using GJP decryption.

    passwordyay = obsidian.gjp_decrypt(password)
    
  • generate_udid()

    Generate a UDID for server requests.

    udid = obsidian.generate_udid()
    
  • generate_rs(n)

    Generate a random string, RobTops security in a nutshell.

    gd_rs = obsidian.generate_rs(8)
    
  • generate_uuid(parts=[8, 4, 4, 4, 10])

    Generate a UUID for server requests.

    uuid = obsidian.generate_uuid()
    
  • generate_upload_seed(data, chars=50)

    Generate an upload seed.

    upload_seed = obsidian.generate_upload_seed("some data")
    
  • generate_leaderboard_seed(jumps, percentage, seconds, has_played=True)

    Generate a leaderboard seed.

    leaderboard_seed = obsidian.generate_leaderboard_seed(10, 80, 120)
    
  • generate_chk(values=[], key="", salt="")

    Generate a fancy CHK.

    chk = obsidian.generate_chk([1, 2, 3], key="key", salt="salt")
    

HTTP Requests

  • gd(endpoint, **data)

    Send a POST request to the Geometry Dash servers. ("using accounts/registerGJAccount.php" is valid too)

    response = obsidian.gd("getGJGirlfriends24", user="Sevenworks")
    
  • gdbrowser(endpoint, value, **kwargs)

    Send a GET request to retrive something from GDBrowser API.

    response = obsidian.gdbrowser("search", "*", count=10)
    
  • gd2json(response)

    Convert a Geometry Dash server response (key:value:key:value) to JSON format, for nerds only.

    response_json = obsidian.gd_json(response)
    

Other

  • toast(title, content, timeout=3)

    Display a toast notification on Windows.

    obsidian.toast("My Tool", "yo wassup", timeout=5)
    

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

obsn-1.0.1.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

obsn-1.0.1-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file obsn-1.0.1.tar.gz.

File metadata

  • Download URL: obsn-1.0.1.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.0

File hashes

Hashes for obsn-1.0.1.tar.gz
Algorithm Hash digest
SHA256 32a12869407b1fdeefbcd94b45ce2b603ea9f8d4ef8993a4c2be3fa43530ddc0
MD5 4b3e95c9c21cb10a0f764f0b2dc7e3a9
BLAKE2b-256 0b7dfa7515b95ec8bcd434c0258bb09782bfdc0067bc2fa45f1d3774a31a63ac

See more details on using hashes here.

File details

Details for the file obsn-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: obsn-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.0

File hashes

Hashes for obsn-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1564fbd43a1744a804b846fd23e14414aa0e5af246882b4df1e48f1b16da4f50
MD5 6eeb93dca2c36dc04a610d3ccb7b5e7c
BLAKE2b-256 9f77c04659d8c5423bed7f9860cb4aaf11afe7d63693a88f756159cf8c2babe6

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