Skip to main content

Python wrapper for NifCloud

Project description

Description

python から NifCloud の REST API を実行するための sdk です

Requirements

このプロジェクトを実行するには以下が必要です:

Install

pip install py_nifcloud

Usage

preparation

ACCESS_KEY_ID と SECRET_ACCESS_KEY を含んだconfigファイルを準備してください (デフォルト: ~/.nifcloud.yml)

ACCESS_KEY_ID: 'your access key'
SECRET_ACCESS_KEY: 'your secret access key'

NifCloudClient

from py_nifcloud.nifcloud_client import NifCloudClient

client = NifCloudClient(service_name="computing", region_name="jp-east-1", base_path="api",)
params = {
    'Action': 'DescribeRegions',
}

response = client.request(method="GET", query=params)

ComputingClient

from py_nifcloud.computing_client import ComputingClient

client = ComputingClient(region_name="jp-east-1")
params = {
    'Action': 'DescribeRegions',
}

response = client.request(method="GET", query=params)

Contributing

PR歓迎

Support and Migration

特に無し

License

MIT License

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

py_nifcloud-0.0.2.tar.gz (3.8 kB view hashes)

Uploaded Source

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