This release is a pre-release and may not be stable for production use.
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.
Metadata
Release files for django-uws 0.2.dev355575
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-uws-0.2.dev355575.tar.gz | 15.3 kB | Without provenance | Details for django-uws-0.2.dev355575.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_uws-0.2.dev355575-py3-none-any.whl | Python 3 | none | any | Details for django_uws-0.2.dev355575-py3-none-any.whl |
Total release size: 34.3 kB
Release files / django-uws-0.2.dev355575.tar.gz
| Download URL | django-uws-0.2.dev355575.tar.gz |
|---|---|
| Size | 15.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
26466fbdc2e59c7e2ff6e654e8a19582c775b7fa4539d796343195fecc8274a0
|
|
BLAKE2b-256 checksum How to use checksums |
850af8f16536ef0ad4b546b080d2d7107b5a93df7e6806e510dad55fe5d82cdc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.5
|
Release files / django_uws-0.2.dev355575-py3-none-any.whl
| Download URL | django_uws-0.2.dev355575-py3-none-any.whl |
|---|---|
| Size | 19.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
095d7f911c263c95bfef34dbd2fb8e89d86d4d6b6c8e2c020fa3352bbe09bbb5
|
|
BLAKE2b-256 checksum How to use checksums |
f76f617af0d74b4c72c6d2a61a53ad8d3f427da076f3d44b2ac60647c9450e4f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.5
|
Security for django-uws 0.2.dev355575
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.