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
- add
uwsto yourINSTALLED_APPSsetting likes this:
INSTALLED_APPS = [
...
'uws',
...
]
- 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
...
- Run
python manage.py migrate uwsto create the UWS models. Optionally:python manage.py migrate uws --database uwsby specifying
DATABASE_ROUTERS = [
...
"uws.database_router.UWSDatabaseRouter",
...
]
and a `uws` entry in your `DATABASES` setting
- TODO: Add Celery configuration
Create a
celery.pyfile 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
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django-uws-0.2.dev355565.tar.gz.
File metadata
- Download URL: django-uws-0.2.dev355565.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e740c44a0d3ce5b6dc8ef7dba107ea99f4ff6a34391c4ff5d554ca8dae737998
|
|
| MD5 |
ee2777df5cf9d329e6ab578e89cea464
|
|
| BLAKE2b-256 |
eca8f9053927e0bb1f1d79c16d5e024ec8372088796d8dce2055f03c396b3ec2
|
File details
Details for the file django_uws-0.2.dev355565-py3-none-any.whl.
File metadata
- Download URL: django_uws-0.2.dev355565-py3-none-any.whl
- Upload date:
- Size: 19.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed6f413dee157b2ca381942e9e7ca17c571a154805aa9f20ad8713e8df352abf
|
|
| MD5 |
973144c0a3767dcec743d10cfcf97c15
|
|
| BLAKE2b-256 |
8c08b12f2ef537c2fb316c28d4bfccebfe5013dfc1b5403f82da37672cf959d6
|