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

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)

Uploaded Source

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

Hashes for passconfig-1.0.0.tar.gz
Algorithm Hash digest
SHA256 f05070e88d76669c00ff09cad7e2572ca86e40b8171cbbbc893bf9112d5b42b9
MD5 7a1a06da3762c265403d9a45d89e836b
BLAKE2b-256 3faf40b690982a2a6ef2d8e359dc14572d12d95d7b37a7b68aa83d3a1c9f00d7

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.0 This release

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page