Skip to main content

OpenUBA CLI & SDK — install, run, and manage user behavior analytics models

Project description

OpenUBA

PyPI Python License

OpenUBA

The official CLI and Python SDK for OpenUBA — an open-source User Behavior Analytics platform.

Installation

pip install openuba

CLI Usage

# Install a model from the registry
openuba install model_sklearn

# List available models
openuba list

# Run a model
openuba run model_sklearn --data path/to/data.csv

# Show version
openuba version

Python SDK Usage

import openuba

# Configure the client (or set OPENUBA_API_URL env var)
openuba.configure(api_url="http://localhost:8000")

# List available models
models = openuba.list_models()
for model in models:
    print(model["name"], model["version"])

# Install a model
openuba.install("model_sklearn")

# Run a model
results = openuba.run("model_sklearn", data="path/to/data.csv")
print(results)

Configuration

The SDK can be configured via environment variables:

Variable Description Default
OPENUBA_API_URL OpenUBA API server URL http://localhost:8000
OPENUBA_TOKEN Authentication token None

Or programmatically:

import openuba
openuba.configure(api_url="http://your-server:8000", token="your-token")

License

GNU General Public License v3.0 — see LICENSE.

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

openuba-0.0.1.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

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

openuba-0.0.1-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file openuba-0.0.1.tar.gz.

File metadata

  • Download URL: openuba-0.0.1.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for openuba-0.0.1.tar.gz
Algorithm Hash digest
SHA256 5f02c60df8bd7380e19392668d6c1c6981e351c0b8a3cc99c58b483dd5f2b1bc
MD5 aa55bbbdac2a6619e1bfc4fa4a125a16
BLAKE2b-256 cad017ed826ef2e0c55840eadf2fc5e81d02bf02468043a045e0d6a217089942

See more details on using hashes here.

File details

Details for the file openuba-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: openuba-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for openuba-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e18d09710f29d2c0515bcfcb40393f82b8c031d07c1bfd95e6773e066dd73ee9
MD5 5331468ac91460ca89b016fb4f22524c
BLAKE2b-256 050e27afd2fd062e28eab05690b98bece89a2804eadd75db34b6be3e16b519cb

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