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

Update

# uv
uv tool upgrade hohu

# pip
pip install --upgrade 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.5.tar.gz (33.8 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.5-py3-none-any.whl (19.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hohu-0.1.5.tar.gz
  • Upload date:
  • Size: 33.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for hohu-0.1.5.tar.gz
Algorithm Hash digest
SHA256 8469325809ad469f9e46768f401811886ffa6dc9a5ab1fb5c8ba6d8449a0b95f
MD5 91b3e9cc0b49aa38a1aa51fc11645ff9
BLAKE2b-256 c41f40e636a088a914285569b827c90deb300ade659423a5136fcae76f10744d

See more details on using hashes here.

Provenance

The following attestation bundles were made for hohu-0.1.5.tar.gz:

Publisher: python-publish.yml on aihohu/hohu-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: hohu-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 19.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for hohu-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a36990e65f7d0e4d638508f6a048e508b52f2bdcf41d6bff0762d3b8b516f2da
MD5 ecc64f20996947be7c28ab9a3c9209b8
BLAKE2b-256 f0310e770d2408a5dec45c258dfc4d18c528a0d8f9e2b784b0ec0fda7d2bb93d

See more details on using hashes here.

Provenance

The following attestation bundles were made for hohu-0.1.5-py3-none-any.whl:

Publisher: python-publish.yml on aihohu/hohu-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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