Syncano
Getting Started with Syncano
Installing Syncano
Using Virtual Environments
Making Connections
Troubleshooting Connections
Interacting with Syncano
Next Steps
Interacting with Syncano
Creating a Connection
Accessing models
Creating objects
Saving changes to objects
Retrieving objects
Retrieving all objects
Manager is lazy
Retrieving a single object
Removing a single object
Limiting returned objects
Lookups that span relationships
Backward relations
Falling back to raw JSON
Environmental variables
Custom Sockets in Syncano
Creating a custom Socket
Updating the custom Socket
Running custom Socket
Read all endpoints in a custom Socket
Read all endpoints
Custom Sockets endpoints
Custom Socket dependency
Custom Socket recheck
Custom Socket - install from url
Custom Socket - raw format
Syncano references
Subpackages
Submodules
Module contents
Syncano
Docs
»
Syncano references
»
syncano.models
»
syncano.models.registry
View page source
syncano.models.registry
¶
class
Registry
(
models=None
)
[source]
¶
Bases:
object
Models registry.
get_model_patterns
(
cls
)
[source]
¶
get_model_by_path
(
path
)
[source]
¶
get_model_by_name
(
name
)
[source]
¶
update
(
name
,
cls
)
[source]
¶
add
(
name
,
cls
)
[source]
¶
set_default_property
(
name
,
value
)
[source]
¶
set_default_instance
(
value
)
[source]
¶
set_used_instance
(
instance
)
[source]
¶
clear_used_instance
(
)
[source]
¶
get_schema
(
class_name
)
[source]
¶
set_schema
(
class_name
,
schema
)
[source]
¶
clear_schemas
(
)
[source]
¶
set_default_connection
(
default_connection
)
[source]
¶
connection
[source]
¶