Skip to main content

Jsobject is simple implementation JavaScript-Style Objects in Python.

Project description

Latest Version Downloads Supported Python versions License Development Status

jsobject: Objects for Humans

jsobject is simple implementation JavaScript-Style Objects in Python. It is distributed as a single file module and has no dependencies other than the Python Standard Library.

Homepage and documentation:

Example: “Hello World” with jsobject

from jsobject import Object
data = {
  "boolean": True,
  "null": None,
  "number": 123,
  "objectA": {'a': 'b', 'c': {'d': 'e', 'f': {'g': 'h'}}}

jso = Object(data)

print(jso.boolean)       # True
print(jso.null)          # None
print(jso.number)        # 123
print(jso.objectA)       # {'a': 'b', 'c': {'d': 'e', 'f': {'g': 'h'}}}
print(jso.objectA.a)     # b
print(jso.objectA.c.d)   # e
print(jso.objectA.c.f.g) # h

Download and Install

Install the latest stable release with pip install jsobject, easy_install -U jsobject or download (unstable) into your project directory. There are no hard dependencies other than the Python standard library. Jsobject runs with Python 2.6+ and 3.x.


To run the tests use the nosetest.

Project details

Download files

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

Files for jsobject, version 0.10.2
Filename, size File type Python version Upload date Hashes
Filename, size jsobject-0.10.2.tar.gz (4.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page