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
Publishes a :class:~specklepy.bundle.builder.BundleBuilder as a new version.
Creates the model ingestion, uploads the bundle over the /api/v2 artifacts
rail and returns once the upload is complete; the version appears when the server
finishes ingesting. The builder is finished by this call and cannot be reused.
Requires the bundle extra (pyarrow).
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
Receives a bundle-only version as a :class:~specklepy.bundle.model.Model.
Requires the bundle extra (pyarrow). Close the model (or use it as a context
manager) to delete the downloaded files.
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 |