Python wrapper for NifCloud
Project description
Description
python から NifCloud の REST API を実行するための sdk です
Requirements
このプロジェクトを実行するには以下が必要です:
python 3.4.+
Install
pip install py-nifcloud
Preparation
config file
ACCESS_KEY_ID と SECRET_ACCESS_KEY を含んだconfigファイルを準備してください (デフォルト: ~/.nifcloud.yml)
ACCESS_KEY_ID: 'your access key' SECRET_ACCESS_KEY: 'your secret access key'
environment
ACCESS_KEY_ID と SECRET_ACCESS_KEY を環境変数に設定して準備することもできます config file より優先されます
export ACCESS_KEY_ID="your access key" export SECRET_ACCESS_KEY="your secret access key"
Usage
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
Project details
Release history Release notifications | RSS feed
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.3.tar.gz
(4.0 kB
view hashes)
Built Distribution
Close
Hashes for py_nifcloud-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b361e1e6fd4423b0d9ac3f2f01d1f249856450c83ce708a055477f23e7e9ea4 |
|
MD5 | 681a2bf19ae09c1192fd32e9fe164577 |
|
BLAKE2b-256 | 178c0d7c8b1aa0f666d7f8a60a022a27c0416d61eaf9ee049db3a09fe9c725b2 |