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")

# 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)

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.1.tar.gz (108.0 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.1-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for tackleberry-0.1.1.tar.gz
Algorithm Hash digest
SHA256 59c63cf84d1de7d618e06258ac4fa3347a5ce8b4d3bf7a61e9af93181a8918bd
MD5 8b927f7e52e32d882675970d80dad772
BLAKE2b-256 1556b92af7a50fc6b945f4551b4afc1cfe0057c6b8da3c4c0f7a8db1525276cc

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for tackleberry-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b886baa5b4c6917c7b0796540fe28faa9cb9bcde3d6b580cbe6d7ade215d3150
MD5 eb7540f03227378e63ebcc4fb915438f
BLAKE2b-256 13cd7729998f3e0e62fad1f1d91a0b4c8b1f84216e93ce291d9b5128e26c9dff

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