Skip to main content

A full-stack project management CLI tool for Hohu Admin ecosystem.

Project description

HoHu CLI

A modern full-stack development toolkit for the hohu-admin ecosystem.

PyPI version Python License: MIT GitHub Issues

English · 中文


Features

  • Blazing Fast — Built on uv for near-instant CLI response times
  • Smart Init — Auto-detects and installs dependencies (uv sync / pnpm install)
  • Context-Aware — Run commands from any subdirectory via .hohu project config
  • i18n — Full Chinese & English support with automatic system language detection
  • Polished UX — Rich-formatted output with interactive prompts via Questionary

Quick Start

Install

# uv (recommended)
uv tool install hohu

# pip
pip install hohu

Create a Project

hohu create my-project

Select components (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.

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!

  1. Fork the repo
  2. Create a feature branch: git checkout -b feature/my-feature
  3. Commit your changes: git commit -m 'Add my-feature'
  4. Push: git push origin feature/my-feature
  5. Open a Pull Request

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hohu-0.1.4.tar.gz (33.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hohu-0.1.4-py3-none-any.whl (19.8 kB view details)

Uploaded Python 3

File details

Details for the file hohu-0.1.4.tar.gz.

File metadata

  • Download URL: hohu-0.1.4.tar.gz
  • Upload date:
  • Size: 33.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for hohu-0.1.4.tar.gz
Algorithm Hash digest
SHA256 d161106011823a91ce8e6bf699ef74c23b86f06d073a8fa83c5d0075f0a93f1e
MD5 09a12951c22b0dc62fd05908cc3cd247
BLAKE2b-256 9db35c01d01624e8960824aaf64efbd21a50c5745b5680874a78c93e641719cf

See more details on using hashes here.

File details

Details for the file hohu-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: hohu-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 19.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for hohu-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e36965b3f0e6b95ea7397574737c074a6d3e1744f8db491ccfe7df0525c0c6ee
MD5 e262510117d8dd35eb927ce6c15763d0
BLAKE2b-256 e1cb5ffa4dc6fa4dcd58929ac4ebdb0c89eb5ea2a92cf5821a45d3263ceba60b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page