Skip to main content

Admin CLI for restful-starlette

Project description

Restful Starlette Admin

Description : Admin CLI for restful-starlette


1、安装

# 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

# 创建项目文件夹并进入
> mkdir project_name && cd project_name

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

3、生成新应用 start-app

# 建议按照项目结构,进入modules包下创建新app
> cd  modules

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

4、自动生成.env文件

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

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

restful_starlette_admin-0.0.8.tar.gz (6.6 kB view hashes)

Uploaded Source

Built Distribution

restful_starlette_admin-0.0.8-py3-none-any.whl (7.1 kB view hashes)

Uploaded Python 3

Supported by

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