A Simple Username and Password Manager
Project description
A Simple Username and Password Manager with ConfigParser
Installation
pip install passconfig
Basic Usage
from passconfig import PassConfig
pc = PassConfig()
username, password = pc.get()
print(username, password)
# login or something with username and password
# save if right
# example:
# if login(username, password):
# pc.save()
Example with imaplib
import imaplib
import passconfig
pc = passconfig.PassConfig(section='imap4')
username, password = pc.get() # input at the first time
mail = imaplib.IMAP4_SSL('imap.exmail.qq.com')
res = mail.login(username, password)
if res[0] == 'OK':
pc.save()
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
passconfig-1.0.0.tar.gz
(2.7 kB
view details)
File details
Details for the file passconfig-1.0.0.tar.gz.
File metadata
- Download URL: passconfig-1.0.0.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f05070e88d76669c00ff09cad7e2572ca86e40b8171cbbbc893bf9112d5b42b9
|
|
| MD5 |
7a1a06da3762c265403d9a45d89e836b
|
|
| BLAKE2b-256 |
3faf40b690982a2a6ef2d8e359dc14572d12d95d7b37a7b68aa83d3a1c9f00d7
|