Skip to main content

Make accessing JSON like data more convenient.

Project description

Objectify JSON

Make accessing JSON like data more convenient.

Features

  • Access dict value via dot . (data.a.b.c).
  • Always return ObjectifyJSON type, which holds the data having type dict, list or any other primitive types.
  • Use x._data to get the real data.
  • Always return ObjectifyJSON(None) if doesn't exist.
  • Batch process data
    • Iterate on dict or list via for loop. The iteration elements' type are ObjectifyJSON too!
    • Iterate on dict via .fn_keys(), .fn_values() or .fn_items().
    • Process data in a collection via .fn_map(), .fn_reduce() or .fn_filter().
    • The return values of lambda funtion will always be unwrapped to primitive types.
    • The fn_* functions all accept unwrap keyword parameter to pass the primitive types to lambda.
  • An CLI tool named object to process JSON data.

Install

pip3 install objectify-json

Example

See test.py

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

objectify_json-0.2.3-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file objectify_json-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: objectify_json-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.20.0 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.5

File hashes

Hashes for objectify_json-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3ebbe8fba31915c44628eacb6bd44e90dbea76a3304f3be878695ef7738d541f
MD5 c7ae43f563a13afba519196f5bd07b45
BLAKE2b-256 618b5238a9e78fef57bf1978b4a4b2f06a17c0a87559779f3dccb42d2136a44c

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