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.
Coverage docs: http://nedbatchelder.com/code/coverage/
Project details
Release history Release notifications | RSS feed
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)
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd1f90c6efe7626e0da66bac7a058379620dcc45ac19ddd2c4bc60386c9a6a2d |
|
MD5 | 763ed7b70eafe9c7ffde708d55999958 |
|
BLAKE2b-256 | 5d5766735dc381302adf9f509acf6dde770f57a587d7d6b2c59477eb2f170b49 |