A library for making web services that make functions available as synchronous or asynchronous jobs
Project description
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:
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. 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:
pytest
Building the Documentation
To build the ckanserviceprovider docs:
python setup.py build_sphinx
Releasing a New Version
To release a new version of ckanserviceprovider:
-
Increment the version number in setup.py
-
Build a source distribution of the new version and publish it to PyPI:
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:
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
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
Hashes for ckanserviceprovider-1.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b86486df8dcdb86e02a0ae19b16f446ae132290bb6e8f00789b9842fec2422f1 |
|
MD5 | 4165eadb7373e244c0c6444ac0aca63c |
|
BLAKE2b-256 | 6ff615ba8953f6ea22049b516d2d8412c396cbb7293e4629b712dd63da698472 |