Skip to content

suqingdong/passconfig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A Simple Username and Password Manager with ConfigParser

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages