全部搜尋項
trixie  ] [  sid  ]
[ 原始碼: python-sdjson  ]

套件:python3-sdjson(0.4.0-3)

python3-sdjson 的相關連結

Screenshot

Debian 的資源:

下載原始碼套件 python-sdjson

維護小組:

外部的資源:

相似套件:

single-dispatch JSON encoder for Python

Module uses functools.singledispatch to support custom encoders for Python built-in classes and user-created classes.

The goal is to simplify the process of serializing objects into JSON by allowing developers to register custom encoders for their classes, allowing you to define instances to be converted into JSON format.

After coding, you can use sdjson.dumps(class_instance) to serialize an instance of the class into a JSON string. This makes the process of saving objects in JSON easier.

In addition to serialization to a string, the project provides the ability to serialize objects directly to JSON files using sdjson.dump (class_instance, fp).

The sdjson project also supports several features of the json module, including load, loads, JSONDecoder, JSONDecodeError and JSONEncoder. This allows you to use sdjson as a drop-in replacement for the json module.

This package installs the library for Python 3.

其他與 python3-sdjson 有關的套件

  • 依賴
  • 推薦
  • 建議
  • 增強

下載 python3-sdjson

下載可用於所有硬體架構的
硬體架構 套件大小 安裝後大小 檔案
all 17。0 kB69。0 kB [檔案列表]