Xbox Python API
Xbox Python API wrapper based on https://xbl.io.
Installation
pip install xbox-python-api
Usage
Create an instance of the XPA class with your API key.
from xpa import XPA
xpa = XPA(api_key="YOUR_API_KEY")
Code example
from xpa import XPA
xpa = XPA(api_key="YOUR_API_KEY")
# Get account gamertag
account_info = xpa.get_account_info_xuid(xuid="xuid")
print(account_info.Gamertag)
# Get user presence
presence = xpa.get_presence(xuid="xuid")
print(presence.devices)
Full documentation can be found here.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
xbox_python_api-0.2.2.tar.gz
(10.0 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
File details
Details for the file xbox_python_api-0.2.2.tar.gz.
File metadata
- Download URL: xbox_python_api-0.2.2.tar.gz
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
22efd6ed8fe43bea6d8242cf1cb53241270d6d1a7af2a46346244638854739c8
|
|
| MD5 |
f839cf162749c767147898bf44860bc7
|
|
| BLAKE2b-256 |
88ee1994aedc560fed84add334420918eb35b7680119bb985537c3922704cb55
|
File details
Details for the file xbox_python_api-0.2.2-py3-none-any.whl.
File metadata
- Download URL: xbox_python_api-0.2.2-py3-none-any.whl
- Upload date:
- Size: 12.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d5371b535b54e4c8131de9e521f360e8191991f560c8ebca077e1a254f9d3eeb
|
|
| MD5 |
0ec21b4786427ecf82f2a7edde78b99f
|
|
| BLAKE2b-256 |
0e8561252868c4c6e46a1a2985806a528d678fef46f4a190cbf862e5bf0fe532
|