Skip to main content

Pydantic-powered tools for building reliable, type-safe AI agents.

Project description

PyTools

A collection of Pydantic-powered tools for building AI agents.
Includes utilities such as file readers, file listers, private network readers, crawlers, and more — all designed to integrate smoothly with agent frameworks.


🚀 Features

  • Typed Tools — Strict input/output validation with Pydantic models.
  • Reusable Components — Common utilities like file reading, listing, and crawling.
  • Agent-Friendly — Easily pluggable into LLM agents or tool-based frameworks.
  • Modern Packaging — Built and published using uv.

📦 Installation

pip install tools-pydantic

Or, if you’re using uv

uv pip install tools-pydantic

🛠️ Usage

from ToolsPydantic import FileReaderPyTools, ListProjectFilesPyTools, ReadPrivateNetworkPyTools
from pydantic_ai import Agent

# Example usage
tool = FileReaderPyTools().get_tool()
Agent(
    name="Example Agent",
    # ...
    tools=[
        FileReaderPyTools().get_tool(),
        ListProjectFilesPyTools().get_tool(),
        ReadPrivateNetworkPyTools("https://example.private.tech").get_tool()
    ]
)

🧪 Running Tests

uv run pytest

This project uses pytest and coverage.

To check coverage:

uv run coverage run -m pytest
uv run coverage report -m

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

tools_pydantic-0.2.0.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

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

tools_pydantic-0.2.0-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tools_pydantic-0.2.0.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.5

File hashes

Hashes for tools_pydantic-0.2.0.tar.gz
Algorithm Hash digest
SHA256 e3c1807ba711576b80356f1ae36fe107a20810559fcee823132d480418ad35ec
MD5 caced98ef2e1755270fcacc506843b9e
BLAKE2b-256 83d5a44f2a9c3f84712d2aca23d906c5e89928355ea485b99ddf6543e62e533b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tools_pydantic-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3e22badac5e55ead64f4f5f9dfe090ac0fe24a8dfd0b74b5086061abc4ded7c6
MD5 ea9e0daa8d91bba2495f99567c094345
BLAKE2b-256 1b291783f9ee693d83e1fef8b00a4d926316fbc4c9f86c7f18082f486427aa79

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