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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| passconfig-1.0.0.tar.gz | 2.7 kB | Without provenance | Details for passconfig-1.0.0.tar.gz |
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
|
Security for passconfig 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.