Skip to main content

A Python client for accessing the RBXStats API.

Project description

RBXStats API Client

PyPI version

A Python client for the RBXStats API, providing easy access to a variety of Roblox-related offsets, exploits, game information, and more. This package allows developers to integrate with RBXStats API effortlessly.

Features

  • Retrieve all Roblox offsets in JSON or plain text.
  • Access specific offsets by name or prefix.
  • Fetch camera offsets and game-specific information.
  • Query available exploits and their statuses.
  • Supports various data formats (JSON or plain text).
  • Simple, flexible class-based design.

Installation

Install the package via pip:

pip install rbxstats_api

Usage

Import the client, initialize it with your API key, and use its methods to interact with different RBXStats API endpoints.

Quick Start

from rbxstats_api import RbxStatsClient

# Initialize the client
client = RbxStatsClient(api_key="YOUR_API_KEY")

# Get all offsets in JSON format
all_offsets = client.offsets.get_all()
print(all_offsets)

# Get a specific offset by name in plain text
specific_offset = client.offsets.get_offset_by_name_plain("RenderToEngine")
print(specific_offset)

# Get all camera-related offsets in JSON format
camera_offsets = client.offsets.get_camera()
print(camera_offsets)

# Get a list of all undetected exploits
undetected_exploits = client.exploits.get_undetected()
print(undetected_exploits)

API Reference

Each endpoint is encapsulated in its own class within the RbxStatsClient. Here’s a rundown of available classes and methods.

1. Offsets

Methods to access Roblox offsets.

  • Get all offsets

    client.offsets.get_all()
    

    Returns all offsets in JSON format.

  • Get all offsets in plain text

    client.offsets.get_all_plain()
    

    Returns all offsets in plain text format.

  • Get a specific offset by name

    client.offsets.get_offset_by_name("RenderToEngine")
    

    Returns a single offset in JSON format by name.

  • Get a specific offset by name in plain text

    client.offsets.get_offset_by_name_plain("RenderToEngine")
    
  • Get offsets by prefix

    client.offsets.get_offsets_by_prefix("Camera")
    
  • Get camera-related offsets

    client.offsets.get_camera()
    

    Returns all camera-related offsets in JSON format.

2. Exploits

Methods to get current Roblox exploit data.

  • Get all exploits

    client.exploits.get_all()
    
  • Get Windows exploits

    client.exploits.get_windows()
    
  • Get Mac exploits

    client.exploits.get_mac()
    
  • Get undetected exploits

    client.exploits.get_undetected()
    
  • Get detected exploits

    client.exploits.get_detected()
    
  • Get free exploits

    client.exploits.get_free()
    

3. Versions

Methods to get the latest and future versions of Roblox.

  • Get the latest Roblox version

    client.versions.get_latest()
    

    Returns the latest version information for Windows and Mac in JSON format.

  • Get the future Roblox version

    client.versions.get_future()
    

    Returns the upcoming version information for Windows and Mac in JSON format.

4. Game

Retrieve game-specific information based on game ID.

  • Get game details by ID
    client.game.get_game_by_id(12345)
    
    Replace 12345 with the desired game ID.

Error Handling

API calls that fail will raise an exception with a description of the issue. Make sure to handle exceptions, especially if you’re working with user-provided input or network-dependent environments.

Example:

try:
    offsets = client.offsets.get_all()
except Exception as e:
    print(f"An error occurred: {e}")

Dependencies

This package requires requests to handle HTTP requests. It will be automatically installed as a dependency.

Development

If you’d like to contribute, clone the repository and install the dependencies:

git clone https://github.com/yourusername/rbxstats_api
cd rbxstats_api
pip install -e .

Running Tests

You can add tests in the tests/ directory (not included in this setup). Run tests using pytest:

pytest

License

This project is licensed under the MIT License. See the LICENSE file for details.


This README provides a clear and detailed overview of your package, helping users understand its usage and capabilities. You can replace yourusername with your GitHub username in the links if hosting on GitHub.

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

rbxstats-0.1.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rbxstats-0.1.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file rbxstats-0.1.0.tar.gz.

File metadata

  • Download URL: rbxstats-0.1.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for rbxstats-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2ee9a6ef26fca103655535feb50306a1701c41d86543a818ba232dce500d4dc1
MD5 979248666af07004001adbeed509e7a0
BLAKE2b-256 d42e9c6cc673a03f706434e306085b6d9f0ff986ad9a11716e457c8e319d10d4

See more details on using hashes here.

File details

Details for the file rbxstats-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: rbxstats-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for rbxstats-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 51b48e278d9dba52143f9cd427a04e362e2c77d1411030d5851a98433a08f834
MD5 2ff42a8f1b0988b1db75e674e8e6a64c
BLAKE2b-256 c7e2735bae3fd0a2bfcbc61d86284fe6cb6b27082089b5af95b620443f92ad46

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page