Operations
Sends an object via the provided transports. Defaults to the local cache.
Returns:
| Type | Description |
|---|---|
|
str -- the object id of the sent object |
Source code in src/specklepy/api/operations.py
Receives an object from a transport.
Returns:
| Type | Description |
|---|---|
Base
|
Base -- the base object |
Source code in src/specklepy/api/operations.py
Serialize a base object. If no write transports are provided, the object will be serialized without detaching or chunking any of the attributes.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
-- optional
|
the transports to write to |
required |
Returns:
| Type | Description |
|---|---|
str
|
str -- the serialized object |
Source code in src/specklepy/api/operations.py
Deserialize a string object into a Base object.
If the object contains referenced child objects that are not stored in the local db, a read transport needs to be provided in order to recompose the base with the children objects.
Returns:
| Type | Description |
|---|---|
Base
|
Base -- the deserialized object |