Skip to main content

Some tools and defaults to program for the ProcessCube.

Project description

SDK für den ProcessCube

Werkzeuge und Tools für die Entwicklung mit dem ProcessCube

Unterstützung

Moduleliste:

  • processcube_sdk.configuration: Umgang mit Konfigurationsdateien
  • processcube_sdk.database: Datenbankzugriffe mit SQLAlchemy und Pandas handeln
  • processcube_sdk.external_tasks: External-Tasks-Basis-Klassen und generische Umsetzung (z.B. Prüfen von Instanzen eines Models)
  • processcube_sdk.fastapi: fastapi-Auth-Module für den Umgang mit Google-Authentifizierung
  • processcube_sdk.jupyter: Vereinfachung der automatischen Ausführung von Jupyter-Notebooks und Ergebnissen, die als Resultat ermittelt werden sollen

Verwendung

processcube_sdk.external_tasks

Die External-Tasks haben für die direkte Verwendung eine Möglichekeit als Module direkt gestartet zu werden.

Das Starten erfolgt wie nachfolgende beschrieben:

python -m pip install processcube_sdk


CONFIG_FILE=`pwd`/config.dev.json PYTHONPATH=. python -m processcube_sdk.external_tasks

Die Konfigurationsdatei, sollte dabei folgende Elemente enthalten:

{
    "engine": 
    {
        "url": "http://192.168.178.125:56100"
    },
    "logging": 
    {
        "level": "info"
    },
    "external_task_worker": {
        "authority_url": "http://localhost:56000",
        "client_name": "processcube_external_tasks",
        "client_secret": "RyxBOlzo4pVQZZ6EzKnjRyxBOlzo4pVQZZ6EzKnjRyxBOlzo4pVQZZ6EzKnjRyxBOlzo4pVQZZ6EzKnj",
        "client_scopes": "engine_etw",
        "max_get_access_token_retries": 10
    }

}

Zur Authorisierung der External-Tasks gegen die Engine ist es notwendig den Eintrag "external_task_worker" mit den Einträgen:

  • authority_url: Authority, die den Token ausstellt
  • client_name: Unter welchem Namen die External-Tasks der Authority bekannt sind
  • client_secret: Secret, welches zur Authentifizierung der External-Tasks benötigt wird
  • client_scopes: Welche Berechtigungen die External-Tasks haben sollen

zu erstellen.

Verwendung mit Docker

Die Verwendung mit Docker ist unter docs/README.Dockerfile.md beschrieben.

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

processcube_sdk-6.0.1.tar.gz (35.7 kB view details)

Uploaded Source

Built Distribution

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

processcube_sdk-6.0.1-py3-none-any.whl (46.9 kB view details)

Uploaded Python 3

File details

Details for the file processcube_sdk-6.0.1.tar.gz.

File metadata

  • Download URL: processcube_sdk-6.0.1.tar.gz
  • Upload date:
  • Size: 35.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for processcube_sdk-6.0.1.tar.gz
Algorithm Hash digest
SHA256 44cd0815fc6b9c417debeb2d8d72c628dc0db8940b97511f4992ed2e8b162edc
MD5 750c687b41e726789ed2a2e34e0a05e2
BLAKE2b-256 bbf97fddaa17339ea0bfb0a4aea8e7c96ba005a2cf1671d1521c09b8ebc3989a

See more details on using hashes here.

File details

Details for the file processcube_sdk-6.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for processcube_sdk-6.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7350a8bad590220153a711c88945911657ae86c828cc1b516a2c696875c30529
MD5 e5dda3864165034bd6df607c60f2f657
BLAKE2b-256 abe5edc1d3d0b58df93919d23875335f7dc108ed33be0aa2768961c53f29b913

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