This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Reason given by maintainers: mondobrain is no longer maintained. Please use datawhys instead: https://pypi.org/project/datawhys/
MondoBrain Python SDK
MondoBrain Python SDK is a python wrapper for the MondoBrain API that provides additional functionality such as dataframe ingest and one-off processing
Installation
Use the package manager pip to install mondobrain.
pip install mondobrain
Dependencies
Install from source
In the mondobrain-python directory (same directory as this README.md file), run this command in your terminal:
pip install -e .
Usage
import mondobrain as mb
# Set your credentials
mb.api_key = "<API-KEY>"
mb.api_secret = "<API-SECRET>"
# Build a pandas dataframe and store in `df` (not shown)
# Convert your pandas df to a mondobrain df
mdf = mb.MondoDataFrame(df)
# Select a column as your outcome column & specify a target class
outcome = mdf["column_name"]
# for a discrete column
outcome.target_class = "Some_modality"
# for a continuous column the value should be `min` or `max`
outcome.target_class = "max"
# Get a dataframe of all columns you want to explor
explorable = mdf[["column_a", "column_b"]]
# Create a solver instance
solver = mb.Solver()
# Fit your data
solver.fit(explorable, outcome)
# Check your results
solver.rule
See documentation and SDK Example.ipynb in the mondobrain-python directory for more in depth examples.
The package includes documentation to provide explanation and examples of usage.
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. Take a look at CONTRIBUTING.md for more info
Please make sure to update tests as appropriate.
License
Metadata
Release files for mondobrain 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mondobrain-0.2.0.tar.gz | 41.0 kB | Without provenance | Details for mondobrain-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mondobrain-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for mondobrain-0.2.0-py3-none-any.whl |
Total release size: 237.6 kB
Release files / mondobrain-0.2.0.tar.gz
| Download URL | mondobrain-0.2.0.tar.gz |
|---|---|
| Size | 41.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b89d07642b0591e8a7f14e5b8fd3c1329327ec194e8a6156f42e0f15027091cc
|
|
BLAKE2b-256 checksum How to use checksums |
7cf99f7ee05bb2702727eabf2806c737505f16602621089b2f0fa3bb8290e738
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.6.14
|
Release files / mondobrain-0.2.0-py3-none-any.whl
| Download URL | mondobrain-0.2.0-py3-none-any.whl |
|---|---|
| Size | 196.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f889ad1b310ae1955203f5fbc9ab844dec2be0a3c8ed584fa630213c414dc0ff
|
|
BLAKE2b-256 checksum How to use checksums |
75d8d56c58164a7ec39de35079b46bca3ce4e2de6de091ade27df055a418ac75
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.6.14
|
Security for mondobrain 0.2.0
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.