Skip to main content

Django implementation of the IVOA UWS pattern.

Project description

Django Universal Worker Service

Django implementation of the IVOA UWS pattern.

The Universal Worker Service (UWS) pattern defines how to manage asynchronous execution of jobs on a service. Any application of the pattern defines a family of related services with a common service contract. Possible uses of the pattern are also described.

Url: https://www.ivoa.net/documents/UWS/ DOI: 10.5479/ADS/bib/2016ivoa.spec.1024H

Quick start

  1. add uws to your INSTALLED_APPS setting likes this:
    INSTALLED_APPS = [
        ...
        'uws',
        ...
    ]
  1. Include the uws URLconf in your project urls.py like this:
    ...
    path('uws/', include('uws.urls')),  # 'uws/' can be replaced by the name of your service
    ...
  1. Run python manage.py migrate uws to create the UWS models. Optionally: python manage.py migrate uws --database uws by specifying
    DATABASE_ROUTERS = [
    ...
    "uws.database_router.UWSDatabaseRouter",
    ...
    ]
and a `uws` entry in your `DATABASES` setting
  1. TODO: Add Celery configuration Create a celery.py file in the <project> folder:
import os

from celery import Celery

# Set the default Django settings module for the 'celery' program.
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "project.default_settings")

app = Celery("project") # Change to something related to your Service

app.config_from_object("django.conf:settings", namespace="CELERY")

app.autodiscover_tasks()

Worker

Contributing

For developer access to this repository, please send a message on the ESAP channel on Rocket Chat.

Project details


Download files

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

Source Distribution

django-uws-0.2.dev355575.tar.gz (15.3 kB view details)

Uploaded Source

Built Distribution

django_uws-0.2.dev355575-py3-none-any.whl (19.0 kB view details)

Uploaded Python 3

File details

Details for the file django-uws-0.2.dev355575.tar.gz.

File metadata

  • Download URL: django-uws-0.2.dev355575.tar.gz
  • Upload date:
  • Size: 15.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for django-uws-0.2.dev355575.tar.gz
Algorithm Hash digest
SHA256 26466fbdc2e59c7e2ff6e654e8a19582c775b7fa4539d796343195fecc8274a0
MD5 dcc07990337c1796c40462e804f2172e
BLAKE2b-256 850af8f16536ef0ad4b546b080d2d7107b5a93df7e6806e510dad55fe5d82cdc

See more details on using hashes here.

File details

Details for the file django_uws-0.2.dev355575-py3-none-any.whl.

File metadata

File hashes

Hashes for django_uws-0.2.dev355575-py3-none-any.whl
Algorithm Hash digest
SHA256 095d7f911c263c95bfef34dbd2fb8e89d86d4d6b6c8e2c020fa3352bbe09bbb5
MD5 f1a00ad2472ac4075e8b6e9a67b34694
BLAKE2b-256 f76f617af0d74b4c72c6d2a61a53ad8d3f427da076f3d44b2ac60647c9450e4f

See more details on using hashes here.

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