Skip to main content

jobject

pypi version MIT License

jobject: A dictionary replacement that gives additional access to data using C struct notation, just like JavaScript Objects.

Please see LICENSE for further information.

See Releases for changes from release to release.

Installation

pip install jobject

Import

import jobject

my_dict = jobject({'one': 1, 'two': 2, 'three': 3})

print(my_dict.three) # prints '3'

Inheritance

Because jobject extends dict it can be dropped into any code that requires dict notation or iteration. Because of this, jobject makes sure any dictionary instances that are passed to it are also converted into jobjects

import jobject

my_dict = jobject({
	'one': {
		'two': {
			'three': 123
		}
	}
})

print(my_dict.one.two.three) # prints '123'

It will even follow lists to make sure everything under it is converted to a jobject

import jobject

my_dict = jobject({
	'array': [
		{'one': 1},
		{'two': 2},
		{'three': 3}
	]
})

print(my_dict[2].three) # prints '3'

This even includes data set after the fact

import jobject

my_dict = jobject()

my_dict.test = {
	'one': [
		{'two': 2}
	]
}

print(my_dict.test.one[0].two) # prints '2'
print(my_dict['test']['one'][0]['two']) # prints '2'

Metadata

Release files for jobject 1.0.5

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

Source distribution (sdist)

Source distribution for jobject 1.0.5
File Size Uploaded Provenance Actions
jobject-1.0.5.tar.gz 5.1 kB Without provenance Details for jobject-1.0.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for jobject 1.0.5
File Interpreter ABI Platform Actions
jobject-1.0.5-py3-none-any.whl Python 3 none any Details for jobject-1.0.5-py3-none-any.whl

Total release size: 10.1 kB

Release files / jobject-1.0.5.tar.gz

Download URL jobject-1.0.5.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
a91d97a997119826050bbb0db324a8aa47184693dc0e79d7c8239657473e03e2
BLAKE2b-256 checksum
How to use checksums
cba8d018c274b1b177d865c424de5548d68c51ea5be86b55842a581575846af6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / jobject-1.0.5-py3-none-any.whl

Download URL jobject-1.0.5-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b5b2cbf9b818f5ebdb6e0394391ae3289bda36c304e4f0c599b3358848edb48a
BLAKE2b-256 checksum
How to use checksums
4003021e18635d31dbaa19e0e0d1bb7885cc1c6d0760be6e3d60bf2e6f3efc27
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Security for jobject 1.0.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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