Skip to main content

Simple json serializable object

Project description

simpleobject

Simple json serializable object

Can be used as a types.SimpleNamespace, but it is json serializable like a python dictionary.

Usage

from simpleobject import simpleobject
from json import dumps

o = simpleobject()
o.foo = 1
o.bar = 2
print(o) #simpleobject(foo=1, bar=2)
print(dumps(o)) #{"foo": 1, "bar": 2}

You can also set the name

o.name = 'FooBarObject'
print(o) #FooBarObject(foo=1, bar=2)

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

simpleobject-1.0.2.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

simpleobject-1.0.2-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file simpleobject-1.0.2.tar.gz.

File metadata

  • Download URL: simpleobject-1.0.2.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for simpleobject-1.0.2.tar.gz
Algorithm Hash digest
SHA256 761e295d1aab064dca406ecdb83911be6f0fa41e10b88faddeace5a5a687c6a5
MD5 fcfe4635df1b63e7ad2baa1962222cb5
BLAKE2b-256 943bf3784e16bd577ca0890b32e5d41287036ba1e8a54d217d5aa016bd1b68e1

See more details on using hashes here.

File details

Details for the file simpleobject-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: simpleobject-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for simpleobject-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f58f9154757af5dec5a6864ac04afe2b32d0d3355a77e8c204c085f698ff5e0a
MD5 e622044270d6d99db02ee465ecbf7898
BLAKE2b-256 c729d79c6e331d4870ed8a277acabae3e82c9e622bb83eac4d40c9464f79741d

See more details on using hashes here.

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