Skip to main content

A Python interface to create and edit databases, and to hash passwords.

Project description

Usage:

    >>> import db2py
    >>> db = db2py.createdb("mydatabase", {"user1": "password1"})
    >>> db = updatedb(db, {"user2": "PWD2"})
    >>> meth = getmeth()
    >>> for username, pwd in getdb(db):
    ...    db = updatedb(db, {username: hashpwd(pwd, meth)})
    >>> savedb(*getdb(db), "database1.db")
    >>> db = opendb("database1.db")
    >>> deldb("database1.db")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

db2py-0.0.1-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

File details

Details for the file db2py-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: db2py-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.8.0 tqdm/4.45.0 CPython/3.8.3

File hashes

Hashes for db2py-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2324c89aa74bb2df41d1cee4bfdee2b61ca01bc65756326f1065aff2d245a5ce
MD5 dc01a31be047d71d9a7e01f15e779e3c
BLAKE2b-256 1157757c6a2ae628f09ab16883497c306eeb4b78852c3426f9371a12fafcb8e1

See more details on using hashes here.

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