Metadata-Version: 2.5
Name: supaknowledge
Version: 0.1.0
Summary: Supaknowledge client: search, read and flag company knowledge, load skills, record agent traces, and expose Supaknowledge as tools for any OpenAI-compatible or JSON Schema tool loop.
Project-URL: Homepage, https://github.com/alvarofc/supaknowledge
Project-URL: Repository, https://github.com/alvarofc/supaknowledge
Project-URL: Issues, https://github.com/alvarofc/supaknowledge/issues
Project-URL: Documentation, https://github.com/alvarofc/supaknowledge/blob/main/docs/sdk.md#python
Project-URL: Changelog, https://github.com/alvarofc/supaknowledge/blob/main/CHANGELOG.md
Author: Supaknowledge contributors
License-Expression: Apache-2.0
License-File: LICENSE
License-File: NOTICE
Keywords: agent-skills,agents,ai,knowledge,llm,mcp,rag,supabase,supaknowledge,tools
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Typing :: Typed
Requires-Python: >=3.10
Requires-Dist: httpx<1,>=0.27
Provides-Extra: test
Requires-Dist: pytest==9.2.0; extra == 'test'
Description-Content-Type: text/markdown

# supaknowledge (Python)

Python client for [Supaknowledge](https://github.com/alvarofc/supaknowledge), an open-source knowledge factory
built on Supabase. Search, read and flag company knowledge, load skills, record agent traces for the curator,
and hand Supaknowledge to any tool-calling model as OpenAI-compatible (or plain JSON Schema) tools.
Depends only on `httpx`. Python 3.10+.

> Status: alpha (0.x). APIs may change between minor versions.

```bash
pip install supaknowledge
```

```python
import os
from supaknowledge import Supaknowledge

kf = Supaknowledge(url="https://<project>.supabase.co", space="acme/finance", api_key=os.environ["SUPAKNOWLEDGE_API_KEY"])
for r in kf.search("weekly revenue"):
    print(r["path"], r.get("trust"))

kf.flag("incorrect", "revenue_usd does not exist; found revenue_usd_net",
        concept_path="data/orders", suggested_fix="use revenue_usd_net")
```

Full guide (traces, tool loops, MCP client config):
[docs/sdk.md](https://github.com/alvarofc/supaknowledge/blob/main/docs/sdk.md#python).

## License

[Apache-2.0](https://github.com/alvarofc/supaknowledge/blob/main/LICENSE). Supaknowledge is a community project
and is not affiliated with or endorsed by Supabase, Inc.
