Skip to main content

Code to facilitate creation of services and their integration to Vesta Service Gateway.

Project description

https://travis-ci.org/crim-ca/Service.svg?branch=master

This package offers helper modules for Vesta services working in a distributed Service architecture. The work being executed by these services might be an annotation process or a form of conversion process taking a significant amount of time thereby benefiting from a distributed processing system with a REST interface.

Messages are communicated through a Celery distributed processing queue system. Celery can be configured to run with various backends such as RabbitMQ or Reddis. It is mainly meant to work with the Vesta Service Gateway .

Requirements / installation

This package uses Python version 2.x.x but should be compatible with Py3K. Tox tests are run regurlarly through the TravisCI on github. See the tox.ini configuration file.

You can install the package from the Python package index such as:

pip install VestaService

Alternatively one can install this package from source such as:

pip install git+https://github.com/crim-ca/Service

Which should install all requirements such as Celery.

You can also install from a cloned version.

See the documentation for pip for more installation use cases.

Contribution

Pull requests are most welcome. Please ensure you follow pep8 for any modifications.

Release notes

0.2.3

  • Using the package requests[security] rather than requests to avoid download errors with python versions < 2.7.9

  • For the download, passing the timeout and the max_try in parameters. Using shutil.copyfileobj to write file on disk

0.2.2

  • When sending a task, queue name must be given.

0.2.1

  • Honors a new key value called callback_url which is called at the end of a task.

0.2.0

  • py3k compatible

0.1

  • First release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

VestaService-0.2.3-py2.py3-none-any.whl (17.0 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page