Skip to main content

A simple Python library for Google Gemini with memory support.

Project description

Dracula 🧛

A simple Python library for Google Gemini with conversation memory.

Installation

pip install dracula-ai

Usage

from dracula import Dracula

ai = Dracula( api_key="your-api-key", prompt="You are a helpful assistant.", temperature=1.0, max_output_tokens=1024, max_messages=10 )

Chat

response = ai.chat("Hello, who are you?") print(response)

Change prompt anytime

ai.set_prompt("You are a pirate.")

Change temperature anytime

ai.set_temperature(0.5)

Save and load conversation history

ai.save_history("conversation.json") ai.load_history("conversation.json")

Clear memory

ai.clear_memory()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dracula_ai-0.2.0.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dracula_ai-0.2.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file dracula_ai-0.2.0.tar.gz.

File metadata

  • Download URL: dracula_ai-0.2.0.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for dracula_ai-0.2.0.tar.gz
Algorithm Hash digest
SHA256 bf18d2584ce5fa6d028a1a1c12f2eef8a395040829897d978fb8dd9d3b1f2145
MD5 2c4f02437725bc33ea44c32c61dd69f9
BLAKE2b-256 824cf85879ee003fb532df3dcefa1c2f2c70dc374634ef5c5299b3d1fdedf6d1

See more details on using hashes here.

File details

Details for the file dracula_ai-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: dracula_ai-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for dracula_ai-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3b1426b710d1fbab09511a54d3d6fdbf6f821091d396cfc5130133dd803a1a08
MD5 6a0ca5939b9d536b28cb412c9bbf3999
BLAKE2b-256 8fbf13e65096e31da4a8edbcc1a93af94272ab898ccc453d56e6daa41f5a768a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page