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.2.0.tar.gz
(2.7 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.2.0-py3-none-any.whl
(3.1 kB
view details)
File details
Details for the file oxrpy-0.2.0.tar.gz.
File metadata
- Download URL: oxrpy-0.2.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4af62fd5df80233588613e1ec1bf6194b9d6888fd24de331168886a5d5ddf1c9
|
|
| MD5 |
3f16dd8cec5a7d8f5b7086c8c51bf5dc
|
|
| BLAKE2b-256 |
0025d208db3339c5c2001f5b27ab7f944ba2b4470814a07294128ffc2c7533d4
|
File details
Details for the file oxrpy-0.2.0-py3-none-any.whl.
File metadata
- Download URL: oxrpy-0.2.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14cbf08e50c3f236843b843174cce2ffa6b9bbb72f8c0ab60de5828847c0d8db
|
|
| MD5 |
f74c13a4954e9418b87ab5ac5d7bc622
|
|
| BLAKE2b-256 |
64abe59333776cb2bd104bb9d37111e4171ad3bb9291576c550d640748834b07
|