openavmkit.cloud.azure
AzureCredentials
AzureCredentials(connection_string)
Bases: CloudCredentials
Authentication credentials for Azure
Initialize AzureCredentials object
Parameters:
Name | Type | Description | Default |
---|---|---|---|
connection_string
|
str
|
Your Azure connection string |
required |
Source code in openavmkit/cloud/azure.py
15 16 17 18 19 20 21 22 23 24 |
|
AzureService
AzureService(credentials, container_name, access)
Bases: CloudService
Azure-specific CloudService object.
Attributes:
Name | Type | Description |
---|---|---|
connection_string |
str
|
Your Azure connection string |
blob_service_client |
BlobServiceClient
|
Azure Blob Service Client |
container_client |
ContainerClient
|
Azure Container Client |
Initialize AzureService object
Attributes:
Name | Type | Description |
---|---|---|
credentials |
AzureCredentials
|
Authentication credentials for Azure |
container_name |
str
|
The name of your Azure container |
access |
CloudAccess
|
What kind of access/permission ("read_only", "read_write") |
Source code in openavmkit/cloud/azure.py
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
|
download_file
download_file(remote_file, local_file_path)
Download a remote file from the Azure service
Parameters:
Name | Type | Description | Default |
---|---|---|---|
remote_file
|
CloudFile
|
The file to download |
required |
local_file_path
|
str
|
The path on your local computer you want to save the remote file to |
required |
Source code in openavmkit/cloud/azure.py
84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 |
|
list_files
list_files(remote_path)
List all the files at the given path on Azure
Parameters:
Name | Type | Description | Default |
---|---|---|---|
remote_path
|
str
|
Path on Azure you want to query |
required |
Returns:
Type | Description |
---|---|
list[CloudFile]
|
A listing of all the files contained within the queried path on the remote Azure service |
Source code in openavmkit/cloud/azure.py
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
|
upload_file
upload_file(remote_file_path, local_file_path)
Upload a local file to the Azure service
Parameters:
Name | Type | Description | Default |
---|---|---|---|
remote_file_path
|
str
|
The remote path on the Azure service you want to upload your local file to |
required |
local_file_path
|
str
|
The local path to the file on your local computer that you want to upload |
required |
Source code in openavmkit/cloud/azure.py
100 101 102 103 104 105 106 107 108 109 110 111 112 113 |
|
get_creds_from_env_azure
get_creds_from_env_azure()
Reads and returns Azure credentials from the environment settings
Returns:
Type | Description |
---|---|
AzureCredentials
|
The credentials for Azure stored in environment settings |
Source code in openavmkit/cloud/azure.py
138 139 140 141 142 143 144 145 146 147 148 149 |
|
init_service_azure
init_service_azure(credentials, access)
Initializes the Azure service
Parameters:
Name | Type | Description | Default |
---|---|---|---|
credentials
|
AzureCredentials
|
The credentials to your Azure account |
required |
access
|
CloudAccess
|
What kind of access/permission ("read_only", "read_write") |
required |
Source code in openavmkit/cloud/azure.py
116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 |
|