Metadata-Version: 2.5
Name: indieml
Version: 0.1.29
Summary: A Python integration library for the IndieML Substance API.
License-File: LICENSE
Keywords: mcp,mcp-server,modelcontextprotocol,nlp,rag
Requires-Python: >=3.11
Description-Content-Type: text/markdown

# IndieML - Substance API

A lightweight, transformer-based API that evaluates text for substance, depth, and clarity in under 25ms while achieving 87% of the accuracy of a full-scale LLM. 
This package provides REST API, Python SDK, and MCP configuration details to natively connect the hosted Substance API to a wide variety of applications.
For more information, including API key requests, please visit [IndieML](https://indieml.app).

## Python SDK

**Installation** (requires Python 3.11 or higher)
```bash
pip install indieml
```

**Usage**
```python
from indieml import Substance

# Initialize the API
api = Substance(api_key="YOUR_API_KEY_HERE")

# Single string
single_result = api.score("This is a test run.")
print(single_result)

# Array of strings
batch_result = api.score_batch([
    "This is a test run.", 
    "This is another test run."
])
print(batch_result)
```
<!-- mcp-name: io.github.ezchx/indieml -->

