Skip to main content

A script to install paste deployment configurations as windows services.

Project description

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. Python extensions for Windows are a prerequisite. If you don’t have them download (http://sourceforge.net/project/showfiles.php?group_id=78018) them and install.

2. Extend your *.ini file

with a [winservice] section. The list of options you can use:

  • svc_name

  • svc_display_name

  • svc_description

  • log_file

  • virtual_env

If you don’t use the [winservice] section, the configuration file will be used as service name. Sensible defaults will be made up for the rest.

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

Source code of the package

http://bitbucket.org/tibor_arpas/wsgisvc/

Any feedback or corrections are appreciated.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wsgisvc-0.8.2.0.zip (14.1 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

wsgisvc-0.8.2.0-py2.6.egg (11.8 kB view details)

Uploaded Egg

wsgisvc-0.8.2.0-py2.5.egg (11.8 kB view details)

Uploaded Egg

File details

Details for the file wsgisvc-0.8.2.0.zip.

File metadata

  • Download URL: wsgisvc-0.8.2.0.zip
  • Upload date:
  • Size: 14.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for wsgisvc-0.8.2.0.zip
Algorithm Hash digest
SHA256 4e53df62616cc043ab15388529a0b3e0df398291dd471b469afb4fbe3dd15647
MD5 da4fc1862e6c0b15241d6efa1718b6f0
BLAKE2b-256 b428abd24beee0da3cc2b3a38e1488bc24503fc712616cc97117ab9a013f06c5

See more details on using hashes here.

File details

Details for the file wsgisvc-0.8.2.0-py2.6.egg.

File metadata

  • Download URL: wsgisvc-0.8.2.0-py2.6.egg
  • Upload date:
  • Size: 11.8 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for wsgisvc-0.8.2.0-py2.6.egg
Algorithm Hash digest
SHA256 98e49d470387beb9f223c85bcca0525d1b43172b3b499b2cdc77bdfa74dfe1e5
MD5 fa576d02b709f77dae2c8cbdcf96bd16
BLAKE2b-256 7e4f9d67bb62a29bc3f6cadb41fc0f225fd08766959f2b6ea36f80c3a892dd92

See more details on using hashes here.

File details

Details for the file wsgisvc-0.8.2.0-py2.5.egg.

File metadata

  • Download URL: wsgisvc-0.8.2.0-py2.5.egg
  • Upload date:
  • Size: 11.8 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for wsgisvc-0.8.2.0-py2.5.egg
Algorithm Hash digest
SHA256 c6c0ba6b1b7d7a390b382292b9c1702e67916ef00783790e8196eeddcdc6368d
MD5 913deddb60e5063ee9e9f30a9f9916f9
BLAKE2b-256 3c91df6097028616d509010de114d8252b500a594f370358a08ac6fe9dbc6557

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page