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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_eve_sde-0.3.1.tar.gz.
File metadata
- Download URL: django_eve_sde-0.3.1.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.11.9 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca77ce5a0468351e7fb5f3707213a762627de6b11bb39e226c778891dda64c8f
|
|
| MD5 |
07809a7470bcd0c26e5cdbb2eb37c0e5
|
|
| BLAKE2b-256 |
8848a6a8e9bc59c6d7805e6e178145ccf5997a131ab31fe8dcfc8c4614be958a
|
File details
Details for the file django_eve_sde-0.3.1-py3-none-any.whl.
File metadata
- Download URL: django_eve_sde-0.3.1-py3-none-any.whl
- Upload date:
- Size: 10.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.11.9 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7466bd59d22a545c3f8072027195df0c5dcf17ed64f3b402e41f13e3344d3070
|
|
| MD5 |
e7d19d9b9c089897412ae5ddb8a722ea
|
|
| BLAKE2b-256 |
4cbd835991a6061254d60867936f27c801a1a79030aa380a01700162f04f3bbc
|