Skip to main content

No project description provided

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

huaweicloud_csms_environ-0.1.2.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

huaweicloud_csms_environ-0.1.2-py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page