Skip to main content

Library for communicating with the internal API of StellaNow platform.

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.6rc3.tar.gz (13.2 kB view details)

Uploaded Source

Built Distribution

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

stellanow_api_internals-0.0.6rc3-py3-none-any.whl (26.5 kB view details)

Uploaded Python 3

File details

Details for the file stellanow_api_internals-0.0.6rc3.tar.gz.

File metadata

  • Download URL: stellanow_api_internals-0.0.6rc3.tar.gz
  • Upload date:
  • Size: 13.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.4 CPython/3.11.13 Linux/6.11.0-1018-azure

File hashes

Hashes for stellanow_api_internals-0.0.6rc3.tar.gz
Algorithm Hash digest
SHA256 a1873c86475b2ca155da4dac0280955a756090330cb3392a545c91d3f8548e14
MD5 3c419dfae4fc09bd7e861e844668fd46
BLAKE2b-256 3515fbc9cb5a941867374a758821b459190818d9a4cca4df94bcb87a4099be5b

See more details on using hashes here.

File details

Details for the file stellanow_api_internals-0.0.6rc3-py3-none-any.whl.

File metadata

File hashes

Hashes for stellanow_api_internals-0.0.6rc3-py3-none-any.whl
Algorithm Hash digest
SHA256 21c5c55b6aa9be9f4b54dca626388e8d825bdba3ac4ef67075d45a9e113b2a5f
MD5 b783a8264c1866bf876898ae2163f573
BLAKE2b-256 48b9d686dfbdda172a9321b8a0bb85873ec3ed6ce817d6af30e59933b322dda9

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