Skip to main content

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


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)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page