Data-driven NIFCLOUD SDK for Python
Project description
NIFCLOUD SDK for Python
The NIFCLOUD SDK for Python is data-driven SDK. It works by feeding AWS-SDK-compatible model JSONs to botocore module.
Features
- :heavy_check_mark: Full support for NIFCLOUD Computing / RDB / NAS / ESS / DNS / ObjectStorageService / ServiceActivity APIs
- :heavy_check_mark: The nifcloud package is the foundation for the NIFCLOUD CLI.
- :heavy_check_mark: AWS-SDK-compatible data-driven architecture
Requirements
- Python 3.7 or later
How to Install
pip install nifcloud
Usage
Write your python program:
from nifcloud import session
client = session.get_session().create_client(
"computing",
region_name="jp-east-1",
nifcloud_access_key_id="<Your NIFCLOUD Access Key ID>",
nifcloud_secret_access_key="<Your NIFCLOUD Secret Access Key>"
)
print(client.describe_instances())
Execute the program:
$ python test.py
Credentials and region name can be also passed via environment variables.
from nifcloud import session
client = session.get_session().create_client("computing")
print(client.describe_instances())
$ export NIFCLOUD_ACCESS_KEY_ID=<Your NIFCLOUD Access Key ID>
$ export NIFCLOUD_SECRET_ACCESS_KEY=<Your NIFCLOUD Secret Access Key>
$ export NIFCLOUD_DEFAULT_REGION=jp-east-1
$ python test.py
See documentation for detail.
License
See LICENSE.txt.
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
nifcloud-1.11.0.tar.gz
(109.9 kB
view hashes)
Built Distribution
nifcloud-1.11.0-py2.py3-none-any.whl
(114.5 kB
view hashes)
Close
Hashes for nifcloud-1.11.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f43407b31bf98308c36e617900dcf51ae00d168f908e256c324458cafb8f316e |
|
MD5 | 3ac0d0e8b222d33d5c14438ede2bab01 |
|
BLAKE2b-256 | ed60c11c544c5fe47f4cb142d78fba10e2b6b53a151c1cd13ea613bbf0b679e5 |