This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!
Project Description


Start and stop a stunnel instance given a stunnel configuration file.

The stunnel executable must be available on the system PATH. The configuration file must specify a PID file.


Use your favorite installer to install the pystunnel library and script. E.g.:

$ pip install pystunnel


From the command line:

$ pystunnel -c /path/to/stunnel.conf start
$ pystunnel -c /path/to/stunnel.conf check
$ pystunnel -c /path/to/stunnel.conf stop

If the command is omitted, pystunnel enters an interactive shell:

$ pystunnel -c /path/to/stunnel.conf
pystunnel> start
pystunnel> check
pystunnel> stop
pystunnel> quit

From Python:

from pystunnel import Stunnel
stunnel = Stunnel("/path/to/stunnel.conf")

rc = stunnel.start()
print("stunnel started with rc", rc)

if stunnel.check() == 0:
    print("stunnel is running with pid", stunnel.getpid())
    print("stunnel is not running")

rc = stunnel.stop()
print("stunnel stopped with rc", rc)

Return Codes

0 means OK, 1 or higher means error.


1.0a1 - 2016-03-14

  • Initial release.
Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date (19.3 kB) Copy SHA256 Checksum SHA256 Source Mar 14, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting