Skip to main content

IBM Cloud Schematics Python SDK

Project description

Build Status semantic-release

IBM Cloud Schematics Python SDK

Python client library to interact with various IBM Cloud Schematics APIs.

Disclaimer: this SDK is being released initially as a pre-release version. Changes might occur which impact applications that use this SDK.

Table of Contents

Overview

The IBM Cloud Schematics Python SDK allows developers to programmatically interact with the following IBM Cloud services:

Service Name Imported Class Name
Schematics schematicsv1

Prerequisites

  • An IBM Cloud account.
  • An IAM API key to allow the SDK to access your account. Create one here.
  • Python 3.5.3 or above.

Installation

To install, use pip or easy_install:

pip install --upgrade "ibm-schematics>=1.0.1"

or

easy_install --upgrade "ibm-schematics>=1.0.1"

Authentication

The library requires Identity and Access Management (IAM) to authenticate requests. There are several ways to set the properties for authentication

  1. As environment variables
  2. The programmatic approach
  3. With an external credentials file

Authenticate with environment variables

For Schematics IAM authentication set the following environmental variables by replacing with your proper service credentials.

SCHEMATICS_URL = https://schematics.cloud.ibm.com
SCHEMATICS_APIKEY = <apikey>

Authenticate with external configuration

To use an external configuration file, see the related documentation in the Python SDK Core document about authentication.

Authenticate programmatically

To learn more about how to use programmatic authentication, see the related documentation in the Python SDK Core document about authentication.

Getting Started

A quick example to get you up and running with Schematics Python SDK service


from ibm_cloud_sdk_core.authenticators import IAMAuthenticator
from ibm_schematics.schematics_v1 import SchematicsV1

authenticator = IAMAuthenticator('<apiKey>')
schematics_service = SchematicsV1(authenticator = authenticator)
schematics_service.set_service_url('https://schematics.cloud.ibm.com')

get_schematics_version_response = schematics_service.get_schematics_version()
version_response = get_schematics_version_response.get_result()
print(version_response)


Error handling

For sample code on handling errors, please see Schematics API docs.

Using the SDK

For general SDK usage information, please see this link

Questions

If you are having difficulties using this SDK or have a question about the IBM Cloud services, please ask a question Stack Overflow.

Issues

If you encounter an issue with the project, you are welcome to submit a bug report. Before that, please search for similar issues. It's possible that someone has already reported the problem.

Open source @ IBM

Find more open source projects on the IBM Github Page

Contributing

See CONTRIBUTING.md.

License

This SDK is released under the Apache 2.0 license. The license's full text can be found in 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

ibm-schematics-1.1.0.tar.gz (80.7 kB view details)

Uploaded Source

Built Distribution

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

ibm_schematics-1.1.0-py2-none-any.whl (80.5 kB view details)

Uploaded Python 2

File details

Details for the file ibm-schematics-1.1.0.tar.gz.

File metadata

  • Download URL: ibm-schematics-1.1.0.tar.gz
  • Upload date:
  • Size: 80.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.6

File hashes

Hashes for ibm-schematics-1.1.0.tar.gz
Algorithm Hash digest
SHA256 e190c21aef14274f3fca7e7c4c173c826317440ae6a6d0aff208f17f9560278b
MD5 e71d07f211b83425a0028035423910f8
BLAKE2b-256 320323e3fe9402e066ea12d3a3840560b5be0f12452746262c359e6730ea1770

See more details on using hashes here.

File details

Details for the file ibm_schematics-1.1.0-py2-none-any.whl.

File metadata

  • Download URL: ibm_schematics-1.1.0-py2-none-any.whl
  • Upload date:
  • Size: 80.5 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.6

File hashes

Hashes for ibm_schematics-1.1.0-py2-none-any.whl
Algorithm Hash digest
SHA256 0cde04a40bca263c2767821bccd4a29e2dc31198f99689c5f365d55975f73e5f
MD5 637c3081c966e31b47959f75309a557d
BLAKE2b-256 bcb9359c6c8a1eb5a93882ee7f08e721eeff0e98f16fc006bbcfb50ead75c77d

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