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.1.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xbox_python_api-0.2.1-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: xbox_python_api-0.2.1.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for xbox_python_api-0.2.1.tar.gz
Algorithm Hash digest
SHA256 ebc133552677d6895dcc40885c079ef4fd1ac7be052c0d6d0054878f97449c2d
MD5 9da3ec6e52f5b06f8a35bcfc103f576b
BLAKE2b-256 37b13a7c431cbdffa79dffbe55847e377d10faac1a523ca6bc6a425c0c805833

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xbox_python_api-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a64220bf6332c9f2438b7b55ae4d371090c98dd6109d64ae1d9a48e38b36a9f6
MD5 32507eb84883f98274df5300adb12467
BLAKE2b-256 09ac7ba74221da9c94b8dd5644be5f63fccd5172d3455cf55b503f59cbc9488e

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