semvec/pypi-packages huggingface dataset:
restful-starlette-admin 0.0.9
Admin CLI for restful-starlette
License: BSD-3-Clause
Requires Python: >=3.7

### Restful Starlette Admin

#### Description : Admin CLI for restful-starlette

-----

#### 1、安装

```shell

# pip源安装
> pip install restful-starlette-admin

# git 仓库直接安装
> pip install git+https://gitee.com/coldsunset/restful_starlette_admin.git

# 使用
> rs-admin

Usage: admin.py [OPTIONS] COMMAND [ARGS]...

  Admin CLI: provide actions to initial restful starlette project

Options:
  --help  Show this message and exit.

Commands:
  init-env
  start-app
  start-project
```

#### 2、初始化项目 start-project
```shell
# 创建项目文件夹并进入
> mkdir project_name && cd project_name

# 初始化项目结构
> rs-admin start-project --name project_name

```

#### 3、生成新应用 start-app
```shell
# 建议按照项目结构，进入modules包下创建新app
> cd  modules

# 初始化项目结构
> rs-admin start-app --name app_name

```

#### 4、自动生成.env文件
```shell
# 根据指定的settings对象路径自动生成.env文件，格式
> rs-admin init-env --setting_class restful_starlette.conf.base:GlobalSettings

```