Skip to main content

Python SDK for the System Initiative Public API

Project description

system_initiative_api_client

Python SDK for the System Initiative Public API

Installation

You can install the package via pip:

pip install system_initiative_api_client

Requirements

Python >=3.8

Usage

Please refer to the documentation for more information.

Authentication

This API uses BASIC authentication.

import system_initiative_api_client
from system_initiative_api_client.api_client import ApiClient
from system_initiative_api_client.configuration import Configuration

# Configure API key authorization
api_token = os.environ.get('SI_API_TOKEN')
api_client = system_initiative_api_client.ApiClient(configuration)
api_client.default_headers['Authorization'] = f"Bearer {api_token}"

change_sets_api = ChangeSetsApi(api_client)
workspace_id = os.environ.get("SI_WORKSPACE_ID")

def print_response(response, title="Response"):
    if hasattr(response, "to_dict"):
        response_dict = response.to_dict()
        print(json.dumps(response_dict, indent=2, default=str))

# Example API client usage
list_response = change_sets_api.list_change_sets(workspace_id=workspace_id)
print_response(list_response, "List Change Sets Response")

License

Apache License 2.0

Author Information

Development

For development, clone this repository and install in development mode:

git clone https://github.com/systeminit/si
cd generated-sdks/python
pip install -e .

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

system_initiative_api_client-1.3.3.tar.gz (95.8 kB view details)

Uploaded Source

Built Distribution

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

system_initiative_api_client-1.3.3-py3-none-any.whl (236.0 kB view details)

Uploaded Python 3

File details

Details for the file system_initiative_api_client-1.3.3.tar.gz.

File metadata

File hashes

Hashes for system_initiative_api_client-1.3.3.tar.gz
Algorithm Hash digest
SHA256 873a54ba0dfc1e0a3712a1d1fc1a0f20ded6d9e30619e64bf13bcff16c1204f0
MD5 7eab21e1a9d6b6ecafb3aebd2c19ace6
BLAKE2b-256 2ad21ed24a8e928ab58f608ff1338f55c87e1518f1460c3d27525d4b53fa9dcd

See more details on using hashes here.

File details

Details for the file system_initiative_api_client-1.3.3-py3-none-any.whl.

File metadata

File hashes

Hashes for system_initiative_api_client-1.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e85a62c588e9a4782775eba918bdb79dde48678460f354348311ea2d61941c62
MD5 b0d69be556de41abb14980f9f4692070
BLAKE2b-256 fe31f69e69454c1add9c4cfd2d66e0a57a98a38a49ddcaed415c1b98652fcbd7

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