From 973c6e9fda9ba8d5a13838ecc7f48baf71bdc195 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Thu, 9 Mar 2023 17:45:02 +0000 Subject: automatic import of python-ujson --- python-ujson.spec | 557 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 557 insertions(+) create mode 100644 python-ujson.spec (limited to 'python-ujson.spec') diff --git a/python-ujson.spec b/python-ujson.spec new file mode 100644 index 0000000..5bee241 --- /dev/null +++ b/python-ujson.spec @@ -0,0 +1,557 @@ +%global _empty_manifest_terminate_build 0 +Name: python-ujson +Version: 5.7.0 +Release: 1 +Summary: Ultra fast JSON encoder and decoder for Python +License: BSD License +URL: https://github.com/ultrajson/ultrajson +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/43/1a/b0a027144aa5c8f4ea654f4afdd634578b450807bb70b9f8bad00d6f6d3c/ujson-5.7.0.tar.gz + + +%description +# UltraJSON + +[![PyPI version](https://img.shields.io/pypi/v/ujson.svg?logo=pypi&logoColor=FFE873)](https://pypi.org/project/ujson) +[![Supported Python versions](https://img.shields.io/pypi/pyversions/ujson.svg?logo=python&logoColor=FFE873)](https://pypi.org/project/ujson) +[![PyPI downloads](https://img.shields.io/pypi/dm/ujson.svg)](https://pypistats.org/packages/ujson) +[![GitHub Actions status](https://github.com/ultrajson/ultrajson/workflows/Test/badge.svg)](https://github.com/ultrajson/ultrajson/actions) +[![codecov](https://codecov.io/gh/ultrajson/ultrajson/branch/main/graph/badge.svg)](https://codecov.io/gh/ultrajson/ultrajson) +[![DOI](https://zenodo.org/badge/1418941.svg)](https://zenodo.org/badge/latestdoi/1418941) +[![Code style: Black](https://img.shields.io/badge/code%20style-Black-000000.svg)](https://github.com/psf/black) + +UltraJSON is an ultra fast JSON encoder and decoder written in pure C with bindings for +Python 3.7+. + +Install with pip: + +```sh +python -m pip install ujson +``` + +## Usage + +May be used as a drop in replacement for most other JSON parsers for Python: + +```pycon +>>> import ujson +>>> ujson.dumps([{"key": "value"}, 81, True]) +'[{"key":"value"},81,true]' +>>> ujson.loads("""[{"key": "value"}, 81, true]""") +[{'key': 'value'}, 81, True] +``` + +### Encoder options + +#### encode_html_chars + +Used to enable special encoding of "unsafe" HTML characters into safer Unicode +sequences. Default is `False`: + +```pycon +>>> ujson.dumps("