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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

huaweicloud_csms_environ-0.1.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: huaweicloud_csms_environ-0.1.1.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

Hashes for huaweicloud_csms_environ-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a8ce0166ecc4fe4b19092dd123e7010da4e50489dd26729f8e2435e042941e67
MD5 bf91ce0fb72f6a3be147c7846769d821
BLAKE2b-256 f8b11c307efdecdf269ff52e480d196c4e031167b8a8bc8354cfa869310fedf6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for huaweicloud_csms_environ-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ad43ac58216ecf51770ddf7ebf93fd76b66e4a5326559c06d383959a56d77eb0
MD5 8c61846f5cfa0a8d4b332bad0af0fffe
BLAKE2b-256 f69512718179bee617c564e6e21b24d8a136a4023346272dae86a480acc5c542

See more details on using hashes here.

Supported by

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