# Password Manager
[](https://travis-ci.org/patarapolw/pypwm)
[](https://pypi.python.org/pypi/pypwm/)
[](https://pypi.python.org/pypi/pypvm/)
[](https://pypi.python.org/pypi/pypwm/)
[](https://pypi.python.org/pypi/pypwm/)
[](https://github.com/boxed/pytest-readme)
A library for password manager for Python
## Features
- Automatic vault locking and saving after predefined time (default 60 sec)
- Vault file generation
- Passcode lock with RSA (based on PyCryptodome)
## Installation
```commandline
pip install pypwm
```
or
```commandline
pipenv install -e git+https://github.com/patarapolw/pypwm.git#egg=pypwm
```
## Usage
```python
from pwm.vault import Vault
with Vault('amasterpassword') as vault:
vault['reddit'] = {
'password': 'averycomplexpassword'
}
with Vault('amasterpassword') as vault:
print(vault['reddit']['password'])
```
## Real-world usage
```python
do_exit = False
while not do_exit:
try:
while True:
try:
vault = Vault(getpass('Please enter the master password : '))
break
except ValueError:
continue
while not do_exit:
print('Password available for:', ', '.join(dict(vault).keys()))
name = input('Please type the name of password to view or create a new one, or press q to exit. : ')
if name == 'q':
do_exit = True
break
new_entry = dict(vault).get(name, {
'password': generate_password(),
})
print(new_entry)
if input('Do you want to save? Press [y/Y] to save: ').lower() == 'y':
vault[name] = new_entry
vault.close()
except AttributeError:
continue
```
## Found in
- https://github.com/patarapolw/memorable-password
[](https://travis-ci.org/patarapolw/pypwm)
[](https://pypi.python.org/pypi/pypwm/)
[](https://pypi.python.org/pypi/pypvm/)
[](https://pypi.python.org/pypi/pypwm/)
[](https://pypi.python.org/pypi/pypwm/)
[](https://github.com/boxed/pytest-readme)
A library for password manager for Python
## Features
- Automatic vault locking and saving after predefined time (default 60 sec)
- Vault file generation
- Passcode lock with RSA (based on PyCryptodome)
## Installation
```commandline
pip install pypwm
```
or
```commandline
pipenv install -e git+https://github.com/patarapolw/pypwm.git#egg=pypwm
```
## Usage
```python
from pwm.vault import Vault
with Vault('amasterpassword') as vault:
vault['reddit'] = {
'password': 'averycomplexpassword'
}
with Vault('amasterpassword') as vault:
print(vault['reddit']['password'])
```
## Real-world usage
```python
do_exit = False
while not do_exit:
try:
while True:
try:
vault = Vault(getpass('Please enter the master password : '))
break
except ValueError:
continue
while not do_exit:
print('Password available for:', ', '.join(dict(vault).keys()))
name = input('Please type the name of password to view or create a new one, or press q to exit. : ')
if name == 'q':
do_exit = True
break
new_entry = dict(vault).get(name, {
'password': generate_password(),
})
print(new_entry)
if input('Do you want to save? Press [y/Y] to save: ').lower() == 'y':
vault[name] = new_entry
vault.close()
except AttributeError:
continue
```
## Found in
- https://github.com/patarapolw/memorable-password
Metadata
Release files for pypwm 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pypwm-0.2.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Release files / pypwm-0.2.1-py2.py3-none-any.whl
| Download URL | pypwm-0.2.1-py2.py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
836ce984c1d61df8f2238ac4906b1488e4cb516c222cb94b48824671d3d9a6e5
|
|
BLAKE2b-256 checksum How to use checksums |
e9c6fa5c782acda7af24974d62f31a381dcc2f8ffe5c7e0aa39e147592819e87
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |