User Management System

by s091648

147 downloads
Not rated
GitHub

About

User Management System is a FastAPI-based application designed with Clean Architecture for managing user data. It uses CSV files as its data storage layer and provides CRUD operations, batch import, and age-based statistical analysis.

Details

Author
s091648
Downloads
147
Categories
Other

- User CRUD operations (create, read, delete)
- CSV file-based data storage
- User data validation (Name, Age)
- Batch user import from CSV
- Average age grouped by first letter of name

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name User Management System
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Create a virtual environment (python -m venv venv), install dependencies (pip install -r requirements.txt), then run the application with uvicorn app.main:app --reload. Access the API via http://localhost:8000/docs for Swagger UI.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "user management system": {
            "my_practice": {
                "command": "python",
                "args": [
                    "-m",
                    "venv",
                    "venv"
                ]
            }
        }
    }
}

McpServers

{
    "my_practice": {
        "command": "python",
        "args": [
            "-m",
            "venv",
            "venv"
        ]
    }
}

User Management System

這是一個基於 FastAPI 和 Clean Architecture 設計的使用者管理系統。系統採用 CSV 檔案作為資料存儲,實現了基本的使用者管理功能。

> 📝 本文檔由 Cursor AI 協助生成,基於專案的實際架構和程式碼進行分析後產生。

專案架構

<details open>

專案採用清晰架構(Clean Architecture)設計,目錄結構如下:

app/
├── api/            # API 層,處理 HTTP 請求
├── core/           # 核心配置和共用元件
├── domain/         # 領域模型和業務規則
├── infrastructure/ # 基礎設施實作(如 CSV 存儲)
├── interfaces/     # 介面定義
└── use_cases/      # 使用案例實作
tests/              # 測試目錄
├── conftest.py            # Pytest 共用測試夾具
├── test_csv_parser.py     # CSV 解析器測試
├── test_main.py          # 主應用程式測試
├── test_user_repository.py# Repository 層測試
├── test_user_router.py   # API 層測試
├── test_user_use_case.py # Use Case 層測試
└── __init__.py           # Python 包標識檔

</details>

功能特點

<details open>

- 使用者管理 CRUD 操作
- CSV 檔案資料存儲
- 使用者資料驗證
- 批量使用者導入
- 使用者年齡統計分析

</details>

API 端點

<details open>

- POST /create_user - 創建新使用者
- DELETE /delete_user - 刪除使用者
- GET /get_added_user - 獲取已添加的使用者列表
- POST /add_multiple_users_from_csv - 從 CSV 檔案批量導入使用者
- GET /calc_average_age_of_user_grouped_by_first_char_of_name - 計算按名字首字母分組的平均年齡

</details>

安裝與設置

<details open>

1. 建立虛擬環境:
```bash
python -m venv venv
source venv/bin/activate # Linux/Mac

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.