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 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.2.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: obsn-1.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 49d752bce3a4fcd7cac2aac8fb403e668ee041abb0d9ccb4b4b3024e514a4671
MD5 925160c2a17e540021a6ca90561f6d83
BLAKE2b-256 44843c4886da21579585f75d916b5ff57df03946f955ac7d239fb0d91330427e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: obsn-1.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 669375f55f754a4f712bbec4a3b8192f44fcaaa2a4277e8885df3983672bcf31
MD5 ee9b97e429a928671623dde7b6c4da41
BLAKE2b-256 47a2ac53fe21dbb1d0aa61dd42a60f23a0fe4b3f557d1fcae022b331dd8ab1a1

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