No project description provided
Project description
huaweicloud-csms-environ
Installation
pip install huaweicloud-csms-environ
Sample Usage
import csms
# basic
csms.load_env('secret-name', region='ap-southeast-2')
# project id instead of region
csms.load_env('secret-name', project_id='project-id')
# using pure environment variables
csms.load_env()
# no environment variables
csms.load_env(
'secret_name',
access_key='access-key',
secret_key='secret-key',
region='ap-southeast-2',
)
Environment Variables
| Key | SDK | Description |
|---|---|---|
HUAWEICLOUD_SDK_AK |
Yes | Access key of Huawei Cloud IAM |
HUAWEICLOUD_SDK_SK |
Yes | Secret key of Huawei Cloud IAM |
HUAWEICLOUD_SDK_PROJECT_ID |
Yes | Huawei Cloud project ID |
HUAWEICLOUD_REGION |
No | Huawei Cloud region |
HUAWEICLOUD_SECRET_NAME |
No | CSMS secret name |
For more SDK variables, please see this.
Development
Requirements
- Docker
- Python
- Poetry
Linting
make lint
Testing
make test
Fix Formatting
make yapf
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file huaweicloud_csms_environ-0.1.2.tar.gz.
File metadata
- Download URL: huaweicloud_csms_environ-0.1.2.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.11.0 Linux/5.15.0-1024-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
573f2e358b4669280156274c020c3cb578131f98cde8cc38ce86dd12c727b1d1
|
|
| MD5 |
960629c235605a7b496dd18997c6fd85
|
|
| BLAKE2b-256 |
ddfacde0c160818a12edae099c78f1ebb4e3422da0b671f5156db53df988284a
|
File details
Details for the file huaweicloud_csms_environ-0.1.2-py3-none-any.whl.
File metadata
- Download URL: huaweicloud_csms_environ-0.1.2-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.11.0 Linux/5.15.0-1024-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
60df4989619c7ef30feb0b1563b7a790e1c30ec693102eb44a616d7d8a7ae542
|
|
| MD5 |
65a9fd8af3b240687213dbc42af9ef3c
|
|
| BLAKE2b-256 |
2c74219c6c52ae3614e59ca3cd912c284111caffe42a9b6f7bd1bc1c707f54f1
|