Skip to main content

python-eveauth

A Python library for authorizing desktop apps with the EVE online SSO.

release python CI/CD codecov license

Description

python-eveauth is a library for authorizing Python scripts on desktops with the EVE online SSO. It enables a Python script (e.g. CLI tools, GUI apps or Jupiter notebooks) to obtain SSO tokens that grant authenticated access to the EVE Online API (ESI).

Installation

pip install python-eveauth

Quick Start

First you need to create an EVE SSO app for your script on Eve Online's developers site:

  • Name: Any name
  • Callback URL: The default callback for your SSO app is: http://127.0.0.1:8080/callback
  • Enabled Scopes: Select all scopes needed for your app (you can change this later if you want). Select at least one scope, e.g. publicData

This will create a SSO app and give you a SSO client ID.

Then you can start authorizing your script with eveauth.

Below is an basic example that show how you can use eveauth. It first authorizes the script and obtains a token. Then fetches the wallet balance for the authorized character with the token. The token can later be refreshed as needed.

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)

You can find more examples in the directory /examples.

Documentation

The full documentation can be found here: Documentation.

Metadata

Release files for python-eveauth 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-eveauth 0.1.0
File Size Uploaded
python_eveauth-0.1.0.tar.gz 13.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for python-eveauth 0.1.0
File Interpreter ABI Platform
python_eveauth-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 21.1 kB

Release files / python_eveauth-0.1.0.tar.gz

Download URL python_eveauth-0.1.0.tar.gz
Size 13.3 kB
Tags Source
SHA-256 checksum
How to use checksums
596ff553a51760278e0fd9e2f699087691f2147636e5ba5f39ce2decd9b3927f
BLAKE2b-256 checksum
How to use checksums
88dfbc74997d88f1e84e308e84c3f2ae2b041f1ad2a22c9636b5ad905b5530b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.33.1

Release files / python_eveauth-0.1.0-py3-none-any.whl

Download URL python_eveauth-0.1.0-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
294a328e6e55e0cade17246840bbcdfe74a53856e6ae3f6101fa469da3e27441
BLAKE2b-256 checksum
How to use checksums
209ca6301b41f31568c95a5060a20d64ea6b04b39e7dfb5e6f23106d20ce78cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.33.1
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page