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 hashes)