Skip to main content

A user management module for Python

Project description

LocalUserDB

This is a simple python package which just uses a local txt file to store user info for your python code..

Functions

  • createUser() Takes only 3 Arguments - "username(unique for every user), FullName(can be same for different users.) & e-mail"

  • findUser() Takes only 1 argument - "username(as it is unique for every user.)"

  • deleteUser() Takes only 1 argument - "username(as it is unique for every user.)"

  • verifyUser() Takes only 3 arguments - "username, sender's mail(google), sender's mail-password(google)"

    • this feature verifies the user using an otp function.. which will be sent to the mail registered to the account when creating it.
  • editUsername() Takes only 2 arguments - "currentUsername, newUsername"

  • editMail() Takes only 2 arguments - "currentMail, newMail"

How To Use

I advise you to use a virtual environment of python and then use this package as this package makes a customers.txt file in the directory the package source files are.. so if you make a virtual enironment(venv), then it would be easy for you developers to access that customers.txt file in your local directory.

How To Make A Virual Environment (venv)

  • In Python 3, you just have to run the command python -m venv [name-of-your-venv] and it will create a venv in the local directory you are in.
  • After making a venv, you have to activate it and to do that, you'll have to run another command which is .\[name-of-your-venv]\Scripts\activate
  • After you activate the venv, you just have to install this package using pip as you normally do with the command pip install localuserdb or in some systems python -m pip install localuserdb
  • After the installation, you'll be able to import and use it in your project and also you'll find the customers.txt file in the lib/site-packages/localuserdb folder in your venv folder.

For Future

Features like user credentials editing will be added and examples about how to use this package will be made public on my github - (https://github.com/akshprooo)

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

localuserdb-0.4.1.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

localuserdb-0.4.1-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file localuserdb-0.4.1.tar.gz.

File metadata

  • Download URL: localuserdb-0.4.1.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for localuserdb-0.4.1.tar.gz
Algorithm Hash digest
SHA256 d6c5df2cca1f99eb7c44802270b29df000c543714dd7239b78b22355580647c1
MD5 d5dee915fd68ed794553bf4bf8ef9b98
BLAKE2b-256 16a9608fe411b55c567aabd3fd19b300c73d4ad90544ee0d01f19d49586e22d3

See more details on using hashes here.

File details

Details for the file localuserdb-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: localuserdb-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for localuserdb-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e95bcdb6ddea4e3c7547587a3733a5eb3f8550f84f4f9345b78f75dd56f1f778
MD5 f42e5abc0fdebd10e2b3174e95d19702
BLAKE2b-256 ae80e5cc38c64b44b1f5ddf064ff843738a1ff24300f1e3938d6005210c58b92

See more details on using hashes here.

Supported by

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