Registry / gcp / g42cloudsdkevs

g42cloudsdkevs

JSON →
library0.0.10b0pypypiunverified

Elastic Volume Service (EVS) client library for G42 Cloud, part of the G42 Cloud Python SDK. Current version is 0.0.10b0 (beta), with monthly releases. Supports Python 2.7+ and 3.x. Allows management of cloud volumes, snapshots, and backups.

pip install g42cloudsdkevs
INSTALL
IMPORT
SIG · G42CLOUDSDKEVS
G
g42cloudsdkevs
gcppythonv0.0.10b0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

EvsClient
from g42cloudsdkevs.v1 import EvsClient
from g42cloudsdkevs.v1 import EvsClient
ClientBuilder
from g42cloudsdkcore.client import ClientBuilder
from huaweicloudsdkcore.client import ClientBuilder

Initializes EVS client and lists volumes. Requires environment variables for authentication.

from huaweicloudsdkcore.auth.credentials import BasicCredentials from huaweicloudsdkcore.client import ClientBuilder from g42cloudsdkevs.v1 import EvsClient from g42cloudsdkevs.v1.model import ListVolumesRequest ak = os.environ.get('G42_AK', '') sk = os.environ.get('G42_SK', '') project_id = os.environ.get('G42_PROJECT_ID', '') credentials = BasicCredentials(ak, sk, project_id) client = EvsClient.new_builder() \ .with_credentials(credentials) \ .with_endpoint('https://evs.g42cloud.com') \ .with_region('global') \ .build() req = ListVolumesRequest() resp = client.list_volumes(req) print(resp)
Debug
Known issues
gotchaThe library name is 'g42cloudsdkevs' not 'g42cloudsdk-evs' or 'g42cloud-evssdk'. Install via pip install g42cloudsdkevs exactly.
fix
Use `pip install g42cloudsdkevs`.
affects: all
gotchaThe package depends on huaweicloudsdkcore for base classes and authentication. It must be installed separately or as a dependency.
fix
Install huaweicloudsdkcore: `pip install huaweicloudsdkcore`.
affects: all
Upgrade
Version history
0.0.10b0latest on PyPI · released Oct 30, 2023
Audit
Dependencies

No dependency data recorded yet.

Agent activity
24 hits · last 30 days
node
18
OpenAI (training)
1
Resources
g42cloudsdkevs — pip install g42cloudsdkevs · libregistry