Skip to main content

Xbox API library

Project description

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.

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

xbox_python_api-0.2.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

xbox_python_api-0.2-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

Details for the file xbox_python_api-0.2.tar.gz.

File metadata

  • Download URL: xbox_python_api-0.2.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for xbox_python_api-0.2.tar.gz
Algorithm Hash digest
SHA256 ee27b1d2797c5cab64d5ebfd5698bc55cb9c705ddbfb1cdc9fb0c24e13676e7e
MD5 f9efddf032f58152c4c82359ceb19472
BLAKE2b-256 d860d58c9bf2b085e6007ed7c4cf7538c633c61040903f99f6648c10eea91527

See more details on using hashes here.

File details

Details for the file xbox_python_api-0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for xbox_python_api-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 33dcca293a8cf8a1e9d42fdec0daa09b3da6586ef226a5c4722a3f1c9e9089c6
MD5 c274fa47461436a049057d46a52f66c9
BLAKE2b-256 421fc4f203a9d4488ada246c711ad9bb7b26b8efbc40b86714b4ead7fba38d1f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page