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
Close
Hashes for huaweicloud_csms_environ-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8ce0166ecc4fe4b19092dd123e7010da4e50489dd26729f8e2435e042941e67 |
|
MD5 | bf91ce0fb72f6a3be147c7846769d821 |
|
BLAKE2b-256 | f8b11c307efdecdf269ff52e480d196c4e031167b8a8bc8354cfa869310fedf6 |
Close
Hashes for huaweicloud_csms_environ-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad43ac58216ecf51770ddf7ebf93fd76b66e4a5326559c06d383959a56d77eb0 |
|
MD5 | 8c61846f5cfa0a8d4b332bad0af0fffe |
|
BLAKE2b-256 | f69512718179bee617c564e6e21b24d8a136a4023346272dae86a480acc5c542 |