wsgisvc
There are many deployment scenarios with Python web applications. Without diving into all the options I’ll suppose part of your deployment is utilizing Paste Deployment (http://pythonpaste.org/deploy/) . To test and develop your application you use “paster serve some_name.ini”. Now to setup the application so that it runs after log off or restart you need a customized Windows service.
There are a couple of recipes around to achieve this but, you have to copy and paste some code and hardcode the name and config file into it. I’ve put together a little tool which helps creating windows services, based on arbitrary configuration parameters.
1. install the tool
easy_install wsgisvc
This adds the wsgisvc.exe into your scripts directory.
2. Extend your *.ini file
with a [winservice] section. The list of options you can use:
svc_name
svc_display_name
svc_description
virtual_env
Only the svc_name option is mandatory. If you don’t use svc_display_name or svc_decription sensible default will be made up. The minimal configuration you need to add looks like this:
[winservice] svc_name = svc1
3. Install the service
wsgisvc -c some_name.ini install
This adds the service “svc1” to your system. You can check it out under display name “svc1 Paste Service” through Administrative Tools -> Services. To start the service you can either use that or command line:
wsgisvc -c some_name.ini start
And the last thing, to list display names of all installed Paste services:
wsgisvc list
Metadata
Release files for wsgisvc 0.8.1.8
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 |
|---|---|---|---|---|
| wsgisvc-0.8.1.8.zip | 8.1 kB | Without provenance | Details for wsgisvc-0.8.1.8.zip |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| wsgisvc-0.8.1.8-py2.6.egg | Legacy Egg format | - | - | Details for wsgisvc-0.8.1.8-py2.6.egg |
| wsgisvc-0.8.1.8-py2.5.egg | Legacy Egg format | - | - | Details for wsgisvc-0.8.1.8-py2.5.egg |
Total release size: 31.3 kB
Release files / wsgisvc-0.8.1.8.zip
| Download URL | wsgisvc-0.8.1.8.zip |
|---|---|
| Size | 8.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
474cd64aedbd671d48f9802fd4deec03bbbc91f684c01e00d576584dce069e4c
|
|
BLAKE2b-256 checksum How to use checksums |
cd769dbd08ac8eda9a89b788277e62f69c9c077ca00bc67ab230f78be23b9ac3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / wsgisvc-0.8.1.8-py2.6.egg
| Download URL | wsgisvc-0.8.1.8-py2.6.egg |
|---|---|
| Size | 11.6 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
2fb5bd5407383d0fdedf8888a08c6598526a8e59d9e721347c4520318ef83cd1
|
|
BLAKE2b-256 checksum How to use checksums |
dfff5f6f574cb2a5cb1a91de2759983fc4877fd9ebf3e212457c6cc2504a0191
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / wsgisvc-0.8.1.8-py2.5.egg
| Download URL | wsgisvc-0.8.1.8-py2.5.egg |
|---|---|
| Size | 11.6 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
c4342177fe3456ac27bb4bbaf9bc0736faa332308643751bc5d9517e3743a445
|
|
BLAKE2b-256 checksum How to use checksums |
d20cbc3f13c834a8203b812d94959b060ff04e95e12d110fabe004f326356ae4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for wsgisvc 0.8.1.8
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.