# Buildsheet autogenerated by ravenadm tool -- Do not edit. NAMEBASE= python-anyjson VERSION= 0.3.3 KEYWORDS= python VARIANTS= v11 v12 SDESC[v11]= Multiple JSON library wrapper (3.11) SDESC[v12]= Multiple JSON library wrapper (3.12) HOMEPAGE= none CONTACT= Python_Automaton[python@ironwolf.systems] DOWNLOAD_GROUPS= main SITES[main]= PYPI/a/anyjson DISTFILE[1]= anyjson-0.3.3.tar.gz:main DF_INDEX= 1 SPKGS[v11]= single SPKGS[v12]= single OPTIONS_AVAILABLE= PY311 PY312 OPTIONS_STANDARD= none VOPTS[v11]= PY311=ON PY312=OFF VOPTS[v12]= PY311=OFF PY312=ON DISTNAME= anyjson-0.3.3 GENERATED= yes [PY311].USES_ON= python:v11,sutools [PY312].USES_ON= python:v12,sutools [FILE:1541:descriptions/desc.single] ############################## anyjson - JSON library wrapper ############################## Overview -------- Anyjson loads whichever is the fastest JSON module installed and provides a uniform API regardless of which JSON implementation is used. Originally part of carrot (http://github.com/ask/carrot/) Examples -------- To serialize a python object to a JSON string, call the `serialize` function: >>> import anyjson >>> anyjson.serialize(["test", 1, {"foo": 3.141592}, "bar"]) '["test", 1, {"foo": 3.141592}, "bar"]' Conversion the other way is done with the `deserialize` call. >>> anyjson.deserialize("""["test", 1, {"foo": 3.141592}, "bar"]""") ['test', 1, {'foo': 3.1415920000000002}, 'bar'] Regardless of the JSON implementation used, the exceptions will be the same. This means that trying to serialize something not compatible with JSON raises a TypeError: >>> anyjson.serialize([object()]) Traceback (most recent call last): TypeError: object is not JSON encodable And deserializing a JSON string with invalid JSON raises a ValueError: >>> anyjson.deserialize("""['missing square brace!""") Traceback (most recent call last): ValueError: cannot parse JSON description Contact ------- The module is maintaned by Rune F. Halvorsen . The project resides at http://bitbucket.org/runeh/anyjson . Bugs and feature requests can be submitted there. Patches are also very welcome. Changelog --------- See CHANGELOG file License ------- see the LICENSE file [FILE:99:distinfo] 37812d863c9ad3e35c0734c42e0bf0320ce8c3bed82cd20ad54cb34d158157ba 8332 anyjson-0.3.3.tar.gz [FILE:229:patches/patch-setup.py] --- setup.py.orig 2012-06-21 22:59:59 UTC +++ setup.py @@ -2,8 +2,6 @@ import os import sys extra = {} -if sys.version_info >= (3, 0): - extra.update(use_2to3=True) try: from setuptools import setup, find_packages