A restful api framework with starlette.
Project description
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 首次上传
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gesang-1.0.1.tar.gz
(13.7 kB
view details)
Built Distribution
gesang-1.0.1-py3-none-any.whl
(21.3 kB
view details)
File details
Details for the file gesang-1.0.1.tar.gz
.
File metadata
- Download URL: gesang-1.0.1.tar.gz
- Upload date:
- Size: 13.7 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e50043928c166ac39675d0ab3e102f4f75a01b8778f60a794f1ff74730e7080 |
|
MD5 | da63caa89e0cad8c1a9738fe1691132b |
|
BLAKE2b-256 | 83ee6b91ea628d78ee1def731157fe40fae8cff8501c6c0a4d02e0ac4d67e16e |
File details
Details for the file gesang-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: gesang-1.0.1-py3-none-any.whl
- Upload date:
- Size: 21.3 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0ab749fe8e7510f235a6f19b6840e2ee14fca24591fe442c5cebcd05eaedd1c |
|
MD5 | 87cf67f8cf49b79033ab0e9808372352 |
|
BLAKE2b-256 | b782e6cca3b43db1d7cd9de6b3a25bfa83d800539c5a394c874ada7873ee0ff1 |