Skip to main content

Tackleberry (or TB) is helping you tackle the access to AI

Project description

Tackleberry

Tackleberry

API may change slightly, still work in progress.

Synopsis

from tackleberry import TB

openai_chat = TB.chat('gpt-4o-mini')
openai_reply = openai_chat.query("Say test")

claude_chat = TB.chat('claude-3-5-sonnet-20241022')
claude_reply = claude_chat.query("Say test")

groq_chat = TB.chat('gemma2-9b-it')
groq_reply = groq_chat.query("Say test")

# OLLAMA_PROXY_URL set for URL, can handle Basic Auth in URL
ollama_chat = TB.chat('ollama/gemma2:2b')
ollama_reply = ollama_chat.query("Say test")

from pydantic import BaseModel

class UserInfo(BaseModel):
    name: str
    age: int

# Using Structured Output Feature of Ollama - no instructor
ollama_user_info = ollama_chat.query("Extract the name and the age: 'John is 20 years old'", UserInfo)

# Using instructor[anthropic]
claude_user_info = claude_chat.query("Extract the name and the age: 'John is 20 years old'", UserInfo)

# Using instructor[groq]
groq_user_info = groq_chat.query("Extract the name and the age: 'John is 20 years old'", UserInfo)

Install

Using PIP

Stable Version with PIP

Install from PyPi

❯ pip install --upgrade tackleberry

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

tackleberry-0.1.2.tar.gz (108.2 kB view details)

Uploaded Source

Built Distribution

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

tackleberry-0.1.2-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

Details for the file tackleberry-0.1.2.tar.gz.

File metadata

  • Download URL: tackleberry-0.1.2.tar.gz
  • Upload date:
  • Size: 108.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.0

File hashes

Hashes for tackleberry-0.1.2.tar.gz
Algorithm Hash digest
SHA256 d4ae5c9d0647254fc2dbc8866af428fe3ce6c32ea043634eab1286a62034a8ae
MD5 9c73ec604fb1bb6539ee8f46fa22879e
BLAKE2b-256 e8e9ab1d3fb629514079c70d51c27b17de1aeb7fdc6006b8adedca3b637faa5a

See more details on using hashes here.

File details

Details for the file tackleberry-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: tackleberry-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 11.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.0

File hashes

Hashes for tackleberry-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6dc5b46761f406bcf1e5089f792f5fa5c0de620ccba137f87c21d9881b8287e6
MD5 b22c1ae233f79d47b6b2a6886e6830b4
BLAKE2b-256 f7e5444b4a250dcc3871694b340ddd1552865897eb3df8e8ed7727e865a22b04

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