{"id":13437689,"url":"https://github.com/python-rapidjson/python-rapidjson","last_synced_at":"2025-05-13T22:03:10.398Z","repository":{"id":1310459,"uuid":"42155092","full_name":"python-rapidjson/python-rapidjson","owner":"python-rapidjson","description":"Python wrapper around rapidjson","archived":false,"fork":false,"pushed_at":"2024-11-26T06:38:02.000Z","size":1814,"stargazers_count":515,"open_issues_count":14,"forks_count":49,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-28T15:19:29.745Z","etag":null,"topics":["json-parser","json-serialization","python3"],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/python-rapidjson.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGES.rst","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-09-09T04:02:42.000Z","updated_at":"2025-04-21T23:40:16.000Z","dependencies_parsed_at":"2022-07-06T20:04:55.537Z","dependency_job_id":"ea553c05-419c-486e-96c0-d4d7eefeb0aa","html_url":"https://github.com/python-rapidjson/python-rapidjson","commit_stats":{"total_commits":729,"total_committers":26,"mean_commits":28.03846153846154,"dds":"0.15089163237311387","last_synced_commit":"3989fe280c830e161c5ef18091e6f9b3825eb285"},"previous_names":[],"tags_count":60,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/python-rapidjson%2Fpython-rapidjson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/python-rapidjson%2Fpython-rapidjson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/python-rapidjson%2Fpython-rapidjson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/python-rapidjson%2Fpython-rapidjson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/python-rapidjson","download_url":"https://codeload.github.com/python-rapidjson/python-rapidjson/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251336400,"owners_count":21573189,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["json-parser","json-serialization","python3"],"created_at":"2024-07-31T03:00:59.312Z","updated_at":"2025-04-28T15:19:35.056Z","avatar_url":"https://github.com/python-rapidjson.png","language":"C++","readme":".. -*- coding: utf-8 -*-\n.. :Project:   python-rapidjson -- Introduction\n.. :Author:    Ken Robbins \u003cken@kenrobbins.com\u003e\n.. :License:   MIT License\n.. :Copyright: © 2015 Ken Robbins\n.. :Copyright: © 2016, 2017, 2018, 2020, 2022, 2024 Lele Gaifax\n..\n\n==================\n python-rapidjson\n==================\n\nPython wrapper around RapidJSON\n===============================\n\n:Authors: Ken Robbins \u003cken@kenrobbins.com\u003e; Lele Gaifax \u003clele@metapensiero.it\u003e\n:License: `MIT License`__\n:Status: |build| |doc|\n\n__ https://raw.githubusercontent.com/python-rapidjson/python-rapidjson/master/LICENSE\n.. |build| image:: https://travis-ci.org/python-rapidjson/python-rapidjson.svg?branch=master\n   :target: https://travis-ci.org/python-rapidjson/python-rapidjson\n   :alt: Build status\n.. |doc| image:: https://readthedocs.org/projects/python-rapidjson/badge/?version=latest\n   :target: https://readthedocs.org/projects/python-rapidjson/builds/\n   :alt: Documentation status\n\nRapidJSON_ is an extremely fast C++ JSON parser and serialization library: this module\nwraps it into a Python 3 extension, exposing its serialization/deserialization (to/from\neither ``bytes``, ``str`` or *file-like* instances) and `JSON Schema`__ validation\ncapabilities.\n\nLatest version documentation is automatically rendered by `Read the Docs`__.\n\n__ http://json-schema.org/documentation.html\n__ https://python-rapidjson.readthedocs.io/en/latest/\n\n\nGetting Started\n---------------\n\nFirst install ``python-rapidjson``:\n\n.. code-block:: bash\n\n    $ pip install python-rapidjson\n\nor, if you prefer `Conda`__:\n\n.. code-block:: bash\n\n    $ conda install -c conda-forge python-rapidjson\n\n__ https://conda.io/docs/\n\nBasic usage looks like this:\n\n.. code-block:: python\n\n    \u003e\u003e\u003e import rapidjson\n    \u003e\u003e\u003e data = {'foo': 100, 'bar': 'baz'}\n    \u003e\u003e\u003e rapidjson.dumps(data)\n    '{\"foo\":100,\"bar\":\"baz\"}'\n    \u003e\u003e\u003e rapidjson.loads('{\"bar\":\"baz\",\"foo\":100}')\n    {'bar': 'baz', 'foo': 100}\n    \u003e\u003e\u003e\n    \u003e\u003e\u003e class Stream:\n    ...   def write(self, data):\n    ...      print(\"Chunk:\", data)\n    ...\n    \u003e\u003e\u003e rapidjson.dump(data, Stream(), chunk_size=5)\n    Chunk: b'{\"foo'\n    Chunk: b'\":100'\n    Chunk: b',\"bar'\n    Chunk: b'\":\"ba'\n    Chunk: b'z\"}'\n\n\nDevelopment\n-----------\n\nIf you want to install the development version (maybe to contribute fixes or\nenhancements) you may clone the repository:\n\n.. code-block:: bash\n\n    $ git clone --recursive https://github.com/python-rapidjson/python-rapidjson.git\n\n.. note:: The ``--recursive`` option is needed because we use a *submodule* to\n          include RapidJSON_ sources. Alternatively you can do a plain\n          ``clone`` immediately followed by a ``git submodule update --init``.\n\n          Alternatively, if you already have (a *compatible* version of)\n          RapidJSON includes around, you can compile the module specifying\n          their location with the option ``--rj-include-dir``, for example:\n\n          .. code-block:: shell\n\n             $ python3 setup.py build --rj-include-dir=/usr/include/rapidjson\n\nA set of makefiles implement most common operations, such as *build*, *check*\nand *release*; see ``make help`` output for a list of available targets.\n\n\nPerformance\n-----------\n\n``python-rapidjson`` tries to be as performant as possible while staying\ncompatible with the ``json`` module.\n\nSee `this section`__ in the documentation for a comparison with other JSON libraries.\n\n__ https://python-rapidjson.readthedocs.io/en/latest/benchmarks.html\n\n\nIncompatibility\n---------------\n\nAlthough we tried to implement an API similar to the standard library ``json``, being a\nstrict *drop-in* replacement in not our goal and we have decided to depart from there in\nsome aspects. See `this section`__ in the documentation for further details.\n\n__ https://python-rapidjson.readthedocs.io/en/latest/quickstart.html#incompatibilities\n\n.. _RapidJSON: http://rapidjson.org/\n","funding_links":[],"categories":["C++","资源列表","Serialization","序列化","Data Serialization","Serialization [🔝](#readme)"],"sub_categories":["序列化"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpython-rapidjson%2Fpython-rapidjson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpython-rapidjson%2Fpython-rapidjson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpython-rapidjson%2Fpython-rapidjson/lists"}