https://github.com/alentoghostflame/pyevelib
An EVE Python 3 library for quickly accessing the Static Data Export and EVE Swagger Interface, returning easy to use objects.
https://github.com/alentoghostflame/pyevelib
aiohttp api esi eve eveonline interface library python python3 sde staticdataexport
Last synced: about 2 months ago
JSON representation
An EVE Python 3 library for quickly accessing the Static Data Export and EVE Swagger Interface, returning easy to use objects.
- Host: GitHub
- URL: https://github.com/alentoghostflame/pyevelib
- Owner: alentoghostflame
- License: mit
- Created: 2020-06-29T17:56:53.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2025-01-06T03:03:18.000Z (5 months ago)
- Last Synced: 2025-02-01T12:08:20.369Z (4 months ago)
- Topics: aiohttp, api, esi, eve, eveonline, interface, library, python, python3, sde, staticdataexport
- Language: Python
- Homepage:
- Size: 218 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PyEVELib
An async library to access the Static Data Export (SDE) and EVE Swagger Interface (ESI) in a unified way.### Features
* It's async.
* Can download the SDE, unpack it automatically, and check if the current SDE is out of date.
* Doesn't require the SDE, and can use ESI for info instead.
* Supports ESI ratelimiting.
* Caches ESI requests by default, supports both route expiries and ETags.### Requirements
* Python 3.10+
* aiohttp
* PyYAML### How to use
```python
import asyncio
from evelib import EVEAPIasync def main():
eve = EVEAPI()
# If you want to use the SDE.
eve.sde.update_sde() # This checks for updates, downloads, and unpacks the SDE as needed.
eve.load_sde() # Loads the SDE from disk.
resolved = await eve.resolve_universe_ids(["Jita"])
jita_id = resolved.systems["Jita"]
jita = await eve.get_solarsystem(jita_id)
print(f"{jita.name}, {jita.id}, {jita.security}")
```