Django EVE Online SDE

0.0.1b9 · active · verified Fri Apr 17

Django-eveonline-sde provides Django models for the EVE Online Static Data Export (SDE), allowing developers to easily integrate SDE data into their Django projects. It includes management commands to download and import the SDE. The current version is `0.0.1b9`, and it's under active development as a beta project by the Brave Collective, with updates released on an irregular basis as features are added or refined.

Common errors

Warnings

Install

Imports

Quickstart

To get started, add `eveonline_sde` to `INSTALLED_APPS`, run database migrations, and then use the provided management commands `download_sde` and `import_sde` to populate your database. Afterwards, you can query the SDE models like any other Django model.

# settings.py
INSTALLED_APPS = [
    # ...
    'eveonline_sde',
    # ...
]

# Run migrations
# python manage.py migrate eveonline_sde

# Download and import SDE data
# python manage.py download_sde
# python manage.py import_sde

# Example usage in a Django shell or view
from eveonline_sde.models import InvType

try:
    tristanium = InvType.objects.get(name='Tristanium')
    print(f"Tristanium Type ID: {tristanium.type_id}")
except InvType.DoesNotExist:
    print("Tristanium not found. Did you import the SDE?")

view raw JSON →