Skip to main content

Wraps the best JSON installed, falling back on an internal simplejson.

Project description

The Problem

# Python 2.5.4 (r254:67916, Jun 24 2010, 21:47:25)

>>> import anyjson
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/kreitz/.virtualenvs/25/lib/python2.5/site-packages/anyjson/__init__.py", line 127, in <module>
    raise ImportError("No supported JSON module found")
ImportError: No supported JSON module found

The Solution

# Python 2.5.4 (r254:67916, Jun 24 2010, 21:47:25)

>>> import omnijson as json
# \o/

Features

  • Loads whichever is the fastest JSON module installed

  • Falls back on built in pure-python simplejson, just in case.

  • Proper API (loads(), dumps())

  • Verndorizable

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

omnijson-0.1.0.tar.gz (15.7 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page