Skip to main content

Nebari Plugin Label-Studio Chart

PyPI - Version PyPI - Python Version


Overview

This plugin integrates Label Studio into the Nebari platform, allowing seamless labeling functionality within Nebari. Utilizing Python, Terraform, Kubernetes, and Helm charts, the plugin provides a configurable deployment and authentication through Keycloak.

Design and Architecture

The plugin follows a modular design, leveraging Terraform to define the deployment of Label Studio within a Kubernetes cluster. Key components include:

  • Terraform Configuration: Defines variables, outputs, and resources for deployment, including Helm release, Keycloak authentication, and Kubernetes secrets.
  • Helm Chart Integration: Deploys Label Studio as a Helm chart within the specified Kubernetes namespace.
  • Authentication: Utilizes Keycloak for OpenID authentication, including user roles and group memberships.

Installation Instructions

pip install nebari-plugin-label-studio-chart

Usage Instructions

  • Configurations: Various configurations are available, including domain, realm ID, client ID, signing key, and namespace settings.
  • Authentication: Enable or disable authentication and define specific OpenID parameters.

Configuration Details

Public

Configuration of the Label Studio plugin is controlled through the label_studio section of the nebari-config.yaml for the environment.

label_studio:
    # helm release name - default label-studio
    name: label-studio
    # target namespace - default (nebari global namespace)
    namespace: label-studio
    # enable or disable traefik auth proxy and keycloak integration
    auth:
        enabled: true
    # configure default affinity/selector for chart components
    affinity:
        enabled: true # default
        selector: general # default
        # -- or --
        selector:
            default: general
            worker: worker
            db: general
            auth: general
    # helm chart values overrides
    values: {}

Internal

The following configuration values apply to the internally managed terraform module and are indirectly controlled through related values in nebari-config.yaml.

  • name: Chart name for Helm release.
  • domain: Domain for the plugin's deployment.
  • realm_id, client_id: Keycloak authentication settings.
  • base_url, external_url, valid_redirect_uris: OpenID URLs.
  • signing_key_ref: Signing key reference information.
  • create_namespace, namespace: Kubernetes namespace configuration.
  • overrides: Map for overriding default configurations.
  • auth_enabled: Flag to enable/disable authentication.

Label Studio Version

Label Studio is deployed via its offical Helm chart and will default to using the develop image tag if not specified.

To set a Label Studio version, update your nebari-config.yaml to override the app image tag used in the helm chart.

label_studio:
  namespace: label-studio
  values:
    # Deploy Label Studio 1.8.1
    global:
      image:
        tag: "1.8.1"

See the Label Studio helm chart documentation for all available configurations.

Usage

Once the extension is installed, the Label Studio Community Edition will be available at https://[your-project-domain]/label-studio.

If authentication is enabled, any user attempting to access Label Studio will be required to login first with valid, active Nebari (Keycloak) credentials. However, Label Studio accounts are separate from Nebari accounts. Any user who has passed the authentication step above will then be able to create their own account.

NOTE: The Community Edition of Label Studio does not include role-based access permissions. All users have access to the same functionality and can see all projects.

Once a user has created their account, they can join the Label Studio 101 tutorial at the step Label Studio 101 - Creating Your Project.

For more information on using Label Studio, refer to the Label Studio documentation.

Testing Overview

The plugin includes unit tests to validate its core functionalities:

  • Constructor Test: Verifies the default name and priority.
  • Input Variables Test: Validates domain, realm ID, client ID, and external URL settings.
  • Default Namespace Test: Tests the default namespace configuration.

License

nebari-plugin-label-studio-chart is distributed under the terms of the Apache license.

Metadata

Release files for nebari-plugin-label-studio-chart 0.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nebari-plugin-label-studio-chart 0.0.7
File Size Uploaded Provenance Actions
nebari_plugin_label_studio_chart-0.0.7.tar.gz 12.1 kB Without provenance Details for nebari_plugin_label_studio_chart-0.0.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nebari-plugin-label-studio-chart 0.0.7
File Interpreter ABI Platform Actions
nebari_plugin_label_studio_chart-0.0.7-py3-none-any.whl Python 3 none any Details for nebari_plugin_label_studio_chart-0.0.7-py3-none-any.whl

Total release size: 27.6 kB

Release files / nebari_plugin_label_studio_chart-0.0.7.tar.gz

Download URL nebari_plugin_label_studio_chart-0.0.7.tar.gz
Size 12.1 kB
Tags Source
SHA-256 checksum
How to use checksums
dfe97bbf670ab37aeef643ca65808591d16878a4e5ff240a2c5109f763cf048b
BLAKE2b-256 checksum
How to use checksums
6d37c8fffb28c0716cba53bc85f6a270d30367cd4cbaa444cf63f3c4db3abc10
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.3

Release files / nebari_plugin_label_studio_chart-0.0.7-py3-none-any.whl

Download URL nebari_plugin_label_studio_chart-0.0.7-py3-none-any.whl
Size 15.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
77c9431397dc1ef27de28a56450d2497fb4b7affe77afd4f3614b899fffb0cf5
BLAKE2b-256 checksum
How to use checksums
a781366d4c7ae39483ace61f063523e341bd4ff00811517e26d82f8ff9a7787a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.3

Security for nebari-plugin-label-studio-chart 0.0.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page