SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

 
 

python-anyjson rpm build for : openSUSE Leap 42. For other distributions click python-anyjson.

Name : python-anyjson
Version : 0.3.1 Vendor : obs://build_opensuse_org/home:appleonkel
Release : 2.1 Date : 2015-12-21 17:06:31
Group : Development/Languages/Python Source RPM : python-anyjson-0.3.1-2.1.src.rpm
Size : 0.01 MB
Packager : (none)
Summary : Wraps the best available JSON implementation available in a common interface
Description :

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):
< snipped traceback>
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):
< snipped traceback>
ValueError: cannot parse JSON description


Contact
-------

The module is maintaned by Rune F. Halvorsen < runefhAATTgmail.com>.
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

RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/home:/appleonkel:/python/openSUSE_Leap_42.1/noarch

Content of RPM  Changelog  Provides Requires

Hmm ... It's impossible ;-) This RPM doesn't exist on any FTP server

Provides :
python-anyjson

Requires :
python = 2.7
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
python(abi) = 2.7
rpmlib(PayloadIsLzma) <= 4.4.6-1


Content of RPM :
/usr/lib/python2.7/site-packages/anyjson
/usr/lib/python2.7/site-packages/anyjson-0.3.1-py2.7.egg-info
/usr/lib/python2.7/site-packages/anyjson-0.3.1-py2.7.egg-info/PKG-INFO
/usr/lib/python2.7/site-packages/anyjson-0.3.1-py2.7.egg-info/SOURCES.txt
/usr/lib/python2.7/site-packages/anyjson-0.3.1-py2.7.egg-info/dependency_links.txt
/usr/lib/python2.7/site-packages/anyjson-0.3.1-py2.7.egg-info/not-zip-safe
/usr/lib/python2.7/site-packages/anyjson-0.3.1-py2.7.egg-info/top_level.txt
/usr/lib/python2.7/site-packages/anyjson/__init__.py
/usr/lib/python2.7/site-packages/anyjson/__init__.pyc

 
ICM