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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
oxrpy-0.3.0-py3-none-any.whl
(2.9 kB
view details)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c64af4735ded8147fab3a2e5f5b511731c6018d343cbd2b53d24b8fcefb92c8
|
|
| MD5 |
e465b18731640e0ecabc6f474ce1e7c9
|
|
| BLAKE2b-256 |
638d26a4b45647c0fe695c4273339f4ad4ab5aece0680d4405d6d97364e1505a
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
94e225bbaeec5b75cd4fd0928b61d5510540f9b4f11839904c9507aceb85cefa
|
|
| MD5 |
e96a4b56b47278fbbb2ed674a6878ab1
|
|
| BLAKE2b-256 |
daa9e3484e2731d5f30d9646830aff8bb36fe48b1b03a46cebe13aba034adc6e
|