项目概述
Make your functions return something meaningful, typed, and safe!
项目地址
https://github.com/dry-python/returns
项目页面预览
关键指标
- Stars:4201
- 主要语言:Python
- License:BSD 2-Clause “Simplified” License
- 最近更新:2026-01-14T14:12:29Z
- 默认分支:master
本站高速下载(国内可用)
点击下载(本站镜像)
– SHA256:23ea2e7ca521901b890ce551f903b0bbf0c0eb1ba8121ce3f75a3dfd414acd5c
安装部署要点(README 精选)
Installation
pip install returns
You can also install returns with the latest supported mypy version:
pip install returns[compatible-mypy]
You would also need to configure our mypy plugin:
# In setup.cfg or mypy.ini:
[mypy]
plugins =
returns.contrib.mypy.returns_plugin
or:
[tool.mypy]
plugins = ["returns.contrib.mypy.returns_plugin"]
We also recommend to use the same mypy settings we use, which you’ll find in the [tool.mypy] sections in our pyproject.toml file.
Make sure you know how to get started, check out our docs!
Try our demo.
常用命令(从 README 提取)
pip install returns
pip install returns[compatible-mypy]
通用部署说明
- 下载源码并阅读 README
- 安装依赖(pip/npm/yarn 等)
- 配置环境变量(API Key、模型路径、数据库等)
- 启动服务并测试访问
- 上线建议:Nginx 反代 + HTTPS + 进程守护(systemd / pm2)
免责声明与版权说明
本文仅做开源项目整理与教程索引,源码版权归原作者所有,请遵循对应 License 合规使用。
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END








暂无评论内容