A library for authorizing desktop apps with the EVE online SSO.
Project description
python-eveauth
An Python library for authorizing desktop apps with the EVE online SSO.
Description
python-eveauth is an library for authorizing Python scripts on desktops with the EVE online SSO. This allows obtaining SSO tokens with any Python script, e.g. CLI tools, GUI apps or jupiter notebooks.
[!Note] This library is designed to run on desktops and requires a system with a local web browser.
Installation
pip install python-eveauth
Usage
First setup your EVE SSO app on developers.eveonline.com.
The callback should be: http://127.0.0.1:8080/callback
import requests
from eveauth import Client
# Create an auth client
c = Client(client_id="YOUR-SSO-CLIENT-ID")
# Authorize the current script with the character wallet scope
token = c.authorize("esi-wallet.read_character_wallet.v1")
# Request the wallet balance for the authorized character
r = requests.get(
url=f"https://esi.evetech.net/characters/{token.character_id}/wallet",
headers={"Authorization": f"Bearer {token.access_token}"},
)
r.raise_for_status()
# Print the balance
print(r.text)
# Refresh the token
# c.refresh_token(token)
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
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 python_eveauth-0.1.0b1.tar.gz.
File metadata
- Download URL: python_eveauth-0.1.0b1.tar.gz
- Upload date:
- Size: 11.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
927110a36123cf709ce081a5f3bbab7a1c410bc628b6efd8abbb23edc7b6b400
|
|
| MD5 |
538afb67aca7e63719dc23cf58cace0b
|
|
| BLAKE2b-256 |
ebe700e2fb8edf6b2341a0ad71994efa7f7d60a3de4184e3a4e9205661722b2d
|
File details
Details for the file python_eveauth-0.1.0b1-py3-none-any.whl.
File metadata
- Download URL: python_eveauth-0.1.0b1-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b87d541f4e23d7473dff03c15446bc49bded3371c5ea75df3e542c5f74128e98
|
|
| MD5 |
eb2f3c7cf035dff327d33273978635e2
|
|
| BLAKE2b-256 |
4c55632b9892a86e9c541f878018ac24b325978d8e4146759cf585e179d03345
|