User Management System logo

User Management System

by s091648

This is a user management system based on FastAPI and Clean Architecture. The system uses CSV files as data storage and implements basic user management functions.

View on GitHub

Last updated: N/A

What is User Management System?

A user management system built with FastAPI and a Clean Architecture, storing data in CSV files. It provides basic user management functionalities.

How to use User Management System?

  1. Create a virtual environment.
  2. Install dependencies using pip install -r requirements.txt.
  3. Run the application using uvicorn app.main:app --reload.
  4. Access the Swagger UI documentation at http://localhost:8000/docs or http://localhost:8000/redoc.

Key features of User Management System

  • User management CRUD operations

  • CSV file data storage

  • User data validation

  • Batch user import

  • User age statistical analysis

Use cases of User Management System

  • Managing user accounts

  • Storing user data in CSV format

  • Validating user information

  • Importing users from CSV files

  • Analyzing user age statistics

FAQ from User Management System

What is the data format for users?

The user model requires 'Name' (string) and 'Age' (integer, non-negative).

What is the required format for the CSV file?

The CSV file must include 'Name' and 'Age' columns.

How do I handle errors?

The system uses a unified error handling mechanism with standardized JSON format. Errors inherit from AppBaseException.

What are the data validation rules?

User 'Name' cannot be empty and must be provided. User 'Age' must be a non-negative integer and must be provided.

How can I run this application in a container?

You can build a Docker image using docker build -t user-management . and run it using docker run -p 8000:8000 user-management.