Skip to main content

GeminiDataProcessor

Overview

GeminiDataProcessor is a Python library that streamlines data processing through the use of Google's generative AI models (Gemini). It allows users to generate structured responses for tabular datasets using customizable prompts and schemas.

Features

  • Integration with Gemini AI: Process data through Google's generative AI models.
  • Asynchronous Processing: Supports efficient handling of large datasets using asyncio.
  • Flexible Schema: Define custom output schemas for structured JSON responses.
  • Error Handling: Robust error management for API and data parsing issues.
  • Progress Tracking: Real-time processing feedback with tqdm.

Installation

You can install the module using pip:

pip install gemini_data_processor
from gemini_batch_processor import GeminiBot

bot = GeminiBot(
    input_file="input_data.csv",
    prompt_template="Generate a summary for: {row[column name]}",
    key_names="summary,details",
    api_key="your_google_api_key",
    model="gemini-1.5-flash-002"
)
from gemini_batch_processor import GeminiBot
GeminiBot.model_list(api_key="your_api_key")

Metadata

Release files for gemini-batch-processor 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gemini-batch-processor 1.0.1
File Size Uploaded Provenance
gemini_batch_processor-1.0.1.tar.gz 5.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for gemini-batch-processor 1.0.1
File Interpreter ABI Platform
gemini_batch_processor-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 10.8 kB

Release files / gemini_batch_processor-1.0.1.tar.gz

Download URL gemini_batch_processor-1.0.1.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
9685a650e69d5c1799da4b8d970654d465f49efcb7a51138ef71a791a66393db
BLAKE2b-256 checksum
How to use checksums
231d437e4cc16cb9e3f348b7b6bae9c18b3966cf57fd121afa5e4958909288f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.7

Release files / gemini_batch_processor-1.0.1-py3-none-any.whl

Download URL gemini_batch_processor-1.0.1-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7fce6d257dcb05491e0c45cd9c6eeed164183fc6bbdae5ee1b60180d478a9b56
BLAKE2b-256 checksum
How to use checksums
877338cab0f6712b49921c103afb680ae1f2254ba3903cfe5e364e9566678420
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.7

Security for gemini-batch-processor 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page