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.2.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.2-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: localuserdb-0.4.2.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.2.tar.gz
Algorithm Hash digest
SHA256 befe20ae1f187b5a6fab249fa6739722906daaf70dfe6e0219bf47d9a556a3f3
MD5 d6582e6e5cbda7ee95ed6eaa2aa06464
BLAKE2b-256 4a0ed77372c03b668e215a5497a6606174c96bebff096fbab6e45c5df4def1ab

See more details on using hashes here.

File details

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

File metadata

  • Download URL: localuserdb-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 4.6 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 87176b1d2b7a2c0ceae49b8487ffe8875961864b7e11f00cdb1481063ad5da11
MD5 0fe2eef5f3bb9d91b899364632f0f10d
BLAKE2b-256 aa674c0be0edef5d4a19183b9553455b5f91088327f12f03386f1521347113dc

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