Skip to main content

gsimporter

https://travis-ci.org/boundlessgeo/gsimporter.svg?branch=master

gsimporter is a python library for using GeoServer’s importer API.

Installing

pip install gsconfig

or

git clone https://github.com/boundlessgeo/gsimporter.git cd gsimporter pip install .

Getting Help

Please use the Github project at http://github.com/boundlessgeo/gsimporter for any bug reports (and pull requests are welcome, but please include tests where possible.)

Running Tests

The tests are integration tests. These require having a running GeoServer instance with the community/importer modules installed. Because some of the tests use a postgres database, a data base is required to run. It is strongly advised to run with a data directory you don’t care about.

The test suite will first attempt to verify a connection to GeoServer and a connection to the database. If the default values are not appropriate, provide them via environment variables on the command line or via export. For example:

GEOSERVER_BASE_URL=http://localhost:8080 python setup.py test

A convenient way to deal with connection or other settings (besides setting things up to use the defaults) is to put them all in a bash (or other shell) script.

The tests are designed to create a workspace named importer and importer2 for use in testing. importer will be set to the default workspace. As much as possible, things are cleaned up after test execution.

To run all of the tests, one way is via setup.py. python setup.py test should do the trick.

If developing and finer grained control is desired, specific tests and other flags can be provided using python test/uploadtests.py. Supported arguments are:

  • –clean delete layers and stores in the test workspaces. useful for cleanup.

  • –skip-teardown don’t delete things after running. may cause errors but useful for a single test.

To run a single case (or drop the method name to run the whole class):

python test/uploadtests.py ErrorTests.test_invalid_file

Metadata

Release files for gsimporter 1.0.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 gsimporter 1.0.0
File Size Uploaded
gsimporter-1.0.0.tar.gz 9.2 kB Details

Release files / gsimporter-1.0.0.tar.gz

Download URL gsimporter-1.0.0.tar.gz
Size 9.2 kB
Tags Source
SHA-256 checksum
How to use checksums
47f2222d9120732f2d88bfe7eac25833feda9390a582596565be98a0181f4d95
BLAKE2b-256 checksum
How to use checksums
1e2ca421996da2dbf75e97df1ed77818d6e56705eeea02494429d265804d1878
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.0 This release

1 release file

0.1

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