Skip to content

fqxp/dictlib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dictlib

Features:

  • schema definition
  • validating a dictionary against a schema
  • creating a dictionary by schema rules
  • mapping dictionaries to Python objects (adapter or mixin)
  • dot notation for nested dictionaries (adapter or mixin)

To do

  • documentation (with sphinx):
    • tutorial
    • API reference
    • examples (e.g., building a simple db wrapper)

Ideas

  • dict comparison
  • dict merge by definable criteria
  • bidirectional dict (?)
  • sorted dictionaries: by key, by value, by lambda result
  • standard converters: JSON Schema, schema classes by other frameworks, e.g. Django (?)
  • enum option for fields to restrict value to a given set

About

A Python library for describing, validating, converting and mapping dictionaries

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages