Skip to main content

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

Metadata

Release files for passconfig 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for passconfig 1.0.0
File Size Uploaded
passconfig-1.0.0.tar.gz 2.7 kB Details

Release files / passconfig-1.0.0.tar.gz

Download URL passconfig-1.0.0.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
f05070e88d76669c00ff09cad7e2572ca86e40b8171cbbbc893bf9112d5b42b9
BLAKE2b-256 checksum
How to use checksums
3faf40b690982a2a6ef2d8e359dc14572d12d95d7b37a7b68aa83d3a1c9f00d7
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.0.0 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page