Socket
Socket
Sign inDemoInstall

dict-objectify

Package Overview
Dependencies
1
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    dict-objectify

Dictionary to Object hierarchy mapper.


Maintainers
1

Readme

Dict Objectify (DO) allows specification of python classes hierarchy that are backed by dictionaries. Specification is done similar to ORM frameworks, by declaratively specifying dictionary keys as fields, Every field is defined as either nested (DO) class for nested dictionaries or one of the provided type classes for values of the type: int, float, text, bool, array, datetime or enum.

Mapping between dictionaries and these objects works both ways.

This allows easy parsing of hierarchical documents into python object hierarchy, doing pre processing on dict values, doing any kind of processing on that hierarchy and then transforming root objects back into dictionaries for eventual dumping into same document formats.

Keywords

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc