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.0.tar.gz (14.0 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.0-py3-none-any.whl (27.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: stellanow_api_internals-0.0.0.tar.gz
  • Upload date:
  • Size: 14.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.3 CPython/3.11.15 Linux/6.17.0-1010-azure

File hashes

Hashes for stellanow_api_internals-0.0.0.tar.gz
Algorithm Hash digest
SHA256 8a59373592c128d77b0a14d4e620a9ed7a1f126724cf6851ba5b4d05f8106ae4
MD5 071f481d013c0d3bcb19728d28f09ecc
BLAKE2b-256 3f14562f5b0080ea6b8fe067688bb63fc1222748397ce7e870f892107c159dde

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stellanow_api_internals-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b141cd698f33277b30851719c329658bcb5b200196b418af0de616f738abdc18
MD5 6fd3041ac1b929cf6c4bc994492c19e7
BLAKE2b-256 5b596cbfd46fb7bc0f6a81206662c1e9bbddda4fa8079f3fc358de8b35d100e5

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