MLSentinel monitors machine learning models, detects data drift and performance degradation, generates health reports, and provides actionable recommendations for reliable AI deployment.
18
stars
26
commits
Python
primary language
Aug 24, 2026
updated
Python SDK for monitoring machine learning models with MLSentinel.
Website · Dashboard · PyPI · GitHub
MLSentinel is a Python SDK for sending machine learning model evaluation metrics and data-quality reports to the MLSentinel platform.
The SDK handles local validation, authentication, report submission, and API errors while keeping the integration simple.
You can use the SDK to:
There are two main ways to send model evaluation reports:
auto_report() — automatically uses the model associated with your API key.doc_report() — lets you provide the project and model manually.MLSentinel supports Python 3.9 and newer.
Install the latest version from PyPI:
pip install mlsentinel
To install the SDK from a local checkout while developing:
pip install .
Import MLDoc and initialize the client using your MLSentinel API key.
from mlsentinel import MLDoc
client = MLDoc("YOUR_API_KEY")
You can now send model evaluation reports to MLSentinel.
For production applications, do not hard-code your API key in your source code. Use an environment variable or a secret manager.
The MLSentinel Dashboard is the web interface for managing your machine learning monitoring projects.
The SDK is used from your Python application to send evaluation data to MLSentinel. The dashboard is used to configure your projects and models and monitor the results.
From the dashboard, you can:
Open the dashboard:
Before using auto_report(), create your workspace, project, model, and API key from the dashboard.
Open the MLSentinel Signup and sign in to your account.
After signing in, open your workspace.
Create a workspace for your machine learning projects.
For example:
Workspace: My ML Projects
Your browser does not support the video tag.
If you already have a workspace, you can use the existing one.
A workspace keeps your projects and models organized.
Open your workspace and create a project for the machine learning application you want to monitor.
For example:
Project: Spam Detector
Your browser does not support the video tag.
The project contains the models you want to monitor.
Open the project and add the model you want to monitor.
For example:
Model: Random Forest
Your browser does not support the video tag.
You can add multiple models to the same project.
For example:
Spam Detector
├── Random Forest
├── XGBoost
└── Logistic Regression
Open the API Keys section from the dashboard.
Click:
Create API Key
Your browser does not support the video tag.
A form will appear for creating the API key.
Enter a label that helps you identify how the key will be used.
For example:
Production Monitoring
Your browser does not support the video tag.
Other useful labels include:
Development
Production
GitHub Actions
Local Testing
Model Evaluation
The label is only used to identify the API key.
Select the model that the API key should be associated with.
For example:
Default Model: Random Forest
Your browser does not support the video tag.
This is important when using auto_report().
The selected model becomes the default model for that API key.
When the SDK sends an automatic report, MLSentinel uses the API key to determine which model should receive the report.
Click Create Key.
MLSentinel will generate a new API key.
It will look similar to:
mls_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Your browser does not support the video tag.
Copy the key and store it securely.
The API key should be treated as a secret.
Do not publish it on GitHub or include it directly in publicly accessible source code.
Install MLSentinel in your Python project:
pip install mlsentinel
Create an MLDoc client using the API key generated from the dashboard.
from mlsentinel import MLDoc
client = MLDoc("YOUR_API_KEY")
Replace YOUR_API_KEY with the key generated from the dashboard.
Prepare your model evaluation metrics:
metrics = {
"accuracy": 0.95,
"precision": 0.94,
"recall": 0.93,
"f1_score": 0.935,
"roc_auc": 0.98,
"val_loss": 0.18,
}
Send them using auto_report():
response = client.auto_report(
metrics=metrics
)
print(response)
You do not need to provide the project or model name.
MLSentinel uses the default model associated with the API key.
This video demonstrates how to:
MLDoc clientauto_report()Video: ADD_VIDEO_LINK_HERE
This video demonstrates how to:
Video: ADD_VIDEO_LINK_HERE
Replace
ADD_VIDEO_LINK_HEREwith your YouTube or other video URL when the videos are published.
auto_report() is the simplest way to send model evaluation metrics to MLSentinel.
You do not need to provide the project or model name with every report.
The API key already has a default model associated with it, so MLSentinel uses that model automatically.
Prepare the evaluation metrics from your model:
metrics = {
"accuracy": 0.95,
"precision": 0.94,
"recall": 0.93,
"f1_score": 0.935,
"roc_auc": 0.98,
"val_loss": 0.18,
}
from mlsentinel import MLDoc
client = MLDoc("YOUR_API_KEY")
response = client.auto_report(
metrics=metrics
)
print(response)
You do not need to provide:
project="..."
model="..."
MLSentinel uses the default model associated with your API key.
You can use auto_report() directly after evaluating a machine learning model.
For example, using scikit-learn:
from sklearn.ensemble import RandomForestClassifier
from sklearn.metrics import (
accuracy_score,
precision_score,
recall_score,
f1_score,
)
from mlsentinel import MLDoc
model = RandomForestClassifier()
model.fit(X_train, y_train)
y_pred = model.predict(X_test)
metrics = {
"accuracy": accuracy_score(y_test, y_pred),
"precision": precision_score(
y_test,
y_pred,
average="weighted",
),
"recall": recall_score(
y_test,
y_pred,
average="weighted",
),
"f1_score": f1_score(
y_test,
y_pred,
average="weighted",
),
}
client = MLDoc("YOUR_API_KEY")
response = client.auto_report(
metrics=metrics
)
print(response)
The metrics are calculated locally and then submitted to MLSentinel.
The backend uses the API key to find the associated default model and stores the report under that model.
Do not hard-code API keys in production applications.
Set your API key as an environment variable.
export MLSENTINEL_API_KEY="your_api_key"
$env:MLSENTINEL_API_KEY="your_api_key"
Then load the key in Python:
import os
from mlsentinel import MLDoc
client = MLDoc(
os.environ["MLSENTINEL_API_KEY"]
)
You can then send reports normally:
response = client.auto_report(
metrics={
"accuracy": 0.95,
"precision": 0.94,
"recall": 0.93,
"f1_score": 0.935,
}
)
print(response)
Use doc_report() when you want to specify the project and model manually.
This is useful when the same API key is used to report metrics for different models or projects.
from mlsentinel import MLDoc
client = MLDoc("YOUR_API_KEY")
response = client.doc_report(
project="Spam Detector",
model="Random Forest",
metrics={
"accuracy": 0.95,
"precision": 0.94,
"recall": 0.93,
"f1_score": 0.935,
"roc_auc": 0.98,
"val_loss": 0.18,
},
)
print(response)
Unlike auto_report(), doc_report() requires both the project and model.
| Feature | auto_report() | doc_report() |
|---|---|---|
| Metrics required | Yes | Yes |
| Project required | No | Yes |
| Model required | No | Yes |
| Default model required | Yes | No |
| Model selected automatically | Yes | No |
| Best for | Monitoring one configured model | Reporting to different models |
For most integrations where one API key belongs to one model, auto_report() is the simpler option.
MLSentinel handles the common work required to communicate with the MLSentinel platform.
The SDK:
auto_report()doc_report()Validation happens locally first whenever possible, so invalid input can be detected before a request is sent.
MLSentinel can generate a summary of a pandas DataFrame and send the result to the platform.
This can be useful for checking the quality of data being used by a model.
import pandas as pd
from mlsentinel import MLDoc
df = pd.read_csv("creditcard.csv")
client = MLDoc("YOUR_API_KEY")
response = client.report_data_quality(
project="Loan Prediction",
model="Random Forest",
dataframe=df,
)
print(response)
The data-quality feature requires:
pandas
numpy
The data-quality summary is generated locally before being submitted to MLSentinel.
MLSentinel supports the following model evaluation metrics.
| Metric | Accepted value |
|---|---|
accuracy | Number from 0 to 1 |
precision | Number from 0 to 1 |
recall | Number from 0 to 1 |
f1_score | Number from 0 to 1 |
roc_auc | Number from 0 to 1 |
val_loss | Number greater than or equal to 0 |
Example:
metrics = {
"accuracy": 0.95,
"precision": 0.94,
"recall": 0.93,
"f1_score": 0.935,
}
Metric values are validated before the report is submitted.
For doc_report(), both project and model must be non-empty strings.
client.doc_report(
project="Spam Detector",
model="Random Forest",
metrics={
"accuracy": 0.95,
},
)
For auto_report(), project and model names are not required.
client.auto_report(
metrics={
"accuracy": 0.95,
}
)
In both cases, metrics must be a non-empty dictionary containing supported metrics with valid values.
Invalid input is rejected locally before the request is sent.
Every API key used with auto_report() must have a default model.
The default model is selected when the API key is created from the MLSentinel Dashboard.
For example:
Label: Production Monitoring
Default Model: Random Forest
When the key is used:
from mlsentinel import MLDoc
client = MLDoc("YOUR_API_KEY")
client.auto_report(
metrics={
"accuracy": 0.94,
"precision": 0.93,
"recall": 0.92,
"f1_score": 0.925,
}
)
MLSentinel automatically sends the report to the model associated with the API key.
If an API key does not have a default model, auto_report() cannot determine which model should receive the metrics.
API keys can be managed from the MLSentinel APIKeys.
You can:
When a key is no longer required, revoke it from the dashboard.
A revoked API key can no longer be used to authenticate requests to MLSentinel.
After reports are submitted through the SDK, open the MLSentinel Monitoring to monitor the associated model.
The dashboard provides information about your model's evaluation history and health.
You can use it to review:
You can continue sending reports from your training or evaluation pipeline and use the dashboard as the central place to monitor your models.
You can monitor multiple models by creating separate API keys and assigning each key to its corresponding default model.
For example:
Production API Key
→ Random Forest
Development API Key
→ XGBoost
Testing API Key
→ Logistic Regression
Each application can then use its own API key:
from mlsentinel import MLDoc
client = MLDoc("YOUR_API_KEY")
client.auto_report(
metrics={
"accuracy": 0.95,
"precision": 0.94,
"recall": 0.93,
"f1_score": 0.935,
}
)
The SDK does not need to specify the model because the API key already has a default model configured.
The SDK provides its own exception types so applications can handle MLSentinel failures cleanly.
from mlsentinel import MLDoc
from mlsentinel.exceptions import MLSentinelError
client = MLDoc("YOUR_API_KEY")
try:
response = client.auto_report(
metrics={
"accuracy": 1.2,
}
)
except MLSentinelError as error:
print(error.code)
print(error.message)
For example, an accuracy value of 1.2 is invalid because accuracy must be between 0 and 1.
| Situation | Exception |
|---|---|
| Invalid project | ProjectValidationError |
| Invalid model | ModelValidationError |
| Invalid metrics | MetricValidationError |
| Invalid API key | InvalidAPIKeyError |
| Authentication or authorization failure | AuthenticationError |
| Timeout or connection failure | MLSentinalConnectionError |
| Unexpected API response | MLSentinalServerError |
| Backend server failure | MLSentinalServerError |
You can catch specific exceptions when different failures need different handling.
MLDoc(api_key, check_version=True)Creates an MLSentinel client.
client = MLDoc(
"YOUR_API_KEY"
)
api_key — MLSentinel API key.check_version — enables or disables SDK compatibility checking.client.auto_report(metrics)Automatically submits model evaluation metrics using the default model associated with the API key.
response = client.auto_report(
metrics={
"accuracy": 0.95,
"precision": 0.94,
"recall": 0.93,
"f1_score": 0.935,
}
)
metrics — dictionary containing supported model evaluation metrics.The API key must have a default model associated with it.
client.doc_report(project, model, metrics)Submits a report while manually specifying the project and model.
response = client.doc_report(
project="Spam Detector",
model="Random Forest",
metrics={
"accuracy": 0.95,
},
)
project — MLSentinel project name.model — model name.metrics — dictionary containing model evaluation metrics.client.report_data_quality(project, model, dataframe)Generates a local data-quality summary from a pandas DataFrame and submits it to MLSentinel.
response = client.report_data_quality(
project="Loan Prediction",
model="Random Forest",
dataframe=df,
)
project — MLSentinel project name.model — model name.dataframe — pandas DataFrame to analyze.client.version()Returns the installed MLSentinel SDK version.
print(client.version())
MLSentinel requires:
requests 2.31.0 or newerData-quality features also require:
pandasnumpyTreat your MLSentinel API key like a password.
Do not expose API keys in:
Do not do this in production:
client = MLDoc("mls_your_real_api_key_here")
Instead, use an environment variable:
import os
from mlsentinel import MLDoc
client = MLDoc(
os.environ["MLSENTINEL_API_KEY"]
)
If an API key is accidentally exposed, revoke it from the MLSentinel Dashboard and create a new one.
MLSentinel is distributed under the MIT License.
Created by Adari Narasimha Dhoni.
26 commits
Python
100.0%
MLSentinel monitors machine learning models, detects data drift and performance degradation, generates health reports, and provides actionable recommendations for reliable AI deployment.
18
stars
26
commits
Python
primary language
Aug 24, 2026
updated
Python SDK for monitoring machine learning models with MLSentinel.
Website · Dashboard · PyPI · GitHub
MLSentinel is a Python SDK for sending machine learning model evaluation metrics and data-quality reports to the MLSentinel platform.
The SDK handles local validation, authentication, report submission, and API errors while keeping the integration simple.
You can use the SDK to:
There are two main ways to send model evaluation reports:
auto_report() — automatically uses the model associated with your API key.doc_report() — lets you provide the project and model manually.MLSentinel supports Python 3.9 and newer.
Install the latest version from PyPI:
pip install mlsentinel
To install the SDK from a local checkout while developing:
pip install .
Import MLDoc and initialize the client using your MLSentinel API key.
from mlsentinel import MLDoc
client = MLDoc("YOUR_API_KEY")
You can now send model evaluation reports to MLSentinel.
For production applications, do not hard-code your API key in your source code. Use an environment variable or a secret manager.
The MLSentinel Dashboard is the web interface for managing your machine learning monitoring projects.
The SDK is used from your Python application to send evaluation data to MLSentinel. The dashboard is used to configure your projects and models and monitor the results.
From the dashboard, you can:
Open the dashboard:
Before using auto_report(), create your workspace, project, model, and API key from the dashboard.
Open the MLSentinel Signup and sign in to your account.
After signing in, open your workspace.
Create a workspace for your machine learning projects.
For example:
Workspace: My ML Projects
Your browser does not support the video tag.
If you already have a workspace, you can use the existing one.
A workspace keeps your projects and models organized.
Open your workspace and create a project for the machine learning application you want to monitor.
For example:
Project: Spam Detector
Your browser does not support the video tag.
The project contains the models you want to monitor.
Open the project and add the model you want to monitor.
For example:
Model: Random Forest
Your browser does not support the video tag.
You can add multiple models to the same project.
For example:
Spam Detector
├── Random Forest
├── XGBoost
└── Logistic Regression
Open the API Keys section from the dashboard.
Click:
Create API Key
Your browser does not support the video tag.
A form will appear for creating the API key.
Enter a label that helps you identify how the key will be used.
For example:
Production Monitoring
Your browser does not support the video tag.
Other useful labels include:
Development
Production
GitHub Actions
Local Testing
Model Evaluation
The label is only used to identify the API key.
Select the model that the API key should be associated with.
For example:
Default Model: Random Forest
Your browser does not support the video tag.
This is important when using auto_report().
The selected model becomes the default model for that API key.
When the SDK sends an automatic report, MLSentinel uses the API key to determine which model should receive the report.
Click Create Key.
MLSentinel will generate a new API key.
It will look similar to:
mls_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Your browser does not support the video tag.
Copy the key and store it securely.
The API key should be treated as a secret.
Do not publish it on GitHub or include it directly in publicly accessible source code.
Install MLSentinel in your Python project:
pip install mlsentinel
Create an MLDoc client using the API key generated from the dashboard.
from mlsentinel import MLDoc
client = MLDoc("YOUR_API_KEY")
Replace YOUR_API_KEY with the key generated from the dashboard.
Prepare your model evaluation metrics:
metrics = {
"accuracy": 0.95,
"precision": 0.94,
"recall": 0.93,
"f1_score": 0.935,
"roc_auc": 0.98,
"val_loss": 0.18,
}
Send them using auto_report():
response = client.auto_report(
metrics=metrics
)
print(response)
You do not need to provide the project or model name.
MLSentinel uses the default model associated with the API key.
This video demonstrates how to:
MLDoc clientauto_report()Video: ADD_VIDEO_LINK_HERE
This video demonstrates how to:
Video: ADD_VIDEO_LINK_HERE
Replace
ADD_VIDEO_LINK_HEREwith your YouTube or other video URL when the videos are published.
auto_report() is the simplest way to send model evaluation metrics to MLSentinel.
You do not need to provide the project or model name with every report.
The API key already has a default model associated with it, so MLSentinel uses that model automatically.
Prepare the evaluation metrics from your model:
metrics = {
"accuracy": 0.95,
"precision": 0.94,
"recall": 0.93,
"f1_score": 0.935,
"roc_auc": 0.98,
"val_loss": 0.18,
}
from mlsentinel import MLDoc
client = MLDoc("YOUR_API_KEY")
response = client.auto_report(
metrics=metrics
)
print(response)
You do not need to provide:
project="..."
model="..."
MLSentinel uses the default model associated with your API key.
You can use auto_report() directly after evaluating a machine learning model.
For example, using scikit-learn:
from sklearn.ensemble import RandomForestClassifier
from sklearn.metrics import (
accuracy_score,
precision_score,
recall_score,
f1_score,
)
from mlsentinel import MLDoc
model = RandomForestClassifier()
model.fit(X_train, y_train)
y_pred = model.predict(X_test)
metrics = {
"accuracy": accuracy_score(y_test, y_pred),
"precision": precision_score(
y_test,
y_pred,
average="weighted",
),
"recall": recall_score(
y_test,
y_pred,
average="weighted",
),
"f1_score": f1_score(
y_test,
y_pred,
average="weighted",
),
}
client = MLDoc("YOUR_API_KEY")
response = client.auto_report(
metrics=metrics
)
print(response)
The metrics are calculated locally and then submitted to MLSentinel.
The backend uses the API key to find the associated default model and stores the report under that model.
Do not hard-code API keys in production applications.
Set your API key as an environment variable.
export MLSENTINEL_API_KEY="your_api_key"
$env:MLSENTINEL_API_KEY="your_api_key"
Then load the key in Python:
import os
from mlsentinel import MLDoc
client = MLDoc(
os.environ["MLSENTINEL_API_KEY"]
)
You can then send reports normally:
response = client.auto_report(
metrics={
"accuracy": 0.95,
"precision": 0.94,
"recall": 0.93,
"f1_score": 0.935,
}
)
print(response)
Use doc_report() when you want to specify the project and model manually.
This is useful when the same API key is used to report metrics for different models or projects.
from mlsentinel import MLDoc
client = MLDoc("YOUR_API_KEY")
response = client.doc_report(
project="Spam Detector",
model="Random Forest",
metrics={
"accuracy": 0.95,
"precision": 0.94,
"recall": 0.93,
"f1_score": 0.935,
"roc_auc": 0.98,
"val_loss": 0.18,
},
)
print(response)
Unlike auto_report(), doc_report() requires both the project and model.
| Feature | auto_report() | doc_report() |
|---|---|---|
| Metrics required | Yes | Yes |
| Project required | No | Yes |
| Model required | No | Yes |
| Default model required | Yes | No |
| Model selected automatically | Yes | No |
| Best for | Monitoring one configured model | Reporting to different models |
For most integrations where one API key belongs to one model, auto_report() is the simpler option.
MLSentinel handles the common work required to communicate with the MLSentinel platform.
The SDK:
auto_report()doc_report()Validation happens locally first whenever possible, so invalid input can be detected before a request is sent.
MLSentinel can generate a summary of a pandas DataFrame and send the result to the platform.
This can be useful for checking the quality of data being used by a model.
import pandas as pd
from mlsentinel import MLDoc
df = pd.read_csv("creditcard.csv")
client = MLDoc("YOUR_API_KEY")
response = client.report_data_quality(
project="Loan Prediction",
model="Random Forest",
dataframe=df,
)
print(response)
The data-quality feature requires:
pandas
numpy
The data-quality summary is generated locally before being submitted to MLSentinel.
MLSentinel supports the following model evaluation metrics.
| Metric | Accepted value |
|---|---|
accuracy | Number from 0 to 1 |
precision | Number from 0 to 1 |
recall | Number from 0 to 1 |
f1_score | Number from 0 to 1 |
roc_auc | Number from 0 to 1 |
val_loss | Number greater than or equal to 0 |
Example:
metrics = {
"accuracy": 0.95,
"precision": 0.94,
"recall": 0.93,
"f1_score": 0.935,
}
Metric values are validated before the report is submitted.
For doc_report(), both project and model must be non-empty strings.
client.doc_report(
project="Spam Detector",
model="Random Forest",
metrics={
"accuracy": 0.95,
},
)
For auto_report(), project and model names are not required.
client.auto_report(
metrics={
"accuracy": 0.95,
}
)
In both cases, metrics must be a non-empty dictionary containing supported metrics with valid values.
Invalid input is rejected locally before the request is sent.
Every API key used with auto_report() must have a default model.
The default model is selected when the API key is created from the MLSentinel Dashboard.
For example:
Label: Production Monitoring
Default Model: Random Forest
When the key is used:
from mlsentinel import MLDoc
client = MLDoc("YOUR_API_KEY")
client.auto_report(
metrics={
"accuracy": 0.94,
"precision": 0.93,
"recall": 0.92,
"f1_score": 0.925,
}
)
MLSentinel automatically sends the report to the model associated with the API key.
If an API key does not have a default model, auto_report() cannot determine which model should receive the metrics.
API keys can be managed from the MLSentinel APIKeys.
You can:
When a key is no longer required, revoke it from the dashboard.
A revoked API key can no longer be used to authenticate requests to MLSentinel.
After reports are submitted through the SDK, open the MLSentinel Monitoring to monitor the associated model.
The dashboard provides information about your model's evaluation history and health.
You can use it to review:
You can continue sending reports from your training or evaluation pipeline and use the dashboard as the central place to monitor your models.
You can monitor multiple models by creating separate API keys and assigning each key to its corresponding default model.
For example:
Production API Key
→ Random Forest
Development API Key
→ XGBoost
Testing API Key
→ Logistic Regression
Each application can then use its own API key:
from mlsentinel import MLDoc
client = MLDoc("YOUR_API_KEY")
client.auto_report(
metrics={
"accuracy": 0.95,
"precision": 0.94,
"recall": 0.93,
"f1_score": 0.935,
}
)
The SDK does not need to specify the model because the API key already has a default model configured.
The SDK provides its own exception types so applications can handle MLSentinel failures cleanly.
from mlsentinel import MLDoc
from mlsentinel.exceptions import MLSentinelError
client = MLDoc("YOUR_API_KEY")
try:
response = client.auto_report(
metrics={
"accuracy": 1.2,
}
)
except MLSentinelError as error:
print(error.code)
print(error.message)
For example, an accuracy value of 1.2 is invalid because accuracy must be between 0 and 1.
| Situation | Exception |
|---|---|
| Invalid project | ProjectValidationError |
| Invalid model | ModelValidationError |
| Invalid metrics | MetricValidationError |
| Invalid API key | InvalidAPIKeyError |
| Authentication or authorization failure | AuthenticationError |
| Timeout or connection failure | MLSentinalConnectionError |
| Unexpected API response | MLSentinalServerError |
| Backend server failure | MLSentinalServerError |
You can catch specific exceptions when different failures need different handling.
MLDoc(api_key, check_version=True)Creates an MLSentinel client.
client = MLDoc(
"YOUR_API_KEY"
)
api_key — MLSentinel API key.check_version — enables or disables SDK compatibility checking.client.auto_report(metrics)Automatically submits model evaluation metrics using the default model associated with the API key.
response = client.auto_report(
metrics={
"accuracy": 0.95,
"precision": 0.94,
"recall": 0.93,
"f1_score": 0.935,
}
)
metrics — dictionary containing supported model evaluation metrics.The API key must have a default model associated with it.
client.doc_report(project, model, metrics)Submits a report while manually specifying the project and model.
response = client.doc_report(
project="Spam Detector",
model="Random Forest",
metrics={
"accuracy": 0.95,
},
)
project — MLSentinel project name.model — model name.metrics — dictionary containing model evaluation metrics.client.report_data_quality(project, model, dataframe)Generates a local data-quality summary from a pandas DataFrame and submits it to MLSentinel.
response = client.report_data_quality(
project="Loan Prediction",
model="Random Forest",
dataframe=df,
)
project — MLSentinel project name.model — model name.dataframe — pandas DataFrame to analyze.client.version()Returns the installed MLSentinel SDK version.
print(client.version())
MLSentinel requires:
requests 2.31.0 or newerData-quality features also require:
pandasnumpyTreat your MLSentinel API key like a password.
Do not expose API keys in:
Do not do this in production:
client = MLDoc("mls_your_real_api_key_here")
Instead, use an environment variable:
import os
from mlsentinel import MLDoc
client = MLDoc(
os.environ["MLSENTINEL_API_KEY"]
)
If an API key is accidentally exposed, revoke it from the MLSentinel Dashboard and create a new one.
MLSentinel is distributed under the MIT License.
Created by Adari Narasimha Dhoni.
26 commits
Python
100.0%