Metadata-Version: 2.4
Name: xbox-python-api
Version: 0.2.1
Summary: Xbox API library
Home-page: https://github.com/Rarmash/Xbox-Python-API
Author: Rarmash
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests<3,>=2.33.1
Dynamic: author
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license-file
Dynamic: requires-dist
Dynamic: summary

# Xbox Python API
Xbox Python API wrapper based on https://xbl.io.

## Installation
```bash
pip install xbox-python-api
```

## Usage
Create an instance of the `XPA` class with your API key.
```python
from xpa import XPA

xpa = XPA(api_key="YOUR_API_KEY")
```

## Code example
```python
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](https://github.com/Rarmash/Xbox-Python-API/tree/master/docs).
