Skip to main content

flask-crud-api

本库旨在帮助后端开发人员快速构建一个基于flask框架的后端项目。

参数说明

  1. 分页相关
__page 页码
__page_size 每页数量

# 如果需要禁用分页,可以使用此字段,请谨慎使用
__page_disable
  1. 添加、修改数据字段
# 鉴于开发时,一次查询将会给出对应的字段模型及相关解释
# 创建、修改数据时可以使用此字段
  1. 过滤字段
# 这部分字段请结合实际在后端代码中添加需要被过滤的字段内容

# 例如:
view_filter_fields = (("pk", "="),)
view_filters = (SearchFilter, )
  1. 排序字段
# 如果需要进行排序,请配置view_order_fields、view_filters
"""
view_order_fields = (("__order_pk", 'desc'), )
view_filters = (OrderFilter, ...)
"""

# 例如
view_order_fields = (
    ("__order_pk", 'desc'), 
    ("__order_pk", 'asc'), 
)
view_filters = (SearchFilter, OrderFilter)

# 传递query参数 __order_pk=asc 即可实现pk的升序
# 传递query参数 __order_pk=desc 即可实现pk的降序

Release files for flask-crud-api 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flask-crud-api 0.0.1
File Size Uploaded
flask_crud_api-0.0.1.tar.gz 13.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for flask-crud-api 0.0.1
File Interpreter ABI Platform
flask_crud_api-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 27.8 kB

Release files / flask_crud_api-0.0.1.tar.gz

Download URL flask_crud_api-0.0.1.tar.gz
Size 13.2 kB
Tags Source
SHA-256 checksum
How to use checksums
6ea3647980b0da6340349a2da90844fd45536bc22c582e55581c8d92c893ba23
BLAKE2b-256 checksum
How to use checksums
69e8bfd157f94825b55094779ff3f9b7c628c7848c5949bf6f2aecc515e36a90
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.14

Release files / flask_crud_api-0.0.1-py3-none-any.whl

Download URL flask_crud_api-0.0.1-py3-none-any.whl
Size 14.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6406b493452d9ecc9a914a19b429dd3bd41351399dc47f6bf8eeb7523795ecbf
BLAKE2b-256 checksum
How to use checksums
1e3dc9b9c42b3010751a44893fc39fb5f631863a8c466ac651aa9991be78e700
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.14

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page