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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: obsn-1.0.0.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.0.tar.gz
Algorithm Hash digest
SHA256 b29b78e3907761515775d4e07adad9cec667a45e008a26d746be2b42e2e9df18
MD5 5fc6edd6c3b4ecb69524b685f7fcb66c
BLAKE2b-256 a486101486aead0f18b766720d238e00195e00cd99c2934b2aab6cf85c855a95

See more details on using hashes here.

File details

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

File metadata

  • Download URL: obsn-1.0.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 04965f2c0c7fbb8c6ec90c28dc0b6f7fe8fae6be8c51dd67e56d4f8f0030ac07
MD5 871d4f4b01c17709c648933929352a6a
BLAKE2b-256 7b20ad570b695e138f811f1115b064e2a9cd7c3a965ab4c13359c8d915d3af9a

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