Skip to main content

pythbot

Useful AI agents in 3 lines.

Install

pip install pythbot

Quickstart

import pythbot
from dotenv import load_dotenv
import os

load_dotenv()

@pythbot.tool
def get_weather(city: str):
    """Get the current weather for a city"""
    return f"Sunny in {city}, 28°C"

bot = pythbot.chat("You are a helpful assistant.")
bot.credentials(model="llama-3.3-70b-versatile", api_key=os.getenv("GROQ_API_KEY"), provider="groq")
bot.run()

Supported providers

Provider provider= value
OpenAI "openai"
Anthropic "anthropic"
Groq "groq"

Tools

Any Python function becomes an AI-callable tool with one decorator:

@pythbot.tool
def search_database(query: str, limit: int):
    """Search the product database"""
    return ...
  • Type hints → JSON schema (auto)
  • Docstring → tool description (auto)
  • Works across all providers

Metadata

Release files for pythbot 0.3.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 pythbot 0.3.1
File Size Uploaded Provenance Actions
pythbot-0.3.1.tar.gz 11.1 kB Without provenance Details for pythbot-0.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pythbot 0.3.1
File Interpreter ABI Platform Actions
pythbot-0.3.1-py3-none-any.whl Python 3 none any Details for pythbot-0.3.1-py3-none-any.whl

Total release size: 25.1 kB

Release files / pythbot-0.3.1.tar.gz

Download URL pythbot-0.3.1.tar.gz
Size 11.1 kB
Tags Source
SHA-256 checksum
How to use checksums
263bbe6aada3b3e9762b239419a6ab5b0b53d65615152d697b2e3370ad15837a
BLAKE2b-256 checksum
How to use checksums
f567d6466282368a576065da08dbf538960f08c316aef4fd8bd197870dad70d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.6

Release files / pythbot-0.3.1-py3-none-any.whl

Download URL pythbot-0.3.1-py3-none-any.whl
Size 14.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8c2a689577702f45c11a46233b9db3c5fee187df110bbca5babc7508f7e1b2af
BLAKE2b-256 checksum
How to use checksums
19bdbd3d9caea773f1c3e68f7b2a7bb6398c670b49b182c1be241ed947f6ae0b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.6

Security for pythbot 0.3.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.

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