G3W-ADMIN-PROCESSING
Run QGIS Processing
models from G3W-CLIENT. Upload a .model3 file in G3W-ADMIN, associate it with
one or more projects, and make it available to authorized users.
Installation
Install the package in the Python environment used by G3W-ADMIN:
pip install g3w-admin-processing
For local development, install from a checkout instead:
pip3 install -e /g3w-suite-docker/plugins/qprocessing
The Django application is named qprocessing. Add it to the existing list in G3W-ADMIN's
local_settings.py:
G3WADMIN_LOCAL_MORE_APPS = [
...
'qprocessing',
...
]
Run G3W-ADMIN's migrations and restart the application:
python manage.py migrate
For Docker deployments, see g3w-suite-docker.
On Ubuntu Jammy, if installation produces an UNKNOWN distribution instead of
g3w-admin-processing, retry with:
export DEB_PYTHON_INSTALL_LAYOUT=deb_system
pip install g3w-admin-processing
Use
- Create a model using the QGIS graphical modeler
and save it as a
.model3file. - In G3W-ADMIN, open Processing > Models > Add model, upload the model, select its projects, and configure access.
- Open an associated project in G3W-CLIENT, provide the model inputs, and run it.
Users need permission to view the project and run the model.
Supported model parameters
The processing form supports the following QGIS parameter types:
- Vector layer, feature source, and vector field
- Raster layer
- Distance, number, boolean, and extent
Supported outputs are vector layers, raster layers, files, and HTML. Date/time and range parameters are recognized when a model is read, but their processing input conversions are not currently implemented.
Configuration
Set these options in G3W-ADMIN's settings. Defaults are defined in
qprocessing/configs.py.
| Setting | Default | Description |
|---|---|---|
QPROCESSING_ASYNC_RUN |
False |
Run models asynchronously when enabled. |
QPROCESSING_OUTPUT_PATH |
/tmp/ |
Directory for processing outputs. |
QPROCESSING_INPUT_UPLOAD_PATH |
/tmp/ |
Directory for uploaded inputs. |
QPROCESSING_INPUT_UPLOAD_MAX_FILE_SIZE |
None |
Client-side upload size limit in bytes; None disables the limit. |
QPROCESSING_TASK_INFO_INTERVAL |
5 |
Task status polling interval in seconds. |
QPROCESSING_INPUT_SHP_EXTS |
['shp', 'shx', 'prj', 'dbf', 'shx'] |
Required shapefile extensions. |
QPROCESSING_CRYPTO_KEY |
See defaults | Fernet key used to encrypt output download links. |
Use writable paths ending in /. If you change the output directory and want
uploads in the same location, set both path options.
Set a deployment-specific Fernet key instead of relying on the default:
python -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())"
Store the generated key securely in QPROCESSING_CRYPTO_KEY as bytes. Changing
it invalidates existing encrypted download links.
Formats
Each format setting is a list of dictionaries with value and key fields.
The defaults are:
| Setting | Default values |
|---|---|
QPROCESSING_INPUT_UPLOAD_VECTOR_FORMATS |
zip, geojson, kml, gpkg, sqlite |
QPROCESSING_INPUT_UPLOAD_RASTER_FORMATS |
vrt, tiff, tif, png, jpeg, jpg |
QPROCESSING_OUTPUT_VECTOR_FORMATS |
shp, geojson, kml, kmz, csv |
QPROCESSING_OUTPUT_RASTER_FORMATS |
vrt, tiff, png, jpeg, jpg |
QPROCESSING_OUTPUT_FILE_FORMATS |
pdf |
QPROCESSING_OUTPUT_HTML_FORMATS |
html |
Default output formats are configured separately:
| Setting | Default |
|---|---|
QPROCESSING_OUTPUT_VECTOR_FORMAT_DEFAULT |
geojson |
QPROCESSING_OUTPUT_RASTER_FORMAT_DEFAULT |
tiff |
QPROCESSING_OUTPUT_FILE_FORMAT_DEFAULT |
pdf |
QPROCESSING_OUTPUT_HTML_FORMAT_DEFAULT |
html |
For example:
QPROCESSING_OUTPUT_VECTOR_FORMATS = [
{'value': 'shp', 'key': 'Shapefile'},
{'value': 'geojson', 'key': 'GeoJSON'},
]
QPROCESSING_OUTPUT_VECTOR_FORMAT_DEFAULT = 'geojson'
Asynchronous execution
Models run synchronously by default. To run them asynchronously, configure Huey and a Redis broker in the G3W-ADMIN environment:
QPROCESSING_ASYNC_RUN = True
HUEY = {
'huey_class': 'huey.RedisExpireHuey',
'name': 'g3w-suite',
'url': 'redis://localhost:6379/?db=0',
'immediate': False,
'consumer': {
'workers': 1,
'worker_type': 'process',
},
}
Start a Huey consumer alongside G3W-ADMIN:
python manage.py run_huey -k process
The Redis URL must be reachable from the consumer and the application.
Development and tests
The BDD scenarios live in qprocessing/tests/features,
with Python steps in qprocessing/tests/steps.
They require a configured G3W-ADMIN/QGIS environment, PostGIS, and Node.js
(used to execute the JavaScript component test).
Install the test dependencies from this repository:
pip install -r requirements-test.txt
Make the plugin source available as qprocessing in G3W-ADMIN, as done in
CI. For a test-only Django settings module, import
G3W-ADMIN's test settings and add behave_django to INSTALLED_APPS:
# base/settings/qprocessing_test_settings.py
from . import *
from .tests_settings import *
INSTALLED_APPS = [*INSTALLED_APPS, 'behave_django']
The test settings use an in-memory Huey queue. From the G3W-ADMIN directory, run:
python manage.py behave --settings=base.settings.qprocessing_test_settings --simple qprocessing/tests
License: MPL-2
Metadata
Release files for g3w-admin-processing 2.0.3
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 |
|---|---|---|---|---|
| g3w_admin_processing-2.0.3.tar.gz | 3.9 MB | With provenance | Details for g3w_admin_processing-2.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| g3w_admin_processing-2.0.3-py3-none-any.whl | Python 3 | none | any | Details for g3w_admin_processing-2.0.3-py3-none-any.whl |
Total release size: 4.1 MB
Release files / g3w_admin_processing-2.0.3.tar.gz
| Download URL | g3w_admin_processing-2.0.3.tar.gz |
|---|---|
| Size | 3.9 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cf2b99e1b0ac18a6dab85271bbafe8aaf9f9795ce03486f7de7bf041905244a9
|
|
BLAKE2b-256 checksum How to use checksums |
102a699acef9ed2704f7395dddaa7251293d48fc314626c83980dfd3c8274a91
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logRelease files / g3w_admin_processing-2.0.3-py3-none-any.whl
| Download URL | g3w_admin_processing-2.0.3-py3-none-any.whl |
|---|---|
| Size | 202.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e7f4b3a70778dae0d4aaeecf8366d4021027402128594639e42b8e9db9580aae
|
|
BLAKE2b-256 checksum How to use checksums |
5a8a9f7991f95fcfda996a85e72f824ee15ac4442ef3c37ddf1446eb3a371e3f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logSecurity for g3w-admin-processing 2.0.3
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for g3w_admin_processing-2.0.3.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logA 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.