Skip to main content

Simple command line client to manage nginx basic auth files. Think htpasswd (but not quite) as lib. Writes SSHA hashes.

Project description

Simple manager for nginx basic auth files. Think htpasswd (but not quite) as lib. Writes SSHA hashes.

Dependencies

Python 2.7 and libzip headers.

Ubuntu:

sudo apt-get install libzip-dev

Virtualenv (optional):

sudo apt-get install python-virtualenv

Install

In a virtualenv (recommended):

# go where pwman should live
mkdir -p ~/lib/python/pwman
cd ~/lib/python/pwman

# create virtualenv
virtualenv .virtualenv

# install using virtualenv's pip (>= 0.8.2)
.virtualenv/bin/pip install https://github.com/felixhummel/pwman/archive/1.0.0.zip

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

# use
pwman --help

Globally:

sudo pip install https://github.com/felixhummel/pwman/archive/1.0.0.zip
pwman --help

Tested on vanilla Ubuntu 12.04 Server.

Uninstall

The virtual env:

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

Develop

First timer:

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

Next time:

. bin/activate

Testing

This project uses tox.

Install tox:

sudo apt-get install tox

Run:

tox

This creates a virtualenv in .tox/py27 and runs all tests.

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

pwman-1.0.1.tar.gz (3.4 kB view details)

Uploaded Source

File details

Details for the file pwman-1.0.1.tar.gz.

File metadata

  • Download URL: pwman-1.0.1.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pwman-1.0.1.tar.gz
Algorithm Hash digest
SHA256 bd1f90c6efe7626e0da66bac7a058379620dcc45ac19ddd2c4bc60386c9a6a2d
MD5 763ed7b70eafe9c7ffde708d55999958
BLAKE2b-256 5d5766735dc381302adf9f509acf6dde770f57a587d7d6b2c59477eb2f170b49

See more details on using hashes here.

Supported by

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