Skip to main content

G3W-ADMIN-PROCESSING

PyPI version Ask DeepWiki

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.

QProcessing schema

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

  1. Create a model using the QGIS graphical modeler and save it as a .model3 file.
  2. In G3W-ADMIN, open Processing > Models > Add model, upload the model, select its projects, and configure access.
  3. 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.

QGIS desktop G3W-SUITE

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

Automatic releases

After CI succeeds for a push, CD creates and tags an empty commit named after the version, then publishes to PyPI and GitHub Releases. The commit has the same content as the tested commit. If the branch advances, CD skips that run and waits for CI on the latest commit. Release notes include commit messages, authors and links.

Compatibile with: g3w-admin version g3w-suite-docker version


License: MPL-2

Metadata

Release files for g3w-admin-processing 2.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for g3w-admin-processing 2.0.5
File Size Uploaded Provenance Actions
g3w_admin_processing-2.0.5.tar.gz 3.8 MB With provenance Details for g3w_admin_processing-2.0.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for g3w-admin-processing 2.0.5
File Interpreter ABI Platform Actions
g3w_admin_processing-2.0.5-py3-none-any.whl Python 3 none any Details for g3w_admin_processing-2.0.5-py3-none-any.whl

Total release size: 4.0 MB

Release files / g3w_admin_processing-2.0.5.tar.gz

Download URL g3w_admin_processing-2.0.5.tar.gz
Size 3.8 MB
Tags Source
SHA-256 checksum
How to use checksums
753c4dbab867bfb11fec73de19b3926aba9bc147ba57caa9fa298061c38de5f7
BLAKE2b-256 checksum
How to use checksums
35732224a9adcce11e120977a1d448c356a788850ad353cb2c97448217112b7d
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 log

Release files / g3w_admin_processing-2.0.5-py3-none-any.whl

Download URL g3w_admin_processing-2.0.5-py3-none-any.whl
Size 135.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
87a8f89bfeaed97f4c0fd067d534b0431a97e0cf0018086365a9b378a7310e3c
BLAKE2b-256 checksum
How to use checksums
f8a080343066a6e69cb8a48f0a26a95c8e38b4dc1cd68ef2fd05e0b54cf9d6eb
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 log

Security for g3w-admin-processing 2.0.5

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.

Select from 2 files

Attestation for g3w_admin_processing-2.0.5.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 log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page