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(), .fn_items(), or fn_items_update().
    • 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.6-py3-none-any.whl (5.4 kB view hashes)

Uploaded Python 3

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