This repo contains Python utility functions for harvesting metadata from open-standard sources, e.g., GeoNode and CKAN.
Install via PyPI with:
pip install sc-python-harvester
Or install directly from GitHub with:
pip install git+git://github.com/spatialcurrent/sc-python-harvester.git@master
Simply import the enumerations and functions as needed. If flask is installed, then the functions will use Flask's JSON module. Otherwise, they will default to the Python built-in module.
from sc_python_harvester.wfs.utils import wfs_describe_layer
from sc_python_harvester.wfs.enumerations import WFS_DEFAULT_NAMESPACES
attributes, geometry_type = wfs_describe_layer(wfs_url, typename, ns=WFS_DEFAULT_NAMESPACES)
Spatial Current, Inc. is currently accepting pull requests for this repository. We'd love to have your contributions! Please see Contributing.rst for how to get started.
This work is distributed under the MIT License. See LICENSE file.