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 ADDED
@@ -0,0 +1,7 @@
1
+ Metadata-Version: 2.4
2
+ Name: merleau
3
+ Version: 0.1.0
4
+ Summary: Video analysis using Google's Gemini 2.5 Flash API
5
+ Requires-Python: >=3.10
6
+ Requires-Dist: google-genai
7
+ Requires-Dist: python-dotenv
@@ -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,7 @@
1
+ Metadata-Version: 2.4
2
+ Name: merleau
3
+ Version: 0.1.0
4
+ Summary: Video analysis using Google's Gemini 2.5 Flash API
5
+ Requires-Python: >=3.10
6
+ Requires-Dist: google-genai
7
+ Requires-Dist: python-dotenv
@@ -0,0 +1,7 @@
1
+ README.md
2
+ pyproject.toml
3
+ merleau.egg-info/PKG-INFO
4
+ merleau.egg-info/SOURCES.txt
5
+ merleau.egg-info/dependency_links.txt
6
+ merleau.egg-info/requires.txt
7
+ merleau.egg-info/top_level.txt
@@ -0,0 +1,2 @@
1
+ google-genai
2
+ python-dotenv
@@ -0,0 +1 @@
1
+ research
@@ -0,0 +1,9 @@
1
+ [project]
2
+ name = "merleau"
3
+ version = "0.1.0"
4
+ description = "Video analysis using Google's Gemini 2.5 Flash API"
5
+ requires-python = ">=3.10"
6
+ dependencies = [
7
+ "google-genai",
8
+ "python-dotenv",
9
+ ]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+