Skip to main content

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.1.0"

or

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

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.

Release files for ibm-schematics 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for ibm-schematics 2.0.0
File Interpreter ABI Platform
ibm_schematics-2.0.0-py2-none-any.whl Python 2 none any Details

Release files / ibm_schematics-2.0.0-py2-none-any.whl

Download URL ibm_schematics-2.0.0-py2-none-any.whl
Size 186.3 kB
Tags Python 2
SHA-256 checksum
How to use checksums
0e348f7c75edee03d49fbf217eceaa3ee7c77c98688aaa38c91329ec5b878977
BLAKE2b-256 checksum
How to use checksums
eed06f58428e2c67deb07c1ec3f0641c094e25668dc1dd0beae809fdbda11a6d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.2

Release history Release notifications | RSS feed

This release

2.0.0 This release

1 release file

1.1.0

2 release files

1.0.1

3 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page