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

Manage Nginx basic auth files. Think htpasswd as lib. Writes SSHA hashes.

Project Description

Manage Nginx basic auth files.

Implements a subset of commands from htpasswd.

Writes SSHA hashes.


Python 2.7 and libzip headers.


sudo apt-get install libzip-dev

Virtualenv (optional):

sudo apt-get install python-virtualenv


For the current user (recommended):

pip install --user pwman
# make sure you have $HOME/.local/bin on your PATH
pwman --help

In a virtualenv:

# create virtualenv
mkdir -p ~/lib/python
virtualenv ~/lib/python/pwman

# install using virtualenv's pip (>= 0.8.2)
~/lib/python/pwman/bin/pip install pwman

# add ~/bin to your PATH if you have not done so already
cd ~/bin
ln -s ~/lib/python/pwman/bin/pwman

pwman --help


sudo pip install pwman
pwman --help

Tested on vanilla Ubuntu 12.04 Server.


The virtual env:

rm -r ~/bin/pwman ~/lib/python/pwman


First timer:

virtualenv .virtualenv
source .virtualenv/bin/activate
python develop

Next time:

source .virtualenv/bin/activate


This project uses tox.

Install tox:

sudo apt-get install tox



This creates a virtualenvs for all supported versions (see tox.ini) and runs all tests.

Release History

This version
History Node


History Node


Download Files

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

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(3.6 kB) Copy SHA256 Hash SHA256
Source None Aug 11, 2015

Supported By

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 Google Google Cloud Servers DreamHost DreamHost Log Hosting