Skip to content

yui1993/Objectify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Objectify

Turns dictionary objects into classes

Example

dictionary = {
    "name": "Steve",
    "age": 18,
    "dob": "08/23/2000",
    0: {
        "name": "April",
        "age": 23,
        "hi-how-are-you": "good",
        "steve joe": "o"
        }
    }
}
as you can see the it supports nested dictionarys also ints as keys

object = Object(dictionary)
object.name -> Steve
object['name'] -> Steve
object._0.name -> April
object[0].name -> April
object[0].hi_how_are_you -> good
object[0]['hi-how-you'] > good
object[0]['steve joe'] ->
object[0].steve_joe -> o

About

Turns dictionary objects into classes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages