SDK Reference¶
vermillio.sdk.core ¶
ExternalPipeline
pydantic-model
¶
Bases: BaseModel
Fields:
-
id(str) -
name(str) -
description(Optional[str]) -
created_at(float) -
contexts(list[str]) -
default_context(str)
Source code in packages/core/src/vermillio/sdk/core/models/pipelines.py
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | |
created_at
pydantic-field
¶
created_at: float
The epoch time in seconds of when this pipeline was created.
default_context
pydantic-field
¶
default_context: str
The default context used if none is provided in endpoints.
description
pydantic-field
¶
Description of what the purpose of this pipeline is.
ExternalSource
pydantic-model
¶
Bases: BaseModel
Fields:
Source code in packages/core/src/vermillio/sdk/core/models/pipelines.py
22 23 24 25 26 27 28 29 30 31 32 33 34 | |
PipelineLoadRequest
pydantic-model
¶
Bases: BaseModel
Fields:
Source code in packages/core/src/vermillio/sdk/core/models/pipelines.py
47 48 49 50 51 52 53 54 | |
context
pydantic-field
¶
Override the default context, if available, to load the sources against.
PipelineResults
pydantic-model
¶
Bases: BaseModel
Fields:
-
id(str) -
status(PipelineSourceStatus) -
created_at(float) -
updated_at(Optional[float]) -
source_id(Optional[str]) -
source_path(Optional[str])
Source code in packages/core/src/vermillio/sdk/core/models/pipelines.py
105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 | |
created_at
pydantic-field
¶
created_at: float
The epoch time in seconds of when this source was created.
source_id
pydantic-field
¶
A (optional) unique id for the source that represents this request in your system.
source_path
pydantic-field
¶
The (optional) source path that was provided in the external source.
status
pydantic-field
¶
status: PipelineSourceStatus
The status of the source, Pending=Awaiting processing. Running=Currently processing. Succeeded=Finished successully. Errored=Unexpected error occurred, will be retried. Failed=Finished unsuccessfully. Deleted=Marked for deletion.
PipelineRunRequest
pydantic-model
¶
Bases: BaseModel
Fields:
Source code in packages/core/src/vermillio/sdk/core/models/pipelines.py
37 38 39 40 41 42 43 44 | |
PipelineSource
pydantic-model
¶
Bases: BaseModel
Fields:
-
id(str) -
status(PipelineSourceStatus) -
created_at(float) -
updated_at(Optional[float]) -
source_id(Optional[str]) -
media_id(Optional[str]) -
asset_id(Optional[str])
Source code in packages/core/src/vermillio/sdk/core/models/pipelines.py
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | |
asset_id
pydantic-field
¶
Optional asset id to pass through to the underlying pipeline call.
created_at
pydantic-field
¶
created_at: float
The epoch time in seconds of when this source was created.
media_id
pydantic-field
¶
Optional media id to pass through to the underlying pipeline call.
source_id
pydantic-field
¶
A (optional) unique id for the source that represents this request in your system.
status
pydantic-field
¶
status: PipelineSourceStatus
The status of the source, Pending=Awaiting processing. Running=Currently processing. Succeeded=Finished successully. Errored=Unexpected error occurred, will be retried. Failed=Finished unsuccessfully. Deleted=Marked for deletion.
PipelineStatus
pydantic-model
¶
Bases: BaseModel
Fields:
-
pending_count(int) -
running_count(int) -
succeeded_count(int) -
errored_count(int) -
failed_count(int)
Source code in packages/core/src/vermillio/sdk/core/models/pipelines.py
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 | |
errored_count
pydantic-field
¶
errored_count: int
The number of sources under this context with status == 'Errored'
failed_count
pydantic-field
¶
failed_count: int
The number of sources under this context with status == 'Failed'
pending_count
pydantic-field
¶
pending_count: int
The number of sources under this context with status == 'Pending'
VermillioAssets ¶
Bases: VermillioBaseClient
Source code in packages/core/src/vermillio/sdk/core/clients/assets.py
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 | |
bulk_download_license ¶
bulk download license
Source code in packages/core/src/vermillio/sdk/core/clients/assets.py
206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 | |
bulk_download_license_zip ¶
downloads all the media for a license
Source code in packages/core/src/vermillio/sdk/core/clients/assets.py
140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 | |
download ¶
downloads a specific media
Source code in packages/core/src/vermillio/sdk/core/clients/assets.py
63 64 65 66 67 68 69 70 71 72 73 74 | |
download_license_zip ¶
downloads all the media for a license
Source code in packages/core/src/vermillio/sdk/core/clients/assets.py
123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 | |
download_media_by_license ¶
downloads all media for a license
Source code in packages/core/src/vermillio/sdk/core/clients/assets.py
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 | |
download_status ¶
download_status(download_id: str)
prepare download zip for for download of licensed data
Source code in packages/core/src/vermillio/sdk/core/clients/assets.py
198 199 200 201 202 203 204 | |
download_zip ¶
download_zip(download_id, download_path: str = '')
downloads all the media for a list of assets
Source code in packages/core/src/vermillio/sdk/core/clients/assets.py
113 114 115 116 117 118 119 120 121 | |
mark_downloaded ¶
mark_downloaded(media_access_id: str) -> DownloadResult
mark media_access as downloaded
Source code in packages/core/src/vermillio/sdk/core/clients/assets.py
188 189 190 191 192 193 194 195 196 | |
media_access ¶
media_access(media_access_id: str) -> DownloadResult
get media access
Source code in packages/core/src/vermillio/sdk/core/clients/assets.py
180 181 182 183 184 185 186 | |
prepare_license ¶
prepare_license(license_id: str)
prepare for download of licensed data
Source code in packages/core/src/vermillio/sdk/core/clients/assets.py
157 158 159 160 161 | |
prepare_zip_license ¶
prepare_zip_license(license_id: str)
prepare download zip for for download of licensed data
Source code in packages/core/src/vermillio/sdk/core/clients/assets.py
97 98 99 100 101 102 103 | |
remaining_downloads ¶
remaining_downloads(download_id: str) -> DownloadResults
get remaining bulk downloads
Source code in packages/core/src/vermillio/sdk/core/clients/assets.py
172 173 174 175 176 177 178 | |
remaining_n_downloads ¶
get remaining bulk downloads
Source code in packages/core/src/vermillio/sdk/core/clients/assets.py
163 164 165 166 167 168 169 170 | |
status_zip ¶
status_zip(download_id: str)
get status of download
Source code in packages/core/src/vermillio/sdk/core/clients/assets.py
105 106 107 108 109 110 111 | |
VermillioBaseClient ¶
Base Vermillio Client providing authentication mechanism via VermillioConfig
Source code in packages/core/src/vermillio/sdk/core/clients/base.py
91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 | |
VermillioBasePipelineClient ¶
Bases: VermillioBaseClient
Base Client for interacting with External Pipeline API.
Source code in packages/core/src/vermillio/sdk/core/clients/pipelines.py
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 | |
VermillioConfig
pydantic-model
¶
Bases: OAuthCredentials
Fields:
Source code in packages/core/src/vermillio/sdk/core/models/config.py
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 | |
prod
property
¶
prod: bool
Whether or not this is targeting production environment. Returns: bool: True if pointed at production, False otherwise.
default
classmethod
¶
default()
Gets the default global config.
If none is set, defaults to from_env
Returns:
VermillioConfig: The default VermillioConfig object.
Source code in packages/core/src/vermillio/sdk/core/models/config.py
10 11 12 13 14 15 16 17 18 19 20 21 | |
from_env
classmethod
¶
from_env(
env_prefix: str = "VERMILLIO_SDK_",
) -> VermillioConfig
Extracts a VermillioConfig from environment variables with the specified prefix. Args: env_prefix (str): Prefix used to construct final environment vars: client_id = f"{env_prefix}CLIENT_ID" client_secret = f"{env_prefix}CLIENT_SECRET"
Source code in packages/core/src/vermillio/sdk/core/models/config.py
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | |
set_default
classmethod
¶
set_default(config: VermillioConfig)
Sets the default global config, used when no config is provided to a client.
Source code in packages/core/src/vermillio/sdk/core/models/config.py
23 24 25 26 27 28 | |
clients ¶
VermillioAssets ¶
Bases: VermillioBaseClient
Source code in packages/core/src/vermillio/sdk/core/clients/assets.py
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 | |
bulk_download_license ¶
bulk download license
Source code in packages/core/src/vermillio/sdk/core/clients/assets.py
206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 | |
bulk_download_license_zip ¶
downloads all the media for a license
Source code in packages/core/src/vermillio/sdk/core/clients/assets.py
140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 | |
download ¶
downloads a specific media
Source code in packages/core/src/vermillio/sdk/core/clients/assets.py
63 64 65 66 67 68 69 70 71 72 73 74 | |
download_license_zip ¶
downloads all the media for a license
Source code in packages/core/src/vermillio/sdk/core/clients/assets.py
123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 | |
download_media_by_license ¶
downloads all media for a license
Source code in packages/core/src/vermillio/sdk/core/clients/assets.py
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 | |
download_status ¶
download_status(download_id: str)
prepare download zip for for download of licensed data
Source code in packages/core/src/vermillio/sdk/core/clients/assets.py
198 199 200 201 202 203 204 | |
download_zip ¶
download_zip(download_id, download_path: str = '')
downloads all the media for a list of assets
Source code in packages/core/src/vermillio/sdk/core/clients/assets.py
113 114 115 116 117 118 119 120 121 | |
mark_downloaded ¶
mark_downloaded(media_access_id: str) -> DownloadResult
mark media_access as downloaded
Source code in packages/core/src/vermillio/sdk/core/clients/assets.py
188 189 190 191 192 193 194 195 196 | |
media_access ¶
media_access(media_access_id: str) -> DownloadResult
get media access
Source code in packages/core/src/vermillio/sdk/core/clients/assets.py
180 181 182 183 184 185 186 | |
prepare_license ¶
prepare_license(license_id: str)
prepare for download of licensed data
Source code in packages/core/src/vermillio/sdk/core/clients/assets.py
157 158 159 160 161 | |
prepare_zip_license ¶
prepare_zip_license(license_id: str)
prepare download zip for for download of licensed data
Source code in packages/core/src/vermillio/sdk/core/clients/assets.py
97 98 99 100 101 102 103 | |
remaining_downloads ¶
remaining_downloads(download_id: str) -> DownloadResults
get remaining bulk downloads
Source code in packages/core/src/vermillio/sdk/core/clients/assets.py
172 173 174 175 176 177 178 | |
remaining_n_downloads ¶
get remaining bulk downloads
Source code in packages/core/src/vermillio/sdk/core/clients/assets.py
163 164 165 166 167 168 169 170 | |
status_zip ¶
status_zip(download_id: str)
get status of download
Source code in packages/core/src/vermillio/sdk/core/clients/assets.py
105 106 107 108 109 110 111 | |
VermillioBaseClient ¶
Base Vermillio Client providing authentication mechanism via VermillioConfig
Source code in packages/core/src/vermillio/sdk/core/clients/base.py
91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 | |
VermillioBasePipelineClient ¶
Bases: VermillioBaseClient
Base Client for interacting with External Pipeline API.
Source code in packages/core/src/vermillio/sdk/core/clients/pipelines.py
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 | |
assets ¶
VermillioAssets ¶
Bases: VermillioBaseClient
Source code in packages/core/src/vermillio/sdk/core/clients/assets.py
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 | |
bulk_download_license ¶
bulk download license
Source code in packages/core/src/vermillio/sdk/core/clients/assets.py
206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 | |
bulk_download_license_zip ¶
downloads all the media for a license
Source code in packages/core/src/vermillio/sdk/core/clients/assets.py
140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 | |
download ¶
downloads a specific media
Source code in packages/core/src/vermillio/sdk/core/clients/assets.py
63 64 65 66 67 68 69 70 71 72 73 74 | |
download_license_zip ¶
downloads all the media for a license
Source code in packages/core/src/vermillio/sdk/core/clients/assets.py
123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 | |
download_media_by_license ¶
downloads all media for a license
Source code in packages/core/src/vermillio/sdk/core/clients/assets.py
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 | |
download_status ¶
download_status(download_id: str)
prepare download zip for for download of licensed data
Source code in packages/core/src/vermillio/sdk/core/clients/assets.py
198 199 200 201 202 203 204 | |
download_zip ¶
download_zip(download_id, download_path: str = '')
downloads all the media for a list of assets
Source code in packages/core/src/vermillio/sdk/core/clients/assets.py
113 114 115 116 117 118 119 120 121 | |
mark_downloaded ¶
mark_downloaded(media_access_id: str) -> DownloadResult
mark media_access as downloaded
Source code in packages/core/src/vermillio/sdk/core/clients/assets.py
188 189 190 191 192 193 194 195 196 | |
media_access ¶
media_access(media_access_id: str) -> DownloadResult
get media access
Source code in packages/core/src/vermillio/sdk/core/clients/assets.py
180 181 182 183 184 185 186 | |
prepare_license ¶
prepare_license(license_id: str)
prepare for download of licensed data
Source code in packages/core/src/vermillio/sdk/core/clients/assets.py
157 158 159 160 161 | |
prepare_zip_license ¶
prepare_zip_license(license_id: str)
prepare download zip for for download of licensed data
Source code in packages/core/src/vermillio/sdk/core/clients/assets.py
97 98 99 100 101 102 103 | |
remaining_downloads ¶
remaining_downloads(download_id: str) -> DownloadResults
get remaining bulk downloads
Source code in packages/core/src/vermillio/sdk/core/clients/assets.py
172 173 174 175 176 177 178 | |
remaining_n_downloads ¶
get remaining bulk downloads
Source code in packages/core/src/vermillio/sdk/core/clients/assets.py
163 164 165 166 167 168 169 170 | |
status_zip ¶
status_zip(download_id: str)
get status of download
Source code in packages/core/src/vermillio/sdk/core/clients/assets.py
105 106 107 108 109 110 111 | |
base ¶
VermillioBaseClient ¶
Base Vermillio Client providing authentication mechanism via VermillioConfig
Source code in packages/core/src/vermillio/sdk/core/clients/base.py
91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 | |
pipelines ¶
VermillioBasePipelineClient ¶
Bases: VermillioBaseClient
Base Client for interacting with External Pipeline API.
Source code in packages/core/src/vermillio/sdk/core/clients/pipelines.py
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 | |
models ¶
ExternalPipeline
pydantic-model
¶
Bases: BaseModel
Fields:
-
id(str) -
name(str) -
description(Optional[str]) -
created_at(float) -
contexts(list[str]) -
default_context(str)
Source code in packages/core/src/vermillio/sdk/core/models/pipelines.py
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | |
created_at
pydantic-field
¶
created_at: float
The epoch time in seconds of when this pipeline was created.
default_context
pydantic-field
¶
default_context: str
The default context used if none is provided in endpoints.
description
pydantic-field
¶
Description of what the purpose of this pipeline is.
ExternalSource
pydantic-model
¶
Bases: BaseModel
Fields:
Source code in packages/core/src/vermillio/sdk/core/models/pipelines.py
22 23 24 25 26 27 28 29 30 31 32 33 34 | |
PipelineLoadRequest
pydantic-model
¶
Bases: BaseModel
Fields:
Source code in packages/core/src/vermillio/sdk/core/models/pipelines.py
47 48 49 50 51 52 53 54 | |
context
pydantic-field
¶
Override the default context, if available, to load the sources against.
PipelineResults
pydantic-model
¶
Bases: BaseModel
Fields:
-
id(str) -
status(PipelineSourceStatus) -
created_at(float) -
updated_at(Optional[float]) -
source_id(Optional[str]) -
source_path(Optional[str])
Source code in packages/core/src/vermillio/sdk/core/models/pipelines.py
105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 | |
created_at
pydantic-field
¶
created_at: float
The epoch time in seconds of when this source was created.
source_id
pydantic-field
¶
A (optional) unique id for the source that represents this request in your system.
source_path
pydantic-field
¶
The (optional) source path that was provided in the external source.
status
pydantic-field
¶
status: PipelineSourceStatus
The status of the source, Pending=Awaiting processing. Running=Currently processing. Succeeded=Finished successully. Errored=Unexpected error occurred, will be retried. Failed=Finished unsuccessfully. Deleted=Marked for deletion.
PipelineRunRequest
pydantic-model
¶
Bases: BaseModel
Fields:
Source code in packages/core/src/vermillio/sdk/core/models/pipelines.py
37 38 39 40 41 42 43 44 | |
PipelineSource
pydantic-model
¶
Bases: BaseModel
Fields:
-
id(str) -
status(PipelineSourceStatus) -
created_at(float) -
updated_at(Optional[float]) -
source_id(Optional[str]) -
media_id(Optional[str]) -
asset_id(Optional[str])
Source code in packages/core/src/vermillio/sdk/core/models/pipelines.py
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | |
asset_id
pydantic-field
¶
Optional asset id to pass through to the underlying pipeline call.
created_at
pydantic-field
¶
created_at: float
The epoch time in seconds of when this source was created.
media_id
pydantic-field
¶
Optional media id to pass through to the underlying pipeline call.
source_id
pydantic-field
¶
A (optional) unique id for the source that represents this request in your system.
status
pydantic-field
¶
status: PipelineSourceStatus
The status of the source, Pending=Awaiting processing. Running=Currently processing. Succeeded=Finished successully. Errored=Unexpected error occurred, will be retried. Failed=Finished unsuccessfully. Deleted=Marked for deletion.
PipelineStatus
pydantic-model
¶
Bases: BaseModel
Fields:
-
pending_count(int) -
running_count(int) -
succeeded_count(int) -
errored_count(int) -
failed_count(int)
Source code in packages/core/src/vermillio/sdk/core/models/pipelines.py
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 | |
errored_count
pydantic-field
¶
errored_count: int
The number of sources under this context with status == 'Errored'
failed_count
pydantic-field
¶
failed_count: int
The number of sources under this context with status == 'Failed'
pending_count
pydantic-field
¶
pending_count: int
The number of sources under this context with status == 'Pending'
VermillioConfig
pydantic-model
¶
Bases: OAuthCredentials
Fields:
Source code in packages/core/src/vermillio/sdk/core/models/config.py
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 | |
prod
property
¶
prod: bool
Whether or not this is targeting production environment. Returns: bool: True if pointed at production, False otherwise.
default
classmethod
¶
default()
Gets the default global config.
If none is set, defaults to from_env
Returns:
VermillioConfig: The default VermillioConfig object.
Source code in packages/core/src/vermillio/sdk/core/models/config.py
10 11 12 13 14 15 16 17 18 19 20 21 | |
from_env
classmethod
¶
from_env(
env_prefix: str = "VERMILLIO_SDK_",
) -> VermillioConfig
Extracts a VermillioConfig from environment variables with the specified prefix. Args: env_prefix (str): Prefix used to construct final environment vars: client_id = f"{env_prefix}CLIENT_ID" client_secret = f"{env_prefix}CLIENT_SECRET"
Source code in packages/core/src/vermillio/sdk/core/models/config.py
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | |
set_default
classmethod
¶
set_default(config: VermillioConfig)
Sets the default global config, used when no config is provided to a client.
Source code in packages/core/src/vermillio/sdk/core/models/config.py
23 24 25 26 27 28 | |
config ¶
VermillioConfig
pydantic-model
¶
Bases: OAuthCredentials
Fields:
Source code in packages/core/src/vermillio/sdk/core/models/config.py
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 | |
prod
property
¶
prod: bool
Whether or not this is targeting production environment. Returns: bool: True if pointed at production, False otherwise.
default
classmethod
¶
default()
Gets the default global config.
If none is set, defaults to from_env
Returns:
VermillioConfig: The default VermillioConfig object.
Source code in packages/core/src/vermillio/sdk/core/models/config.py
10 11 12 13 14 15 16 17 18 19 20 21 | |
from_env
classmethod
¶
from_env(
env_prefix: str = "VERMILLIO_SDK_",
) -> VermillioConfig
Extracts a VermillioConfig from environment variables with the specified prefix. Args: env_prefix (str): Prefix used to construct final environment vars: client_id = f"{env_prefix}CLIENT_ID" client_secret = f"{env_prefix}CLIENT_SECRET"
Source code in packages/core/src/vermillio/sdk/core/models/config.py
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | |
set_default
classmethod
¶
set_default(config: VermillioConfig)
Sets the default global config, used when no config is provided to a client.
Source code in packages/core/src/vermillio/sdk/core/models/config.py
23 24 25 26 27 28 | |
pipelines ¶
ExternalPipeline
pydantic-model
¶
Bases: BaseModel
Fields:
-
id(str) -
name(str) -
description(Optional[str]) -
created_at(float) -
contexts(list[str]) -
default_context(str)
Source code in packages/core/src/vermillio/sdk/core/models/pipelines.py
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | |
created_at
pydantic-field
¶
created_at: float
The epoch time in seconds of when this pipeline was created.
default_context
pydantic-field
¶
default_context: str
The default context used if none is provided in endpoints.
description
pydantic-field
¶
Description of what the purpose of this pipeline is.
ExternalSource
pydantic-model
¶
Bases: BaseModel
Fields:
Source code in packages/core/src/vermillio/sdk/core/models/pipelines.py
22 23 24 25 26 27 28 29 30 31 32 33 34 | |
PipelineLoadRequest
pydantic-model
¶
Bases: BaseModel
Fields:
Source code in packages/core/src/vermillio/sdk/core/models/pipelines.py
47 48 49 50 51 52 53 54 | |
context
pydantic-field
¶
Override the default context, if available, to load the sources against.
PipelineResults
pydantic-model
¶
Bases: BaseModel
Fields:
-
id(str) -
status(PipelineSourceStatus) -
created_at(float) -
updated_at(Optional[float]) -
source_id(Optional[str]) -
source_path(Optional[str])
Source code in packages/core/src/vermillio/sdk/core/models/pipelines.py
105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 | |
created_at
pydantic-field
¶
created_at: float
The epoch time in seconds of when this source was created.
source_id
pydantic-field
¶
A (optional) unique id for the source that represents this request in your system.
source_path
pydantic-field
¶
The (optional) source path that was provided in the external source.
status
pydantic-field
¶
status: PipelineSourceStatus
The status of the source, Pending=Awaiting processing. Running=Currently processing. Succeeded=Finished successully. Errored=Unexpected error occurred, will be retried. Failed=Finished unsuccessfully. Deleted=Marked for deletion.
PipelineRunRequest
pydantic-model
¶
Bases: BaseModel
Fields:
Source code in packages/core/src/vermillio/sdk/core/models/pipelines.py
37 38 39 40 41 42 43 44 | |
PipelineSource
pydantic-model
¶
Bases: BaseModel
Fields:
-
id(str) -
status(PipelineSourceStatus) -
created_at(float) -
updated_at(Optional[float]) -
source_id(Optional[str]) -
media_id(Optional[str]) -
asset_id(Optional[str])
Source code in packages/core/src/vermillio/sdk/core/models/pipelines.py
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | |
asset_id
pydantic-field
¶
Optional asset id to pass through to the underlying pipeline call.
created_at
pydantic-field
¶
created_at: float
The epoch time in seconds of when this source was created.
media_id
pydantic-field
¶
Optional media id to pass through to the underlying pipeline call.
source_id
pydantic-field
¶
A (optional) unique id for the source that represents this request in your system.
status
pydantic-field
¶
status: PipelineSourceStatus
The status of the source, Pending=Awaiting processing. Running=Currently processing. Succeeded=Finished successully. Errored=Unexpected error occurred, will be retried. Failed=Finished unsuccessfully. Deleted=Marked for deletion.
PipelineStatus
pydantic-model
¶
Bases: BaseModel
Fields:
-
pending_count(int) -
running_count(int) -
succeeded_count(int) -
errored_count(int) -
failed_count(int)
Source code in packages/core/src/vermillio/sdk/core/models/pipelines.py
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 | |
errored_count
pydantic-field
¶
errored_count: int
The number of sources under this context with status == 'Errored'
failed_count
pydantic-field
¶
failed_count: int
The number of sources under this context with status == 'Failed'
pending_count
pydantic-field
¶
pending_count: int
The number of sources under this context with status == 'Pending'