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

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 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/Jermy-tech/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.

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.1.tar.gz (4.8 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.1-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for rbxstats-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7f3bbd2bfdfc5235e16e459ade0cb2ab22bb260197004fca37c08c430cd5f08f
MD5 32d74d785851a37036e41f78b3d5d42c
BLAKE2b-256 f78d4cf426b8cafa95fc2d8e12a61db1ab3162beaec58d82828fe5271bf11956

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for rbxstats-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d370cde9f51e12b1c9a5ce3ca5f5fdf353a644773eb513499a664092e326d4ad
MD5 2066ef923f249002f2612b07b038274b
BLAKE2b-256 d9cc5d43e2ad5080eeac34af3234e314d4e1aed97b968637814823b2a47fddd6

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