Something went wrong. Try again.
This repository has no description
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930from src.id.nsid import NSIDimport src.lexicon.codegenfrom src.lexicon import lexicon
src.lexicon.codegen.convert_lexicon( lexicon( { "lexicon": 1, "id": "com.example.getProfile", "defs": { "main": { "type": "object", "properties": { "test": {"type": "string"}, "test2": {"type": "array", "items": {"type": "boolean"}}, }, "nullables": ["test2"], }, "other": {"type": "object", "properties": {"int": {"type": "integer"}}}, }, } ))src.lexicon.codegen.regenerate_dunder_inits(NSID("com.example.getProfile"))
import lex
print(lex.com.example.getProfile())print(lex.com.example.getProfile.other)