Skip to main content
PyPI Package Travis CI Build Status Coveralls Test Coverage

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:

  1. Make sure repositories are cloned next to each other, e.g. file structure is:

/MyProjects/geokey/
/MyProjects/geokey-dataimports/
  1. 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
  1. 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)

Source distribution for geokey-dataimports 0.5.0
File Size Uploaded
geokey-dataimports-0.5.0.tar.gz 24.1 kB Details

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

Release history Release notifications | RSS feed

This release

0.5.0 This release

1 release file

0.4.1

1 release file

0.4.0

1 release file

0.3.3

1 release file

0.3.2

1 release file

0.3.1

1 release file

0.3.0

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page