8000 GitHub - luyanci/Randomwanli: 基于Python+Fastapi+Docker+Zeabur开发部署的随机图片api
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

luyanci/Randomwanli

Repository files navigation

随机梨梨(RandomWanli)

Deployed on Zeabur

Python FastAPI docker github action github action

使用

API地址

部署平台 链接
Vercel https://randomwanli.vercel.app/
Zeabur https://randomwanli.zeabur.app/

html

<img src="https://randomwanli.zeabur.app/?returns=307">

markdown

![randomwanli](https://randomwanli.zeabur.app/?returns=307)

API

link 备注
/ 随机获取一张图片(默认返回json,可307跳转)
/favicon.ico -
/getwanli/{filename} 获取图片
参数

/

参数 可填写内容 备注
returns 307/- 返回方式,默认返回json文本
type jpg/png/gif 获取图片类型,只能选一个
- - 所有参数均可选,可无需填写

/getwanli

参数 填写内容 备注
filename - 文件名
type jpg/png/gif 获取图片类型,只能选一个
- - 所有参数必须填写,否则抛一张404图片

源代码使用/开发

~$ git clone https://github.com/luyanci/randomWanli
~$ cd randomWanli

~/randomWanli$ pip install -r requirements.txt
~/randomWanli$ uvicorn main:app --host 0.0.0.0 --reload

致谢

About

基于Python+Fastapi+Docker+Zeabur开发部署的随机图片api

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors 3

  •  
  •  
  •  

Languages

0