OpenUBA CLI & SDK — install, run, and manage user behavior analytics models
Project description
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
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
openuba-0.0.1.tar.gz
(7.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f02c60df8bd7380e19392668d6c1c6981e351c0b8a3cc99c58b483dd5f2b1bc
|
|
| MD5 |
aa55bbbdac2a6619e1bfc4fa4a125a16
|
|
| BLAKE2b-256 |
cad017ed826ef2e0c55840eadf2fc5e81d02bf02468043a045e0d6a217089942
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e18d09710f29d2c0515bcfcb40393f82b8c031d07c1bfd95e6773e066dd73ee9
|
|
| MD5 |
5331468ac91460ca89b016fb4f22524c
|
|
| BLAKE2b-256 |
050e27afd2fd062e28eab05690b98bece89a2804eadd75db34b6be3e16b519cb
|