Metadata-Version: 2.2
Name: gllm-multimodal-binary
Version: 0.3.1b11
Summary: A library containing multimodal components for Gen AI applications.
Author-email: Obryan Ramadhan <obryan.ramadhan@gdplabs.id>, Yanfa Adi Putra <yanfa.adi-putra@gdplabs.id>, Stanley Giovany <stanley.giovany@gdplabs.id>
Requires-Python: <3.13,>=3.11
Description-Content-Type: text/markdown
Requires-Dist: gllm-core-binary<0.4.0,>=0.3.0
Requires-Dist: gllm-inference-binary<0.6.0,>=0.5.0
Requires-Dist: gllm-pipeline-binary[cache,semantic-router]<0.9.0,>=0.4.21
Requires-Dist: aioresponses<0.8.0,>=0.7.0
Requires-Dist: boto3<2.0.0,>=1.38.10
Requires-Dist: exifread<4.0.0,>=3.3.2
Requires-Dist: filelock<4.0.0,>=3.20.1
Requires-Dist: google-api-python-client<3.0.0,>=2.174.0
Requires-Dist: google-auth<3.0.0,>=2.26.0
Requires-Dist: python-magic<0.5.0,>=0.4.27; sys_platform != "win32"
Requires-Dist: python-magic-bin<0.5.0,>=0.4.14; sys_platform == "win32"
Provides-Extra: dev
Requires-Dist: coverage<8.0.0,>=7.4.4; extra == "dev"
Requires-Dist: mypy<2.0.0,>=1.15.0; extra == "dev"
Requires-Dist: pytest<9.0.0,>=8.1.1; extra == "dev"
Requires-Dist: pytest-asyncio<0.24.0,>=0.23.6; extra == "dev"
Requires-Dist: pytest-cov<6.0.0,>=5.0.0; extra == "dev"
Requires-Dist: pre-commit<4.0.0,>=3.7.0; extra == "dev"
Requires-Dist: ruff<0.7.0,>=0.6.7; extra == "dev"
Provides-Extra: audio
Requires-Dist: google-cloud-speech<3.0.0,>=2.28.0; extra == "audio"
Requires-Dist: google-cloud-storage<3.0.0,>=2.18.2; extra == "audio"
Requires-Dist: langcodes<4.0.0,>=3.4.1; extra == "audio"
Requires-Dist: language-data<2.0.0,>=1.2.0; extra == "audio"
Requires-Dist: openai<3.0.0,>=2.7.0; extra == "audio"
Requires-Dist: soundfile<0.14.0,>=0.13.1; extra == "audio"
Requires-Dist: youtube-transcript-api<2.0.0,>=1.1.0; extra == "audio"
Requires-Dist: yt-dlp>=2025.6.9; extra == "audio"
Provides-Extra: video
Requires-Dist: opencv-python<5.0.0,>=4.8.0; extra == "video"
Requires-Dist: Pillow<11.0.0,>=10.0.0; extra == "video"

# GLLM Multimodal

## Description
A library containing multimodal manager modules for handling modality-specific tasks.

## Installation

### Prerequisites

Mandatory:
1. Python 3.11+ — [Install here](https://www.python.org/downloads/)
2. pip — [Install here](https://pip.pypa.io/en/stable/installation/)
3. uv — [Install here](https://docs.astral.sh/uv/getting-started/installation/)

Extras (required only for Artifact Registry installations):
1. gcloud CLI (for authentication) — [Install here](https://cloud.google.com/sdk/docs/install), then log in using:
   ```bash
   gcloud auth login
   ```

### Install from Artifact Registry

This option requires authentication via the `gcloud` CLI.

```bash
uv pip install \
  --extra-index-url "https://oauth2accesstoken:$(gcloud auth print-access-token)@glsdk.gdplabs.id/gen-ai-internal/simple/" \
  gllm-multimodal
```

## Local Development Setup

### Prerequisites

1. Python 3.11+ — [Install here](https://www.python.org/downloads/)
2. pip — [Install here](https://pip.pypa.io/en/stable/installation/)
3. uv — [Install here](https://docs.astral.sh/uv/getting-started/installation/)
4. gcloud CLI — [Install here](https://cloud.google.com/sdk/docs/install), then log in using:

   ```bash
   gcloud auth login
   ```
5. Git — [Install here](https://git-scm.com/downloads)
6. Access to the [GDP Labs SDK GitHub repository](https://github.com/GDP-ADMIN/gl-sdk)

---

### 1. Clone Repository

```bash
git clone git@github.com:GDP-ADMIN/gl-sdk.git
cd gl-sdk/libs/gllm-multimodal
```

---

### 2. Setup Authentication

Set the following environment variables to authenticate with internal package indexes:

```bash
export UV_INDEX_GEN_AI_INTERNAL_USERNAME=oauth2accesstoken
export UV_INDEX_GEN_AI_INTERNAL_PASSWORD="$(gcloud auth print-access-token)"
export UV_INDEX_GEN_AI_USERNAME=oauth2accesstoken
export UV_INDEX_GEN_AI_PASSWORD="$(gcloud auth print-access-token)"
```

---

### 3. Quick Setup

Run:

```bash
make setup
```

### 4. Activate Virtual Environment

```bash
source .venv/bin/activate
```

## Local Development Utilities

The following Makefile commands are available for quick operations:

### Install uv

```bash
make install-uv
```

### Install Pre-Commit

```bash
make install-pre-commit
```

### Install Dependencies

```bash
make install
```

### Update Dependencies

```bash
make update
```

### Run Tests

```bash
make test
```

## Contributing

Please refer to the [Python Style Guide](https://docs.google.com/document/d/1uRggCrHnVfDPBnG641FyQBwUwLoFw0kTzNqRm92vUwM/edit?usp=sharing)
for information about code style, documentation standards, and SCA requirements.
