A full-stack project management CLI tool for Hohu Admin ecosystem.
Project description
Features
- Blazing Fast — Built on
uvfor near-instant CLI response times - Smart Init — Auto-detects and installs dependencies (
uv sync/pnpm install), auto-installsuvif missing - Context-Aware — Run commands from any subdirectory via
.hohuproject config - i18n — Full Chinese & English support with automatic system language detection
- Polished UX — Rich-formatted output with interactive prompts via Questionary
About hohu-admin
hohu-admin is an enterprise-grade full-stack admin management platform built for the AI era. It provides a complete set of production-ready backend infrastructure out of the box — user authentication, RBAC permission control, distributed ID generation, database migration, log monitoring, and API documentation — so developers can focus on business innovation instead of repetitive boilerplate.
Highlights
- Async High Performance — Full async pipeline (FastAPI + SQLAlchemy 2.0 async + PostgreSQL)
- Distributed Snowflake ID — Time-ordered, high-performance primary keys with automatic
BigInt→ string serialization - RBAC Permission Model — User-Role-Menu based access control with button-level granularity
- Dual Auth Support — OAuth2 form login (Swagger UI) + JSON login (SPA), with Redis token blacklist
- Unified API Response — Consistent
{code, message, data}envelope across all endpoints - Auto Case Conversion — Backend
snake_case↔ FrontendcamelCasevia Pydanticalias_generator
Projects
| Project | Description | Tech Stack |
|---|---|---|
| hohu-admin | Backend API | FastAPI, SQLAlchemy 2.0 (async), PostgreSQL, Redis |
| hohu-admin-web | Admin dashboard | Vue 3, NaiveUI, UnoCSS, Pinia, TypeScript |
| hohu-admin-app | Mobile app | uni-app, Vue 3, Wot Design Uni, alova |
Quick Start
Install
# uv (recommended)
uv tool install hohu
# pip
pip install hohu
Update
# uv
uv tool upgrade hohu
# pip
pip install --upgrade hohu
Create a Project
hohu create my-project
Confirm each component (Backend / Frontend / App) interactively. Defaults to hohu-admin if no name is given.
Install Dependencies
cd my-project
hohu init
Automatically detects project config and installs all dependencies.
Windows Users: If
hohu initfails withEPERM: operation not permitted, symlink, try the following:
- Enable Developer Mode in Windows Settings: Settings → Update & Security → For developers → Developer Mode. This allows symlink creation without admin privileges.
- Run your terminal as Administrator.
- Check your antivirus software (e.g., 360, Huorong) — some may block symlink creation. Try adding the project directory to the exclusion list or temporarily disabling real-time protection.
Switch Language
hohu lang
Development Server
hohu dev launches all services in a single terminal with merged, color-coded log output.
hohu dev # Start all components
hohu dev -o be # Backend only
hohu dev -s app # Frontend + Backend, skip App
hohu dev -t mp # App in WeChat Mini Program mode
Options
| Option | Short | Description | Default |
|---|---|---|---|
--app-target |
-t |
App runtime: h5 / mp / app |
h5 |
--only |
-o |
Only start specified components (repeatable) | all |
--skip |
-s |
Skip specified components (repeatable) | none |
Component aliases (case-insensitive): be / backend, fe / frontend, app
Log Colors
| Prefix | Color | Service |
|---|---|---|
[Backend] |
green | FastAPI |
[Frontend] |
cyan | Vite / pnpm |
[App] |
yellow | Uni-app |
Press Ctrl+C for graceful shutdown — all child processes are terminated cleanly.
Command Reference
| Command | Description |
|---|---|
hohu create [NAME] |
Create project and clone repo templates |
hohu init |
Install all sub-project dependencies |
hohu dev |
Start development server |
hohu lang |
Switch display language (zh / en / auto) |
hohu info |
View current CLI configuration |
hohu --version |
Show version |
hohu --help |
Show help |
Project Structure
my-project/
├── .hohu/ # Project config
├── hohu-admin/ # Backend — FastAPI / uv
├── hohu-admin-web/ # Frontend — Vue 3 / pnpm
└── hohu-admin-app/ # App — Uni-app / pnpm
Tech Stack
| Layer | Tool |
|---|---|
| CLI Framework | Typer |
| Terminal UI | Rich + Questionary |
| Package Manager | uv |
| Backend | FastAPI |
| Frontend | Vue 3 |
| App | Uni-app |
Contributing
Issues and Pull Requests are welcome!
- Fork the repo
- Create a feature branch:
git checkout -b feature/my-feature - Commit your changes:
git commit -m 'Add my-feature' - Push:
git push origin feature/my-feature - Open a Pull Request
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hohu-0.1.7.tar.gz.
File metadata
- Download URL: hohu-0.1.7.tar.gz
- Upload date:
- Size: 38.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
46a201caa4abbf657768d71cf796a8a378091100bb14dcc6d258c8f319a863ec
|
|
| MD5 |
24cb1724574165bbd361ef19019230d2
|
|
| BLAKE2b-256 |
1b213c23923f474cbc73b12c29525712c341262a211e0c908b14e6529dae7913
|
Provenance
The following attestation bundles were made for hohu-0.1.7.tar.gz:
Publisher:
python-publish.yml on aihohu/hohu-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hohu-0.1.7.tar.gz -
Subject digest:
46a201caa4abbf657768d71cf796a8a378091100bb14dcc6d258c8f319a863ec - Sigstore transparency entry: 1283187332
- Sigstore integration time:
-
Permalink:
aihohu/hohu-cli@5c5e17e3d307fcac439689d5a7c5511f86ed0d4a -
Branch / Tag:
refs/tags/v0.1.7 - Owner: https://github.com/aihohu
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@5c5e17e3d307fcac439689d5a7c5511f86ed0d4a -
Trigger Event:
release
-
Statement type:
File details
Details for the file hohu-0.1.7-py3-none-any.whl.
File metadata
- Download URL: hohu-0.1.7-py3-none-any.whl
- Upload date:
- Size: 23.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c40662cece95a1e69f2485ea68d92f5f7f2f62aa6d1419024a952f1a4a10cd2
|
|
| MD5 |
915897df7a891c5100f47dd1937b0646
|
|
| BLAKE2b-256 |
79dd0d134b79f971ecc35cdee079a97e8c755b9e5553ee95777ecc0a50c81849
|
Provenance
The following attestation bundles were made for hohu-0.1.7-py3-none-any.whl:
Publisher:
python-publish.yml on aihohu/hohu-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hohu-0.1.7-py3-none-any.whl -
Subject digest:
3c40662cece95a1e69f2485ea68d92f5f7f2f62aa6d1419024a952f1a4a10cd2 - Sigstore transparency entry: 1283187340
- Sigstore integration time:
-
Permalink:
aihohu/hohu-cli@5c5e17e3d307fcac439689d5a7c5511f86ed0d4a -
Branch / Tag:
refs/tags/v0.1.7 - Owner: https://github.com/aihohu
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@5c5e17e3d307fcac439689d5a7c5511f86ed0d4a -
Trigger Event:
release
-
Statement type: