merleau 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- merleau-0.1.0/PKG-INFO +7 -0
- merleau-0.1.0/README.md +53 -0
- merleau-0.1.0/merleau.egg-info/PKG-INFO +7 -0
- merleau-0.1.0/merleau.egg-info/SOURCES.txt +7 -0
- merleau-0.1.0/merleau.egg-info/dependency_links.txt +1 -0
- merleau-0.1.0/merleau.egg-info/requires.txt +2 -0
- merleau-0.1.0/merleau.egg-info/top_level.txt +1 -0
- merleau-0.1.0/pyproject.toml +9 -0
- merleau-0.1.0/setup.cfg +4 -0
merleau-0.1.0/PKG-INFO
ADDED
merleau-0.1.0/README.md
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# Merleau
|
|
2
|
+
|
|
3
|
+
A Python utility for video analysis using Google's Gemini 2.5 Flash API.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- Upload video files to Google Gemini
|
|
8
|
+
- AI-powered video content analysis
|
|
9
|
+
- Token usage tracking and cost estimation
|
|
10
|
+
- Automatic polling for file processing completion
|
|
11
|
+
|
|
12
|
+
## Installation
|
|
13
|
+
|
|
14
|
+
Using [uv](https://docs.astral.sh/uv/) (recommended):
|
|
15
|
+
```bash
|
|
16
|
+
uv sync
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Or using pip:
|
|
20
|
+
```bash
|
|
21
|
+
pip install -r requirements.txt
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Configuration
|
|
25
|
+
|
|
26
|
+
1. Get a Gemini API key from [Google AI Studio](https://aistudio.google.com/apikey)
|
|
27
|
+
2. Create a `.env` file in the project root:
|
|
28
|
+
```
|
|
29
|
+
GEMINI_API_KEY=your_api_key_here
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Usage
|
|
33
|
+
|
|
34
|
+
1. Place your video file in the project directory
|
|
35
|
+
2. Update the `video_path` variable in `analyze_video.py` to point to your video
|
|
36
|
+
3. Run the analysis:
|
|
37
|
+
```bash
|
|
38
|
+
uv run python analyze_video.py
|
|
39
|
+
```
|
|
40
|
+
Or with pip installation: `python analyze_video.py`
|
|
41
|
+
|
|
42
|
+
## Output
|
|
43
|
+
|
|
44
|
+
The script provides:
|
|
45
|
+
- Video content analysis from Gemini
|
|
46
|
+
- Token usage breakdown (prompt, response, total)
|
|
47
|
+
- Estimated cost based on Gemini 2.5 Flash pricing
|
|
48
|
+
|
|
49
|
+
## Pricing Reference
|
|
50
|
+
|
|
51
|
+
Gemini 2.5 Flash (as of 2025):
|
|
52
|
+
- Input: $0.15 per 1M tokens (text/image), $0.075 per 1M tokens (video)
|
|
53
|
+
- Output: $0.60 per 1M tokens, $3.50 for thinking tokens
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
research
|
merleau-0.1.0/setup.cfg
ADDED