A simple library for communicating with Google's Gemini LLM - no setup required!
Project description
CFPDStuff
A simple Python library for communicating with Google's Gemini LLM. No API keys, no environment variables, no hassle - just install and use!
Installation
pip install cfpdstuff
Quick Start
Option 1: Simple Function Call
import cfpdstuff
response = cfpdstuff.chat("Explain how AI works in a few words")
print(response)
Option 2: Using the Bot Class
from cfpdstuff import CFPDBot
bot = CFPDBot()
response = bot.chat("What is Python?")
print(response)
# Or use the generate method
response = bot.generate("Write a haiku about coding")
print(response)
Option 3: Get Bot Instance
from cfpdstuff import get_bot
bot = get_bot()
response = bot.chat("Hello, how are you?")
print(response)
Features
- ✅ No API key setup required
- ✅ No environment variables needed
- ✅ Simple and intuitive API
- ✅ Ready to use after pip install
Requirements
- Python 3.7+
- google-genai package (installed automatically)
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cfpdstuff-1.0.2.tar.gz
(2.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cfpdstuff-1.0.2.tar.gz.
File metadata
- Download URL: cfpdstuff-1.0.2.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6369693d0036eb23f9d762b4fcd11cad70028c2ad89359cf97a169cb1f45b3ae
|
|
| MD5 |
f27160c2ba6ffde449dbd9a8367e3cec
|
|
| BLAKE2b-256 |
9535c3c1c06e0665c6b286536f9c1cbad242a120ed80cf2250ac285a4a10b302
|
File details
Details for the file cfpdstuff-1.0.2-py3-none-any.whl.
File metadata
- Download URL: cfpdstuff-1.0.2-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
277d25e25217b717b66a0b3e7cb4af7f2f31da10d7cafdb44cc77e0891e1d24b
|
|
| MD5 |
c080b5cbb41baac0f391dc471baa88c8
|
|
| BLAKE2b-256 |
e98da24a831c9e55856fae396632e5aaf7c8c6f40a66224eacb7bd85613027a4
|