The SyncSphere is a Python-based application that provides functionalities for user registration, updating, and deletion. It utilizes a MySQL database to store user data securely. This type of sql model is also used by GitLab.
- User registration with email and password
- Update user details
- Delete user accounts
- Input validation and error handling
- Password hashing for secure storage
- Python
- MySQL
- bcrypt for password hashing
- MySQL Connector/Python
- Python 3.x
- MySQL server
- pip for installing packages
-
Clone the repository:
git clone https://github.com/Sanidhyafeaturist/SyncSphere.git
cd SyncSphere
-
Set up the databases:
- Run the SQL scripts located in the db directory:
db1.sql
for user credentialsdb2.sql
for additional user data
- Run the SQL scripts located in the db directory:
-
Update Configuration:
- Edit
user_management/config.py
to set your database connection parameters.
- Edit
To use the User Management System, you can run the main script or integrate it into your own application.
-
Import the UserManager class:
from user_management.db_manager import UserManager
-
Initialize UserManager:
user_manager = UserManager()
-
User inputs for registration:
username = input("Enter your username: ")
email = input("Enter your email: ")
password = input("Enter your password: ")
-
Register the user:
user_manager.register_user(username, email, password)
-
Close connections when done:
user_manager.close_connections()
Contributions are welcome! If you have suggestions for improvements or new features, please open an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
- MySQL for the database.
- bcrypt for password hashing.