> For the complete documentation index, see [llms.txt](https://jtheta-ai.gitbook.io/docs.jtheta.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jtheta-ai.gitbook.io/docs.jtheta.ai/python-sdk/jtheta-python-sdk.md).

# JTheta Python SDK

## 📦 JTheta Python SDK

The official Python SDK for interacting with the [JTheta.ai](https://jtheta.ai) platform — enabling seamless dataset management, annotation requests, and automation of your AI pipeline.

***

### 🚀 Installation

Install the SDK using pip:

```bash
pip install jtheta
```

[![PyPI version](https://badge.fury.io/py/jtheta.svg)](https://pypi.org/project/jtheta/)

***

### 🔑 Getting Started

1. **Login** to <https://app.jtheta.ai> and create a workspace.
2. Navigate to the workspace dashboard and click on the **Create API Key** option in the left sidebar.
3. Copy the generated API key.

```python
import jtheta

# Initialize with your API key
jtheta.init("your_api_key_here")

# Validate your API key
print(jtheta.validate_key())
```

***

### 📁 Project & Dataset Management

#### Create a New Project

```python
project = jtheta.create_project("My Project", "image")
```

#### Create a Dataset and Upload Images

```python
dataset = jtheta.create_dataset(
    "MyDataset",
    "MIT",
    "My Project",
    ["image1.jpg", "image2.jpg"]
)
```

#### Upload Additional Images

```python
upload_image = jtheta.upload_images(
    231,
    "My Project",
    "image1.jpg"
)
```

***

### 👥 Manage Annotators & Reviewers

#### Retrieve Annotators

```python
annotators = jtheta.get_annotators()
```

#### Retrieve Reviewers

```python
reviewers = jtheta.get_reviewers()
```

***

### 📝 Request Annotations

```python
jtheta.request_annotation(
    "My Project",
    dataset["id"],
    "annotator@example.com",
    "reviewer@example.com",
    [
        {"label": "car", "type": "Bounding Boxes"},
        {"label": "truck", "type": "Polygons"}
    ],
    allow_class_creation=True,
    auto_annotation=False
)
```

***

### 📥 Download Annotated Dataset

```python
jtheta.download_dataset(
    dataset["id"],
    format="csv",
    version="1.0",
    save_path="annotations.csv"
)
```

***

### ✅ Features

* Project and dataset creation
* Image upload
* Annotation request and monitoring
* Dataset export
* Retrieve annotators and reviewers

***

### 📬 Support & Feedback

Have questions or feature requests? Reach out!

* **Email**: <contact@jtheta.ai>
* **Website**: <https://jtheta.ai>

***

### 📝 License

This project is licensed under the MIT License. See the [LICENSE](https://pypi.org/project/jtheta/) file for details.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://jtheta-ai.gitbook.io/docs.jtheta.ai/python-sdk/jtheta-python-sdk.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
