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.4.3

  • Upgraded Celery to 4.3.0

0.4.2

  • Really added Celery integration to sentry agent

0.4.1

  • Added Celery integration for sentry agent.

0.4.0

  • Uses sentry agent for bug reporting. See sentry documentation.

0.3.3

  • Changing version of requests to add flexibility.

0.3.2

  • Fix handling of service exception messages with UTF-8 content.

0.3.1

  • Add a Report class normalizing format of execution reports.

0.3.0

  • Add argument permitting annotation uploads in ZIP format.

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

If you're not sure about the file name format, learn more about wheel file names.

VestaService-0.4.3-py2.py3-none-any.whl (18.0 kB view details)

Uploaded Python 2Python 3

File details

Details for the file VestaService-0.4.3-py2.py3-none-any.whl.

File metadata

  • Download URL: VestaService-0.4.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 18.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.6

File hashes

Hashes for VestaService-0.4.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8f81cf2dd4cf2fe6c8b1f74593acd51484fdd1ae8d0f3610099027342bb58fa8
MD5 303d905f4bc4670758cd64067900d5d3
BLAKE2b-256 a63fc8d307a11ad523404ef82810c2628811fe889f07229319c91f43d26ba2ba

See more details on using hashes here.

Supported by

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