Skip to main content

simple json data manager targeting model.JsonField in (djano framework)

Project description

JOM Django JsonField simple manager

JOM Object helps you to handle JsonField in django frame work so that you can (delete | edit | add ) values and gets the result from the function result() you can get two types of results (str -> json object | dict -> python object)

example

from jom import JOM 
# or you can import it as JsonObjectManager

# asign the object you want to handle 
# json format 
data = '{"name":"Hussein Naim ","site":"https://iamhusseinnaim.github.io","age":22}'

# allowed fields to deal with 
allowed = ['name','site','age']
# create the instance 
instance = JOM(data,allowed=allowed)
# delete a certain item
instance.del_item("age")
# holding the result 
result = instance.result()
# print out the result
print(result)

# output: default = return as json | str 
# "{'name':"Hussein Naim ","site":"https://iamhusseinnaim.github.io"}

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

jom-0.0.6.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

jom-0.0.6-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file jom-0.0.6.tar.gz.

File metadata

  • Download URL: jom-0.0.6.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.0

File hashes

Hashes for jom-0.0.6.tar.gz
Algorithm Hash digest
SHA256 0c8f0972cddfb649f7fc9a9ced897172043dccf26c68331475a632d4de7ae0b5
MD5 fc2d95f29192a2a14ec11f4f877d66f0
BLAKE2b-256 eddcf3edaa8ed28fe15426bc4dd025b6c44a9a31948d477c4a4fd3c0f2e57e8e

See more details on using hashes here.

File details

Details for the file jom-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: jom-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.0

File hashes

Hashes for jom-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 7b826a890fdb75512859d5d9ac70e7d7d602ed812d67a5ad8862b647d69dba36
MD5 6b6d00be2c2ce439ecb3d3baa6d31197
BLAKE2b-256 f5d3b78f74e4e0df7985ce4b39d0de877655d0b7d1d453babca97563f6cee0ec

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