A Flask-based web framework with built-in utilities and extensions
Project description
Fred Framework
Fred是一个基于Flask的Web框架,内置了常用的工具和扩展,帮助开发者快速构建Web应用程序。
功能特性
- 基于Flask的轻量级Web框架
- 内置JWT认证支持
- 数据库ORM支持(SQLAlchemy)
- Redis集成
- 邮件发送功能
- 定时任务调度
- 国际化支持
- Swagger API文档
- 图片验证码生成
- 阿里云短信服务集成
- 微信登录集成
- 数据加密功能
- 日志系统
安装
pip install fred_framework
快速开始
1. 初始化项目
安装后,在项目目录中运行初始化命令来创建必要的目录和文件:
# 在当前目录初始化项目
fred-init
# 或在指定目录初始化项目
fred-init --path /path/to/your/project
初始化命令会自动创建以下目录和文件:
model/- 数据模型目录config/- 配置文件目录(包含Config.py)translations/- 国际化翻译文件目录scheduler/- 定时任务目录run.py- 应用启动文件
2. 使用框架
直接使用生成的 run.py 文件:
python run.py
配置
在使用Fred框架前,请根据需要修改config/Config.py中的配置项。
依赖
Fred框架依赖以下第三方库:
- Flask >= 3.1.2
- flask_cors >= 6.0.1
- flask_jwt_extended >= 4.7.1
- Pillow >= 11.3.0
- flask_smorest >= 0.46.2
- flask_swagger_ui >= 5.21.0
- cryptography >= 46.0.0
- requests >= 2.32.5
- flask_apscheduler >= 1.13.1
- flask_babelplus >= 2.2.0
- flask_sqlacodegen >= 2.0.0
- flask_sqlalchemy >= 3.1.1
- pymysql >= 1.1.2
- pytz >= 2025.2
- flask_mail >= 0.10.0
- redis >= 7.0.0
许可证
MIT License
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
fred_framework-1.1.1.tar.gz
(14.5 MB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fred_framework-1.1.1.tar.gz.
File metadata
- Download URL: fred_framework-1.1.1.tar.gz
- Upload date:
- Size: 14.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b137d6f997357cee4238659dddfdb048cdc1ccdf8a8aa59e937f11a2655955ba
|
|
| MD5 |
5dde31582fe117474f8655baa9efe444
|
|
| BLAKE2b-256 |
b0268b473dc1dbb1a43f4614d39e2edbccd2813d920a7d82e60ae194803801d7
|
File details
Details for the file fred_framework-1.1.1-py3-none-any.whl.
File metadata
- Download URL: fred_framework-1.1.1-py3-none-any.whl
- Upload date:
- Size: 14.7 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
441d0e819ff13d97cc7588550fb0b1217309eb53f2034433cdd24162752aae38
|
|
| MD5 |
66d6fb5591d527c32989f4b5f1c483c4
|
|
| BLAKE2b-256 |
1c9b2cce08a4673f1e1d9678b88e42fc783d750fbc5614411a609afbfe6402c5
|