Skip to main content
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: https://mavier.github.io/jsobject

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 jsobject.py (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.

Testing

To run the tests use the nosetest.

https://travis-ci.org/mavier/jsobject.png?branch=master https://coveralls.io/repos/mavier/jsobject/badge.png

License

Code and documentation are available according to the MIT License.

https://docs.python.org/3/library/json.html https://docs.python.org/2/library/functions.html https://docs.python.org/2/library/collections.html https://docs.python.org/2/library/json.html

Release files for jsobject 0.10.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jsobject 0.10.2
File Size Uploaded
jsobject-0.10.2.tar.gz 4.4 kB Details

Release files / jsobject-0.10.2.tar.gz

Download URL jsobject-0.10.2.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
405053613c8dee281af42424ace8a6f56de0b44f014b1e08dc4738aa3dba07e9
BLAKE2b-256 checksum
How to use checksums
517ab1cf5c38d33535b8788f5b0d873dab0e3d38051ad8a26623d8653a29e56f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.10.2 This release

1 release file

0.10.1

1 release file

0.9.21

1 release file

0.9.20

1 release file

0.9.19

1 release file

0.9.18

1 release file

0.9.17

1 release file

0.9.16

1 release file

0.9.14

1 release file

0.9.13

1 release file

0.9.12

1 release file

0.9.11

1 release file

0.9.10

1 release file

0.9.3

1 release file

0.9.1

1 release file

0.9.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page