The NIFCLOUD SDK for Python is data-driven SDK. It works by feeding AWS-SDK-compatible model JSONs to botocore module.
- ✔️ Full support for NIFCLOUD Computing / RDB / NAS / ESS / DNS / ObjectStorageService / ServiceActivity / DevOps with GitLab APIs
- ✔️ The nifcloud package is the foundation for the NIFCLOUD CLI.
- ✔️ AWS-SDK-compatible data-driven architecture
- Python 3.7 or later
pip install nifcloud
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.
See LICENSE.txt.