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-2.2.0a1.tar.gz (16.3 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-2.2.0a1-py3-none-any.whl (21.4 kB view details)

Uploaded Python 3

File details

Details for the file processcube_sdk-2.2.0a1.tar.gz.

File metadata

  • Download URL: processcube_sdk-2.2.0a1.tar.gz
  • Upload date:
  • Size: 16.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for processcube_sdk-2.2.0a1.tar.gz
Algorithm Hash digest
SHA256 db8fbd69ff079c08034876301a34892311c84e8f19a424241d659fa8f39d35a2
MD5 a23c68d58864d48ba800212d4276ff88
BLAKE2b-256 89740b021cad1e3c68c7a2581f94012cf202f1e8cc081ee775a0cb345ce3ef88

See more details on using hashes here.

File details

Details for the file processcube_sdk-2.2.0a1-py3-none-any.whl.

File metadata

File hashes

Hashes for processcube_sdk-2.2.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 658a86da667dd6dec086e9e40859dc88ed6883fc9a1885ff3405ac6ed4cd72de
MD5 3a6624d384e87dbe261776f841ab4237
BLAKE2b-256 046815e1c5c83b795d1b8aa851345466e5482425f708751cfc6e11b4b3fa6ec2

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