Run WSGI applications defined by paste.deploy configurations
A script, run-wsgi is provided that runs WSGI applications defined in Paste Deployment configuration files. For example, given a configuration file, paste.ini:
[app:main] use = egg:bobo bobo_resources = myapp [pipeline:debug] pipeline = debug reload main [filter:reload] use = egg:bobo#reload modules = zc.wsgirunner.tests [filter:debug] use = egg:bobo#debug [server:main] use = egg:waitress host = localhost port = 8080 [configure:main] use = call:myapp:config key = 42 [logging:main] log = INFO
We can run the applicaton with [1]:
run-wsgi paste.ini
If we want to run the debug pipeline:
run-wsgi -a debug paste.ini
Logging and configuration
zc.wsgirunner extends the Paste Deploy vocabulary of sections with logging and configuration sections.
As with the other sections, you can have multiple sections and select which one you want with command-line options.
Logging sections
Logging sections come in 2 flavors, ZConfig, and basic. If a logging section has a config option, its value is passed ZConfig’s [2] configureLoggers method. Otherwise, the options in the logging section are passed to logging.basicConfig.
Configuration sections
Configuration sections identify a configuration function with a use option, as with other Paste Deploy sections. The configuration object is called with global defaults and with options from the configuration section.
Changes
0.1.0 (2014-04-12)
Initial release
Metadata
Release files for zc.wsgirunner 0.1.0
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 |
|---|---|---|---|---|
| zc.wsgirunner-0.1.0.tar.gz | 4.9 kB | Without provenance | Details for zc.wsgirunner-0.1.0.tar.gz |
Release files / zc.wsgirunner-0.1.0.tar.gz
| Download URL | zc.wsgirunner-0.1.0.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
431a89382746eeb33451db33881b330fd6558885ed8fe9be48d8a0b84c2083e6
|
|
BLAKE2b-256 checksum How to use checksums |
9efe7fcd09aad8760441a1ba941d3642249578e047b5771c2656f2f0ae4fe7c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for zc.wsgirunner 0.1.0
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.