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.
pip install django-eveonline-sdeVerified import paths — ran on the pinned version, not inferred.
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.
Always review release notes for new versions. Be prepared to run `makemigrations` and `migrate` for `eveonline_sde` and potentially `download_sde` and `import_sde` again after upgrading.
Ensure you have adequate disk space and allocate sufficient time for the `download_sde` and `import_sde` commands to complete, especially on initial setup or major SDE updates. Consider running these operations in a robust environment (e.g., within a screen or tmux session).
Implement a scheduled task (e.g., using Celery Beat or a cron job) to periodically run `python manage.py download_sde && python manage.py import_sde` to keep your SDE data up-to-date. Note: Running `import_sde` will update existing records and insert new ones; it won't delete old data if SDE structure changes dramatically.