# Brainus AI Python SDK

Official Python SDK for the Brainus AI API - RAG-powered educational content queries with citations.

[![PyPI version](https://badge.fury.io/py/brainus-ai.svg)](https://badge.fury.io/py/brainus-ai)
[![Python Support](https://img.shields.io/pypi/pyversions/brainus-ai.svg)](https://pypi.org/project/brainus-ai/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

## Features

- Async-first - Built with `httpx` for modern async/await patterns
- Type-safe - Full type hints with Pydantic models
- Automatic retries - Configurable retry logic for resilience
- Error handling - Custom exceptions for different error cases
- Citation support - Get source documents with page numbers
- Usage tracking - Monitor your API usage and quotas

## Installation

```bash
pip install brainus-ai
```

## Documentation

Full documentation, quick start guide, API reference, and examples are available at:

**https://developers.brainus.lk/docs/sdks/python**

## Resources

- [Documentation](https://developers.brainus.lk/docs/sdks/python)
- [Get API Key](https://developers.brainus.lk/dashboard/keys)
- [Support](https://github.com/BrainUsLK/brainus-ai-python/issues)
- [Website](https://brainus.lk)
- [Developer Portal](https://developers.brainus.lk)

## License

MIT License - see [LICENSE](LICENSE) for details.

---

Made with ❤️ by the Brainus team
