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 4 Arguments - "username(unique for every user), FullName(can be same for different users.), e-mail & password"

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

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

  • 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 3 arguments - "currentUsername, newUsername, password"

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

  • getUserInfo() Takes 1 argument, "the username".. this function takes the username and prints the info of the user like - "email, full name etc."

  • getRawData() This is an Admin Function which prints the file in raw format, eg. all files as it is.

  • clearDB() As The name says, this function clears the database(the text file).

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

  • Future Plans are to implement some encrytion algorithms and also functions to help database admins, eg. encryptData() and decryptData().. while making sure the database is well protected from digital attacks or data breaches.

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.5.tar.gz (4.9 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.5-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for localuserdb-0.5.tar.gz
Algorithm Hash digest
SHA256 73696610d6a322ff2308fb57109d820044397028d7932e7b901a9b406bfc038b
MD5 16f26e33fdcf22ce968230bafbc097c6
BLAKE2b-256 6e4279cf47f9fb48a0c38094740ed06b2a9474398aa305aaa9ff498553245eb3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: localuserdb-0.5-py3-none-any.whl
  • Upload date:
  • Size: 5.4 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 0779981a6cc7cd7e59f408038095d0176b6f5ea06d418448f7b96eecc78bb950
MD5 c473add522fa88ff3774ed9d89ca2249
BLAKE2b-256 5d532c0d1d553421982bffd96de6bf4cf425c38134b7e8a98c56c85ddfb4b3d9

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