Skip to content

A Python class implementing a simple user management system using the Singleton design pattern. The `UserManager` class allows you to add, update, retrieve, and delete user information.

Notifications You must be signed in to change notification settings

nurlibekrauan/user-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

User Manager

A Python class implementing a simple user management system using the Singleton design pattern. The UserManager class allows you to add, update, retrieve, and delete user information.

Features

  • Add new users
  • Add and update user data
  • Retrieve user data
  • Delete users and user data
  • Singleton pattern to ensure only one instance of the UserManager

Usage

from user_manager import UserManager

# Create an instance of UserManager
users = UserManager()

# Add users
users.add_user("alice")
users.add_user("bob")

# Add data to users
users.add_user_data("alice", "age=25")
users.add_user_data("bob", "[email protected]")

# Update user data
users.user_change_data("alice", "age=26")

# Retrieve user data
print(users.get_user_data("bob", "email"))

# Delete user data
users.del_user_data("alice", "city")

# Delete a user
users.del_user("bob")

About

A Python class implementing a simple user management system using the Singleton design pattern. The `UserManager` class allows you to add, update, retrieve, and delete user information.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages