Skip to main content

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

快速开始

from fred import create_app

app = create_app()

if __name__ == "__main__":
    app.run(debug=True)

配置

在使用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 >= 44.0.3
  • 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

打包和发布

打包项目

使用以下命令来打包项目:

# 使用 setuptools 打包
python setup.py sdist bdist_wheel

# 或者使用 build 工具 (推荐)
pip install build
python -m build

打包后的文件将位于 dist/ 目录下。

发布到 PyPI

  1. 首先安装 twine 工具:

    pip install twine
    
  2. 上传到 PyPI:

    # 上传到正式 PyPI (需要 PyPI 账户)
    twine upload dist/*
    
    # 或上传到测试 PyPI 进行测试
    twine upload --repository testpypi dist/*
    

本地开发安装

对于本地开发,可以使用以下命令以可编辑模式安装:

pip install -e .

这将创建一个指向源代码的链接,使代码更改无需重新安装即可生效。

打包和发布

打包项目

使用以下命令来打包项目:

# 使用 setuptools 打包
python setup.py sdist bdist_wheel

# 或者使用 build 工具 (推荐)
pip install build
python -m build

打包后的文件将位于 dist/ 目录下。

发布到 PyPI

  1. 首先安装 twine 工具:

    pip install twine
    
  2. 上传到 PyPI:

    # 上传到正式 PyPI (需要 PyPI 账户)
    twine upload dist/*
    
    # 或上传到测试 PyPI 进行测试
    twine upload --repository testpypi dist/*
    

本地开发安装

对于本地开发,可以使用以下命令以可编辑模式安装:

pip install -e .

这将创建一个指向源代码的链接,使代码更改无需重新安装即可生效。

许可证

MIT License

Project details


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.0.0.tar.gz (20.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fred_framework-1.0.0-py3-none-any.whl (20.6 MB view details)

Uploaded Python 3

File details

Details for the file fred_framework-1.0.0.tar.gz.

File metadata

  • Download URL: fred_framework-1.0.0.tar.gz
  • Upload date:
  • Size: 20.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for fred_framework-1.0.0.tar.gz
Algorithm Hash digest
SHA256 2b2e0c5bffdaee4cd6f985bbf8ea43a2f75a32e425feb815327c5123e2b7d554
MD5 d4206105665679bdeadd75c26234f2fa
BLAKE2b-256 063bcb23c74431a316445cff2b50aefe9d8cbea80edc41daf4c7cc816fa235aa

See more details on using hashes here.

File details

Details for the file fred_framework-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: fred_framework-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 20.6 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for fred_framework-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4f652e9de104b75e1d4258c31f76b429d6dc4329c4452ab39ee207465f0d6b6c
MD5 5c4d3ab4ed1faad815991a778cabdc65
BLAKE2b-256 caf50a1390953aecbf5674c74ca390b46153bd9ceed0341347fd12aebcfeb9e5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page