Skip to main content

Python wrapper for the Oxford Response 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.3.0.tar.gz (2.5 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.3.0-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for oxrpy-0.3.0.tar.gz
Algorithm Hash digest
SHA256 6c64af4735ded8147fab3a2e5f5b511731c6018d343cbd2b53d24b8fcefb92c8
MD5 e465b18731640e0ecabc6f474ce1e7c9
BLAKE2b-256 638d26a4b45647c0fe695c4273339f4ad4ab5aece0680d4405d6d97364e1505a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: oxrpy-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 2.9 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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 94e225bbaeec5b75cd4fd0928b61d5510540f9b4f11839904c9507aceb85cefa
MD5 e96a4b56b47278fbbb2ed674a6878ab1
BLAKE2b-256 daa9e3484e2731d5f30d9646830aff8bb36fe48b1b03a46cebe13aba034adc6e

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