1 Star 0 Fork 20

zhangz/ToyFastapiSmartAdmin

forked from zyx/ToyFastapiSmartAdmin 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
依赖包.txt 5.85 KB
一键复制 编辑 原始数据 按行查看 历史
zyx 提交于 2023-10-25 10:16 . code add
pip install fastapi[all] -i https://mirrors.aliyun.com/pypi/simple/
pip install aiosmtplib -i https://mirrors.aliyun.com/pypi/simple/ (邮件)
pip install fastapi_mail -i https://mirrors.aliyun.com/pypi/simple/ (第三方邮件)
pip install pillow -i https://mirrors.aliyun.com/pypi/simple/ (图形 和声音 验证码)
pip install opentracing==2.4.0 -i https://mirrors.aliyun.com/pypi/simple/
pip install jaeger-client==4.8.0 -i https://mirrors.aliyun.com/pypi/simple/
pip install sentry_sdk -i https://mirrors.aliyun.com/pypi/simple/ (依赖SQLAlchemy)
pip install SQLAlchemy -i https://mirrors.aliyun.com/pypi/simple/
pip install sqlacodegen -i https://mirrors.aliyun.com/pypi/simple/
pip install redis==4.4.0 -i https://mirrors.aliyun.com/pypi/simple/
pip install redis[hiredis] -i https://mirrors.aliyun.com/pypi/simple/
pip install aioredis -i https://mirrors.aliyun.com/pypi/simple/
# 微信支付SDK依赖的:
pip install xmltodict -i https://mirrors.aliyun.com/pypi/simple/
pip install optionaldict -i https://mirrors.aliyun.com/pypi/simple/
# 日志记录:
pip install loguru -i https://mirrors.aliyun.com/pypi/simple/
#JWT
pip install PYJWT -i https://mirrors.aliyun.com/pypi/simple/
pip install requests -i https://mirrors.aliyun.com/pypi/simple/
# 日志插件需要
pip install user_agents -i https://mirrors.aliyun.com/pypi/simple/
pip install shortuuid -i https://mirrors.aliyun.com/pypi/simple/
pip install pycryptodome -i https://mirrors.aliyun.com/pypi/simple/
性能分析:
pip install pyinstrument -i https://mirrors.aliyun.com/pypi/simple/
# 定义定时
pip install rocketry -i https://mirrors.aliyun.com/pypi/simple/ (包含了redbird) -i https://mirrors.aliyun.com/pypi/simple/
pip install rocketry -i https://mirrors.aliyun.com/pypi/simple/ -i https://mirrors.aliyun.com/pypi/simple/
# SQL、MongoDB 和内存中列表的通用数据库实现
pip install redbird
另一个定时任务
pip install apscheduler -i https://mirrors.aliyun.com/pypi/simple/
pip install gunicorn -i https://mirrors.aliyun.com/pypi/simple/
# 异步任务处理
pip install asyncer -i https://mirrors.aliyun.com/pypi/simple/
# TOKEN
pip install python-jose[cryptography] -i https://mirrors.aliyun.com/pypi/simple/
系统信息依赖包
pip install GPUtil -i https://mirrors.aliyun.com/pypi/simple/
pip install psutil -i https://mirrors.aliyun.com/pypi/simple/
# 异步类型消息任务
pip install arq -i https://mirrors.aliyun.com/pypi/simple/
pip install redis -i https://mirrors.aliyun.com/pypi/simple/
转换
pip install pinyin -i https://mirrors.aliyun.com/pypi/simple/
# 缓存库用到
pip install diskcache -i https://mirrors.aliyun.com/pypi/simple/
# 异步和同步的转换
pip install asgiref -i https://mirrors.aliyun.com/pypi/simple/
# 异步和同步的转换 aioify=需要的模块
pip install aioify -i https://mirrors.aliyun.com/pypi/simple/
pip install module-wrapper -i https://mirrors.aliyun.com/pypi/simple/
# 自定义的ORMX中使用的字段转换库
pip install dotmap -i https://mirrors.aliyun.com/pypi/simple/
pip install asyncpg -i https://mirrors.aliyun.com/pypi/simple/
pip install aiomysql -i https://mirrors.aliyun.com/pypi/simple/
# 部分DB库下有些地方用到,
peewee orm库
pip install peewee -i https://mirrors.aliyun.com/pypi/simple/
pip install psycopg2 -i https://mirrors.aliyun.com/pypi/simple/
消息队列
pip install pika -i https://mirrors.aliyun.com/pypi/simple/
pip install fastapi[all] -i https://mirrors.aliyun.com/pypi/simple/
# 共享内存
pip install shared_memory_dict -i https://mirrors.aliyun.com/pypi/simple/
pip install pyee -i https://mirrors.aliyun.com/pypi/simple/
查看能安装的版本
pyenv install--list
直接使用
pipenv --python 3.6.7 会提示 是否使用pyenv 按指定的版本
如果你想把它和 RabbitMQ 一起使用
pip install 'dramatiq[rabbitmq, watch]' -i https://mirrors.aliyun.com/pypi/simple/
或者如果您想将其与 Redis 一起使用
pip install 'dramatiq[redis, watch]' -i https://mirrors.aliyun.com/pypi/simple/
pip install aiojobs -i https://mirrors.aliyun.com/pypi/simple/
pip install aiomysql -i https://mirrors.aliyun.com/pypi/simple/
pip install fastapi-asyncapi
# 事件流处理
pip install sse-starlette -i https://mirrors.aliyun.com/pypi/simple/
# 密码生成库,更安全,比哈希加盐更安全的
pip install argon2
# 处理文件保存
pip install aiofiles -i https://mirrors.aliyun.com/pypi/simple/
# MYSQL数据库
pip install pymysql -i https://mirrors.aliyun.com/pypi/simple/
错误重试库
pip install tenacity -i https://mirrors.aliyun.com/pypi/simple/
#生成哈希密文的库
pip install passlib -i https://mirrors.aliyun.com/pypi/simple/
# 配置信息读取
pip install python-decouple -i https://mirrors.aliyun.com/pypi/simple/
# 另一种日志的插件
pip install structlog
pip install async-property
文件锁----windows系统的时候依赖安装
pip install pywin32
#pip install win32con
#python -m pip install pypiwin32
#pip install win32file
#pip install pywintypes
# SM2 算法
pip install gmssl
安装指定的版本的虚拟环境
[root@netwu fastapi_admin_api_pro]# pipenv --python 3.9.5
打包:
编写好脚本文件:
···
import os
import sys
from setuptools import find_packages, setup
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.append(BASE_DIR)
setup(
name='zyxfastutils',
version='0.1.1',
packages=find_packages(),
)
···
执行打包命令
python setup.py sdist
打包后,导入对应的包放根目录下,然后执行安装:
(venv) PS E:\yuanxiao\pythonProjectceshi> pip install zyxfastapiutils-0.1.tar.gz
然后就可以引入:
from zyxfastutils.plugins
python -m pwiz -e mysql -u root -P 3306 -H localhost conamdin2 > models.py
sqlacodegen mysql+pymysql://root:123456@localhost:3306/conamdin2 > sqladminmodels.py
python -m pwiz -e postgresql -u postgres -P 5432 -H 47.99.189.42 smart_admin_v2 > smart_admin_models.py
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/abcfly/toy-fastapi-smart-admin.git
[email protected]:abcfly/toy-fastapi-smart-admin.git
abcfly
toy-fastapi-smart-admin
ToyFastapiSmartAdmin
master

搜索帮助