You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 1, 2019. It is now read-only.
a module called classes:
when someone tries to import something from classes. it will try to see in its directory if it can find a matching jsonschema, if yes it will create a Model around it, cache the model and return it.
a module called Magic could hold the following:
for name in walk(this_dir):
schema = load(name)
then from ipython (ipython loads on tapb) you could do black magic:
(if a jsonschema exist with name User):
from Magic import User
and the Magic module would generate a module to you, return it, and let sysmodules cache it
that would be cool
The text was updated successfully, but these errors were encountered:
this could even be in the pycorm library so that you could make a package called modules with a load of json_schemas.
in the package's init module you could then:
from pycorm import lazyload
lazyload(globals())
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
a module called classes:
when someone tries to import something from classes. it will try to see in its directory if it can find a matching jsonschema, if yes it will create a Model around it, cache the model and return it.
a module called Magic could hold the following:
for name in walk(this_dir):
schema = load(name)
then from ipython (ipython loads on tapb) you could do black magic:
(if a jsonschema exist with name User):
from Magic import User
and the Magic module would generate a module to you, return it, and let sysmodules cache it
that would be cool
The text was updated successfully, but these errors were encountered: