# fly
![python](https://img.shields.io/badge/python-3.6%20%7C%203.7%20%7C%203.8%20%7C%203.9%20%7C%203.10-blue)
![pypi](https://badge.fury.io/py/fly-server.svg)
![test](https://github.com/tatsuya4649/fly/actions/workflows/fly-test.yaml/badge.svg)
Python lightweight web application framework.
* Event driven architecture.
* Usable as Web server and Application server.
* Lightweight and fast.
## Install
```
$ pip install fly-server
```
## Hello World
It is so easy to use fly.
1. import fly and make fly instance.
2. mount directory and registery route.(option)
3. run fly.
```python
from fly import Fly
app = Fly()
@app.get("/")
def index(request):
return "Hello, fly!"
```
```
$ fly app.py
```
<details>
<summary>result</summary>
<div>
```
* fly Running on 0.0.0.0:1234 (Press CTRL+C to quit)
* fly 5 workers
* SSL: False
* SSL certificate path: conf/server.crt
* SSL key path: conf/server.key
* Log directory path: ~/log
* Mount paths ()
```
</div>
</details>
<details>
<summary>mount vs route</summary>
<div>
* mount: use for static content(css, html, js)
* route: use for dynamic content(like CGI)
</div>
</details>
## Why fly ?
Interface of fly is as simple as possible. Extracted only the necessary parts as Web framework by referring to variout Python web frameworks.
But, a core part of fly is implemented by C language, you can't think of it as Python Web framework.
So, if you're looking for **flexible** and **fast** Web framework, should use fly.
## How fast ?
look at [benchmark](https://github.com/tatsuya4649/fly/blob/develop/bench/README.md).
## HTTP version
HTTP1.1, HTTP1.1 over TLS/SSL, HTTP2 over TLS/SSL.
## Contributing
Let's coding.
1. Fork fly.
2. Create a feature branch. (git checkout -b `new-feature`)
3. Commit your changes. (git commit -m `explain of commit`)
4. Push to the bench. (git push origin my-new-feature)
5. Create new pull request.
## Running tests
```
# move to fly project directory and run following command.
$ python3 -m pytest
```
没有合适的资源?快使用搜索试试~ 我知道了~
PyPI 官网下载 | fly_server-1.1.1.tar.gz
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 119 浏览量
2022-01-11
20:13:42
上传
评论
收藏 4.39MB GZ 举报
温馨提示
共306个文件
o:70个
h:42个
c:39个
资源来自pypi官网。 资源全名:fly_server-1.1.1.tar.gz
资源推荐
资源详情
资源评论
收起资源包目录
PyPI 官网下载 | fly_server-1.1.1.tar.gz (306个子文件)
libfly.so.0 775KB
libfly.so.0.0.0 775KB
libfly.so.0 775KB
libfly.so.0.0.0 775KB
libfly.a 1.2MB
libfly.a 1.2MB
configure.ac 3KB
Makefile.am 527B
Makefile.am 39B
v2.c 138KB
response.c 37KB
encode.c 34KB
request.c 34KB
pyserver.c 31KB
mime.c 29KB
rbtree.c 23KB
worker.c 23KB
event.c 20KB
master.c 19KB
header.c 16KB
mount.c 15KB
log.c 13KB
err.c 13KB
charset.c 10KB
lang.c 9KB
buffer.c 9KB
body.c 9KB
conf.c 8KB
connect.c 8KB
ssl.c 7KB
alloc.c 4KB
cache.c 4KB
server.c 3KB
context.c 3KB
route.c 3KB
version.c 3KB
ftime.c 2KB
method.c 2KB
fsignal.c 2KB
pysignal.c 1KB
str.c 788B
scheme.c 757B
util.c 369B
uri.c 367B
math.c 294B
pyversion.c 23B
bllist.c 20B
queue.c 19B
setup.cfg 956B
compile 7KB
fly.conf 2KB
configure 494KB
depcomp 23KB
config.guess 48KB
v2.h 12KB
config.h 10KB
event.h 8KB
response.h 6KB
mime.h 6KB
err.h 5KB
encode.h 5KB
buffer.h 5KB
header.h 5KB
mount.h 4KB
request.h 4KB
log.h 4KB
alloc.h 2KB
context.h 2KB
body.h 2KB
char.h 2KB
master.h 2KB
connect.h 2KB
fsignal.h 2KB
rbtree.h 2KB
route.h 1KB
util.h 1KB
queue.h 1KB
worker.h 1KB
server.h 1KB
conf.h 1KB
ssl.h 1014B
version.h 976B
pyserver.h 930B
cache.h 914B
bllist.h 879B
method.h 874B
charset.h 872B
lang.h 774B
ftime.h 561B
str.h 497B
scheme.h 449B
uri.h 409B
fly.h 278B
pysignal.h 231B
pyversion.h 187B
math.h 119B
Makefile.in 62KB
Makefile.in 25KB
config.h.in 10KB
MANIFEST.in 387B
共 306 条
- 1
- 2
- 3
- 4
资源评论
挣扎的蓝藻
- 粉丝: 13w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功