Skip to main content

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.

release python CI/CD codecov license

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python_eveauth-0.1.0b1.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

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

python_eveauth-0.1.0b1-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

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

Hashes for python_eveauth-0.1.0b1.tar.gz
Algorithm Hash digest
SHA256 927110a36123cf709ce081a5f3bbab7a1c410bc628b6efd8abbb23edc7b6b400
MD5 538afb67aca7e63719dc23cf58cace0b
BLAKE2b-256 ebe700e2fb8edf6b2341a0ad71994efa7f7d60a3de4184e3a4e9205661722b2d

See more details on using hashes here.

File details

Details for the file python_eveauth-0.1.0b1-py3-none-any.whl.

File metadata

File hashes

Hashes for python_eveauth-0.1.0b1-py3-none-any.whl
Algorithm Hash digest
SHA256 b87d541f4e23d7473dff03c15446bc49bded3371c5ea75df3e542c5f74128e98
MD5 eb2f3c7cf035dff327d33273978635e2
BLAKE2b-256 4c55632b9892a86e9c541f878018ac24b325978d8e4146759cf585e179d03345

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