Skip to main content

gesang (格桑花)

一款基于starlette和uvicorn的restful风格的框架,点击进入详细文档

安装

$ pip install gesang

命令

gesang-admin [二级命令] [命令选项],其中二级命令如下

startproject

创建一个新的工程

  • name 工程名称
  • directory 将工程文件夹创建到指定文件夹中,默认是当前文件夹

startapp

创建一个新的应用

  • name 应用名称
  • directory 将应用文件夹创建到指定文件夹中,默认是当前文件夹

runserver

启动一个server服务

  • --host 启动主机地址,默认是127.0.0.1
  • --port 启动端口,默认是8888
  • --enable-log-color 是否启用带有颜色格式的日期,默认是false,设置位true则输出带有颜色的文字(只在console中适用)
  • --enable-reload 是否启用重新加载,默认是false,启用后当修改保存文件会触发重启server服务,一般调试时使用
  • --factory 是否启用工厂模式启用

使用项目中的manage.py文件启动,即python manage.py runserver [options]

更新日志

  • 2021-02-09 安装包名称修改成为gesang
  • 2021-02-08 修改只能允许GET方法的问题,修改版本
  • 2021-02-08 修改去除fastapi基于starlette,添加view类参数验证功能,修改版本
  • 2021-02-05 解决startproject和startapp 没有反应的问题
  • 2021-02-04 首次上传

Metadata

Release files for gesang 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gesang 1.0.1
File Size Uploaded Provenance Actions
gesang-1.0.1.tar.gz 13.7 kB Without provenance Details for gesang-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gesang 1.0.1
File Interpreter ABI Platform Actions
gesang-1.0.1-py3-none-any.whl Python 3 none any Details for gesang-1.0.1-py3-none-any.whl

Total release size: 35.0 kB

Release files / gesang-1.0.1.tar.gz

Download URL gesang-1.0.1.tar.gz
Size 13.7 kB
Tags Source
SHA-256 checksum
How to use checksums
6e50043928c166ac39675d0ab3e102f4f75a01b8778f60a794f1ff74730e7080
BLAKE2b-256 checksum
How to use checksums
83ee6b91ea628d78ee1def731157fe40fae8cff8501c6c0a4d02e0ac4d67e16e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.8

Release files / gesang-1.0.1-py3-none-any.whl

Download URL gesang-1.0.1-py3-none-any.whl
Size 21.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c0ab749fe8e7510f235a6f19b6840e2ee14fca24591fe442c5cebcd05eaedd1c
BLAKE2b-256 checksum
How to use checksums
b782e6cca3b43db1d7cd9de6b3a25bfa83d800539c5a394c874ada7873ee0ff1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.8

Security for gesang 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page