Skip to main content

Something

Project description

Django Eve SDE

Only supports Postgres databases for now, if using Docker you have to install the cli tools for postgres.

If on windows you'll need to make sure you have a postgres password file as described here https://www.postgresql.org/docs/current/libpq-pgpass.html

apt-get install -y --no-install-recommends postgresql-client

Installation

pip install git+https://github.com/timthedevguy/django_eve_sde.git

or

poetry add git+https://github.com/timthedevguy/django_eve_sde.git

What this does

This module will download the SDE dump files, and then import only the tables you need based on what gets added to INSTALLED_APPS. This saves space as you aren't storing the entirety of Eve SDE in your database, only the tables you need to use.

Tables available are under the django_eve_sde module.

For example, to use the invTypes table add the following to your INSTALLED_APPS in settings.py

INSTALLED_APPS = [
    ...,
    ...,
    "django_eve_sde",  # Always import django_eve_sde if you have at least one table  import
    "django_eve_sde.invTypes"
]

Now run

python ./manage.py update_sde

The Postgres SDE dump will be downloaded and the correct table will be imported to your default database.

You can now use the model just like your own models by importing them

from django_eve_sde.invTypes.models import InvType

Looking up an item

item = InvType.objects.filter(type_id=34)

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

django_eve_sde-0.3.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

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

django_eve_sde-0.3.0-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file django_eve_sde-0.3.0.tar.gz.

File metadata

  • Download URL: django_eve_sde-0.3.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.11.9 Windows/10

File hashes

Hashes for django_eve_sde-0.3.0.tar.gz
Algorithm Hash digest
SHA256 97f4424fa32cefe1915f2590f4b4d4e1bac7ddd48f4fbadfc2568c05c1c3b285
MD5 4f388f958cd2e5ade9e3bd939ab34271
BLAKE2b-256 d4e1735fd4b0cd6333a9644c304a6052e311e8666fd2a5047b64844fa13b873e

See more details on using hashes here.

File details

Details for the file django_eve_sde-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: django_eve_sde-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.11.9 Windows/10

File hashes

Hashes for django_eve_sde-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4cb9836e1921fe7d41e441f16d7d254168af95a2796affc19e5fa84dacf34168
MD5 40f5861ccdb7383b115fd36137045883
BLAKE2b-256 3fd3014bed5bc3511cff740dd246b7667591107deac1d0a9a405e220f9227dc5

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