geokey-dataimports
Import data from various formats (GeoJSON, KML, CSV) into GeoKey.
Install
geokey-dataimports requires:
Python version 2.7
GeoKey version 1.6 or greater
Install the geokey-dataimports from PyPI:
pip install geokey-dataimports
Or from cloned repository:
cd geokey-dataimports
pip install -e .
Add the package to installed apps:
INSTALLED_APPS += (
...
'geokey_dataimports',
)
Migrate the models into the database:
python manage.py migrate geokey_dataimports
Copy static files:
python manage.py collectstatic
You’re now ready to go!
Run within Docker container
If you’re cloning the repository and have GeoKey running within a Docker container, configure it like such:
Make sure repositories are cloned next to each other, e.g. file structure is:
/MyProjects/geokey/
/MyProjects/geokey-dataimports/
Modify Dockerfile (within “geokey” repository) so that it looks similar to:
...
ADD /geokey /app
ADD /geokey-dataimports /extensions/geokey-dataimports
...
RUN pip install -e /app
RUN pip install -e /extensions/geokey-dataimports
Modify docker-compose.yml and add a new volume:
...
volumes:
- ./geokey:/app/geokey
- ../geokey-dataimports/geokey_dataimports:/extensions/geokey-dataimports/geokey_dataimports
...
You can also run migrations, make new ones, etc. using geokey container. For example, to run only geokey-dataimports tests:
docker-compose exec geokey python manage.py test geokey_dataimports
Update
Update the geokey-dataimports from PyPI:
pip install -U geokey-dataimports
Migrate the new models into the database:
python manage.py migrate geokey_dataimports
Copy new static files:
python manage.py collectstatic
Test
Run tests:
python manage.py test geokey_dataimports
Check code coverage:
coverage run --source=geokey_dataimports manage.py test geokey_dataimports
coverage report -m --omit=*/tests/*,*/migrations/*
Metadata
Release files for geokey-dataimports 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| geokey-dataimports-0.5.0.tar.gz | 24.1 kB | Without provenance | Details for geokey-dataimports-0.5.0.tar.gz |
Release files / geokey-dataimports-0.5.0.tar.gz
| Download URL | geokey-dataimports-0.5.0.tar.gz |
|---|---|
| Size | 24.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bf4e555033d1b874aa2a7881c734d4482481a3b38ea5569bcdf5be5dabc084c1
|
|
BLAKE2b-256 checksum How to use checksums |
63295512e6e9547d007ae3ffa5c9ea08e52f11948d5c7d82f897d90f95e76fb0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.6
|
Security for geokey-dataimports 0.5.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.