Skaha Client¶
The skaha.client
module provides a client for the Skaha server. The client is based of the
Requests
library and provides a simple interface to the Skaha server. The client configures the
authorization headers for user authentication and container registry access.
Bases: BaseModel
Skaha Client.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
server
|
str
|
Server URL. |
required |
version
|
str
|
Skaha API version. |
required |
certificate
|
str
|
Certificate file. |
required |
timeout
|
int
|
Timeout for requests. |
required |
session
|
Session
|
Requests HTTP Session object. |
required |
verify
|
bool
|
Verify SSL certificate. |
required |
registry
|
ContainerRegistry
|
Credentials for a private registry. |
required |
Raises:
Type | Description |
---|---|
ValidationError
|
If the client is misconfigured. |
Examples:
Text Only
class Sample(SkahaClient):
pass