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.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file huaweicloud_csms_environ-0.1.0.tar.gz.

File metadata

  • Download URL: huaweicloud_csms_environ-0.1.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.10.8 Linux/5.15.0-1024-azure

File hashes

Hashes for huaweicloud_csms_environ-0.1.0.tar.gz
Algorithm Hash digest
SHA256 759096e3cb1540c567a41622c0fc9822faecee38f9f2a6f7e5bd905681083a5e
MD5 1fdbc6fd3a3db4430b8c3301ff46975d
BLAKE2b-256 ca90fa88b53b01cef17ee3787c4f17e63f33c127e58538e266f69a378d529417

See more details on using hashes here.

File details

Details for the file huaweicloud_csms_environ-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for huaweicloud_csms_environ-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c1dec831c4fa6ae901bf54fedf6f9642f8e32062a23af1ff2669a689fccc7aea
MD5 ea2ed1cb68bfaf2a85f9a25f9785cfc0
BLAKE2b-256 25d8e9b9525c607b2676debbcfec4ce0f01d981fdcd178148e790f42234036b4

See more details on using hashes here.

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