Skip to main content

A Python interface for metatool functionality

Project description

Metatool

A Python package that provides a simple interface to metatool functionality.

Installation

pip install metatool

Usage

from metatool import MetaTool

# Initialize with configuration
metatool = MetaTool(
    openai_api_key="your-api-key",  # Optional: can also use environment variable
    model_name="gpt-4o-mini",     # Optional: defaults to gpt-4o-mini
    temperature=0.0,                  # Optional: defaults to 0.0
)

# Process instructions
response = metatool.run("Your instructions here")
print(response)

Configuration Options

The MetaToolConfig class, which inherits from BaseModel, defines the following configuration options for MetaTool:

  • openai_api_key: Optional[str] - Your OpenAI API key (default: None)
  • model_name: str - The model to use (default: "gpt-4o-mini")
  • temperature: float - Model temperature setting (default: 0.0)
  • verbose: bool - Enable verbose output (default: False)
  • root_dir: str - Root directory for MetaTool files (default: "./metatool_tmp")
  • api_key: Optional[str] - API key for storage service (default: None)
  • database_path: str - SQLite database path relative to root_dir (default: "metatool.db")

Features

  • Class-based interface with configuration options
  • Simple method for processing instructions
  • Customizable model and tool settings

Requirements

  • Python 3.9+
  • Dependencies listed in setup.py

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

metatool-0.0.1.tar.gz (12.0 kB view details)

Uploaded Source

Built Distribution

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

metatool-0.0.1-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

Details for the file metatool-0.0.1.tar.gz.

File metadata

  • Download URL: metatool-0.0.1.tar.gz
  • Upload date:
  • Size: 12.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.13

File hashes

Hashes for metatool-0.0.1.tar.gz
Algorithm Hash digest
SHA256 794088d9b4d7c965e0a80f17e52a30787c5972b8545f812810fa277e8cefb5f6
MD5 25528352b0e6ab54d0924682a9e31a66
BLAKE2b-256 bdca06fb0326e58211b5e31b96833b6e3889a43bcb0c92c14126ff8b68cb2df2

See more details on using hashes here.

File details

Details for the file metatool-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: metatool-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 13.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.13

File hashes

Hashes for metatool-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a82bb4c91d2f16785f6de47d6a31e93c3dabab6150fd29b885d571621804d26d
MD5 aaa18ef47188ad1c47f4c6fe037499e4
BLAKE2b-256 011a3b4c94e67a6e81a3481fad651480a4c11fc20e0197191779f41bdfa4241b

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