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
Author Information
- System Initiative - support@systeminit.com
- System Initiative - info@systeminit.com
- Organization: System Initiative - https://systeminit.com
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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file system_initiative_api_client-1.15.0.tar.gz.
File metadata
- Download URL: system_initiative_api_client-1.15.0.tar.gz
- Upload date:
- Size: 119.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd4d976d6dba8f93609cf28fccff11acc5cf41947ada92c29fdb04f805554b92
|
|
| MD5 |
d679af506e41a91bea47bdfa504ef6e9
|
|
| BLAKE2b-256 |
64d87bff9a0bd938eb04c180dc58075fb0266dc2126862f8ff89e59d723a81db
|
File details
Details for the file system_initiative_api_client-1.15.0-py3-none-any.whl.
File metadata
- Download URL: system_initiative_api_client-1.15.0-py3-none-any.whl
- Upload date:
- Size: 296.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f0221565c1f4ecfcad2579dfe8d0c10d1df570b2c6af4042ffab229a1f6330e
|
|
| MD5 |
72206a638bcbfe5eacdfb67d44747f8a
|
|
| BLAKE2b-256 |
b76b0ae1d0e1f6125dee4b1e15aa352dc76d36b213229256ed66e2346ed95d56
|