Skip to main content

huaweicloud-csms-environ

GitHub GitHub Workflow Status codecov PyPI
PyPI - Python Version

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

Metadata

Release files for huaweicloud-csms-environ 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for huaweicloud-csms-environ 0.1.2
File Size Uploaded
huaweicloud_csms_environ-0.1.2.tar.gz 3.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for huaweicloud-csms-environ 0.1.2
File Interpreter ABI Platform
huaweicloud_csms_environ-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 7.6 kB

Release files / huaweicloud_csms_environ-0.1.2.tar.gz

Download URL huaweicloud_csms_environ-0.1.2.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
573f2e358b4669280156274c020c3cb578131f98cde8cc38ce86dd12c727b1d1
BLAKE2b-256 checksum
How to use checksums
ddfacde0c160818a12edae099c78f1ebb4e3422da0b671f5156db53df988284a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.2.2 CPython/3.11.0 Linux/5.15.0-1024-azure

Release files / huaweicloud_csms_environ-0.1.2-py3-none-any.whl

Download URL huaweicloud_csms_environ-0.1.2-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
60df4989619c7ef30feb0b1563b7a790e1c30ec693102eb44a616d7d8a7ae542
BLAKE2b-256 checksum
How to use checksums
2c74219c6c52ae3614e59ca3cd912c284111caffe42a9b6f7bd1bc1c707f54f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.2.2 CPython/3.11.0 Linux/5.15.0-1024-azure

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page