Skip to main content

Python wrapper for the Oxford RP API

Project description

oxrpy

A Python wrapper for the Oxford RP API.

Installation

Install from PyPI:

pip install oxrpy

Or from source:

pip install -r requirements.txt

Usage

from oxrpy import OxfordAPI

# Initialize with your server ID and key
api = OxfordAPI(server_id="your_server_id", server_key="your_server_key")

# Get server information
server_info = api.get_server()
print(server_info)

# Get current players
players = api.get_players()
print(players)

# Get queue
queue = api.get_queue()
print(queue)

# Get bans
bans = api.get_bans()
print(bans)

API Endpoints

  • get_server(): Returns general server information.
  • get_players(): Returns list of current players.
  • get_queue(): Returns the reserved server queue.
  • get_bans(): Returns active bans.

All methods return the JSON response from the API.

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

oxrpy-0.1.0.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

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

oxrpy-0.1.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: oxrpy-0.1.0.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for oxrpy-0.1.0.tar.gz
Algorithm Hash digest
SHA256 67fa8e90a72ffb0f800e959ade98666b4872799097f97233e8863e7b2e42f543
MD5 770e5b499b3e9843ac1d9df1c9a49df4
BLAKE2b-256 2235d7eccb68aa9578eebcca438b5db5bba5f563c8be08823e767c3750578642

See more details on using hashes here.

File details

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

File metadata

  • Download URL: oxrpy-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for oxrpy-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4b1550cb654612d7f3f1f4c6bb733f1da0a8b9f3ae1f5ddf0f2c8d0dfc1b838e
MD5 3d3a471f9b51ffbba6f8372830c0282b
BLAKE2b-256 ba751f078313b215e7f1ea349ae232695d609b83878db8f4ca938638a6109ec6

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