A library for making web services that make functions available as synchronous or asynchronous jobs
Project description
[![Build Status](https://travis-ci.org/ckan/ckan-service-provider.png?branch=master)](https://travis-ci.org/ckan/ckan-service-provider) [![Coverage Status](https://coveralls.io/repos/ckan/ckan-service-provider/badge.png?branch=master)](https://coveralls.io/r/ckan/ckan-service-provider?branch=master) [![Latest Version](https://img.shields.io/pypi/v/ckanserviceprovider.svg)](https://pypi-hypernode.com/pypi/ckanserviceprovider/) [![Downloads](https://img.shields.io/pypi/dm/ckanserviceprovider.svg)](https://pypi-hypernode.com/pypi/ckanserviceprovider/) [![Supported Python versions](https://img.shields.io/pypi/pyversions/ckanserviceprovider.svg)](https://pypi-hypernode.com/pypi/ckanserviceprovider/) [![Development Status](https://img.shields.io/pypi/status/ckanserviceprovider.svg)](https://pypi-hypernode.com/pypi/ckanserviceprovider/) [![License](https://img.shields.io/pypi/l/ckanserviceprovider.svg)](https://pypi-hypernode.com/pypi/ckanserviceprovider/)
[DataPusher]: https://github.com/okfn/datapusher [PyPI]: https://pypi-hypernode.com/pypi/ckanserviceprovider
# CKAN Service Provider
A library for making web services that make functions available as synchronous or asynchronous jobs. Used by [DataPusher][].
## Getting Started
To install ckanserviceprovider for development:
`bash git clone https://github.com/ckan/ckan-service-provider.git cd ckan-service-provider pip install -r requirements-dev.txt `
To get started making a web service with ckanserviceprovider have a look at [/example](example). You can run the example server with python example/main.py example/settings_local.py.
For a real-world example have a look at [DataPusher][].
## Running the Tests
To run the ckanserviceprovider tests:
`bash nosetests `
## Building the Documentation
To build the ckanserviceprovider docs:
`bash python setup.py build_sphinx `
## Releasing a New Version
To release a new version of ckanserviceprovider:
Increment the version number in [setup.py](setup.py)
Build a source distribution of the new version and publish it to [PyPI][]:
`bash python setup.py sdist bdist_wheel pip install --upgrade twine twine upload dist/* `
You may want to test installing and running the new version from PyPI in a clean virtualenv before continuing to the next step.
Commit your setup.py changes to git, tag the release, and push the changes and the tag to GitHub:
`bash git commit setup.py -m "Bump version number" git tag 0.0.1 git push git push origin 0.0.1 `
(Replace both instances of 0.0.1 with the number of the version you’re releasing.)
## Authors
The original authors of ckanserviceprovider were David Raznick <david.raznick@okfn.org> and Dominik Moritz <dominik.moritz@okfn.org>. For the current list of contributors see [github.com/ckan/ckan-service-provider/contributors](https://github.com/ckan/ckan-service-provider/contributors)
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
File details
Details for the file ckanserviceprovider-0.0.8.tar.gz
.
File metadata
- Download URL: ckanserviceprovider-0.0.8.tar.gz
- Upload date:
- Size: 15.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.11.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/2.7.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dcb0a309865737e380ba53081774dad2804e89be58a34c154c73e89944495d1c |
|
MD5 | 73880e9d85ad4ea7e632990da952bdd5 |
|
BLAKE2b-256 | e93d4e7787e682d51892e01cb3682003b34385247de71a607a206d309e95c954 |
File details
Details for the file ckanserviceprovider-0.0.8-py2-none-any.whl
.
File metadata
- Download URL: ckanserviceprovider-0.0.8-py2-none-any.whl
- Upload date:
- Size: 29.1 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.11.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/2.7.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfd9c0eaf74a019f4ebfdfefcc534f3ad52d953daa7e523670270dbbe80f3e3e |
|
MD5 | 20ca5d701f81d0d60c84e41569c12568 |
|
BLAKE2b-256 | cf566347646657eeabf340583a13dc9648040082f3e2034371fde8ca60745ba8 |