Project

General

Profile

Actions

Feature #2093

open

API: New and faster object serialization

Added by Bernhard Koschiček-Krombholz about 2 years ago. Updated about 1 month ago.

Status:
Acknowledged
Priority:
Normal
Assignee:
-
Category:
API
Target version:
Start date:
2024-09-04
Estimated time:

Description

Flask-RESTful suggests using marshmallow to serialize data instead of their own package. This will be necessary to handle more complex parameters.


Related issues 2 (2 open0 closed)

Related to OpenAtlas - Feature #1749: API: Testsystems for API Acknowledged2022-06-14Actions
Follows OpenAtlas - Feature #2343: Update OpenAtlas software to Debian 13 (Trixie)In ProgressBernhard Koschiček-Krombholz2024-09-03Actions
Actions #1

Updated by Alexander Watzinger about 1 year ago

  • Subject changed from API v1: Using marshmallow for object serialization to API: Marshmallow for object serialization
Actions #3

Updated by Bernhard Koschiček-Krombholz 8 months ago

  • Subject changed from API: Marshmallow for object serialization to API: New and faster object serialization

Instead of marshmallow, which is faster than marshal, maybe use orjson which is currently in Debian trixie. It is ruby based and should be much faster than marshal.

Actions #4

Updated by Alexander Watzinger 6 months ago

  • Start date changed from 2023-10-20 to 2024-09-04
  • Follows Feature #2343: Update OpenAtlas software to Debian 13 (Trixie) added
Actions #5

Updated by Bernhard Koschiček-Krombholz about 1 month ago

  • Target version changed from Wishlist to 9.2.0

After some research, I will go for https://github.com/luolingchun/flask-openapi3

It has pydantic models and the OpenAPI file gets the only source of truth. It marshals way faster and is well maintained.

This should happen asap after the trixie release (#2343).

Actions #6

Updated by Bernhard Koschiček-Krombholz 26 days ago

Actions

Also available in: Atom PDF