Skip to main content

Library for communicating with the internal API of StellaNow.

Project description

StellaNow API Internals

StellaNow API Internals is a Python library used to communicate with Workflow-Manager and Notification Config services. It enables performing GET, POST, PATCH, and DELETE operations through a simple and consistent interface. This library is designed to help developers interact with StellaNow services via APIs.

Installation

To install the StellaNow API Internals library, you can use pip:

pip install stellanow-api-internals

Usage

Once installed, you can use this library to communicate with StellaNow Workflow-Manager and Notification Config APIs. Below are examples of how to use the library.

Example Usage

from stellanow_api_internals.clients.workflow_manager import WorkflowManagerClient

client = WorkflowManagerClient(
    base_url="https://api.stellanow.com",
    username="your_username",
    password="your_password",
    organization_id="your_org_id",
)

Example: Fetch all projects

projects = client.get_projects()

Example: Create a new project

new_project = client.create_project({
    "name": "New Project",
    "description": "Description of the new project"
    })

Authentication

The library uses the Keycloak authentication system. The WorkflowManagerClient and NotificationConfigClient classes handle authentication automatically. Once the client is initialized with the correct credentials (username, password, organization ID), it will generate and refresh tokens as needed.

Workflow Manager API

The Workflow Manager API allows you to manage projects, events, entities, models, workflows, and DAGs (Directed Acyclic Graphs) related to the StellaNow workflow system.

Example: Creating a New Workflow

workflow_data = {
    "name": "New Workflow",
    "description": "This is a test workflow",
}
new_workflow = client.create_workflow(workflow_data)

Notification Config API

The Notification Config API allows you to manage services, channels, and destinations related to notifications within the StellaNow system.

Example: Fetching Notification Services

from stellanow_api_internals.clients.notification_config import NotificationConfigClient

client = NotificationConfigClient(
    base_url="https://api.stellanow.com",
    username="your_username",
    password="your_password",
    organization_id="your_org_id"
)

services = client.get_services()

Key Features

Workflow Management:

Perform operations like creating workflows, managing DAGs, and handling entities in StellaNow's workflow system.

Notification Configurations:

Manage notification services, channels, and destinations.

Keycloak Authentication:

Automatically handles authentication and token refresh via Keycloak.

Contact and Licensing

For further assistance and support, please contact us at help@stella.systems

The StellaNow Internal API is now open-source software, licensed under the terms of the MIT License. This allows for authorized copying, modification, and redistribution of the CLI tool, subject to the terms outlined in the license.

Please note that while the StellaNow CLI is open-source, the StellaNow platform and its associated code remain proprietary software. Unauthorized copying, modification, redistribution, and use of the StellaNow platform is prohibited without a proper license agreement. For inquiries about the licensing of the StellaNow platform, please contact us via the above email.

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

stellanow_api_internals-0.0.3.tar.gz (20.3 kB view details)

Uploaded Source

Built Distribution

stellanow_api_internals-0.0.3-py3-none-any.whl (37.8 kB view details)

Uploaded Python 3

File details

Details for the file stellanow_api_internals-0.0.3.tar.gz.

File metadata

File hashes

Hashes for stellanow_api_internals-0.0.3.tar.gz
Algorithm Hash digest
SHA256 b483144b2cca5fe6ed0f3d854b0f07a05448c0acc9fa88145a09b09d003ba7d0
MD5 47a1ea68126ac9679dc4ded27546b12f
BLAKE2b-256 e5baf1d4acc69ddf8c2e866f8f55d6235e58d3a4d293f7d1c5789538dfc62117

See more details on using hashes here.

File details

Details for the file stellanow_api_internals-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for stellanow_api_internals-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d78e779860985a805dc2ff4d5ffec7fa071ceff7269444191611d7a8ca88dc45
MD5 b930dd41cc59c91ceb771f6cef5eb1f3
BLAKE2b-256 a3de2884dcf6f2f945b903ec45064ce7df71bf27258bbe97d1955cf164384b48

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page