Skip to main content

Indemnipy AI

This is the Indemnipy AI package, which provides a set of tools and capabilities using AI in the wonderful world of insurance. Which inevitably means spreadsheets.

[!NOTE] This package is pre-release. More features and capabilities are planned, and the API may change at any time. Please use with caution - and let us know if you have any feedback or suggestions!

Installation

You can install the package using pip:

pip install indemnipy-ai

or, with uv:

uv pip install indemnipy-ai
# or
uv add indemnipy-ai

Capabilities

This package provides an ExcelCapability that allows you to build Pydantic AI agents which have the ability to work with Excel files (both .xlsx and .xlsm). You can use this capability to read, write, and analyse the data in Excel files.

This capability adds the following abilities to your agent:

  • Automatically discovers named tables and reads them in as Polars dataframes
  • Browses sheets for "table-like" data and can create new tables (again as Polars dataframes) from specific ranges
  • Reads arbitrary ranges of sheets for non-tabular data
  • Non-destructively queries tables using duckdb across sheets and workbooks to create new tables - either to use to help respond to the user or to pass back to the user at the end of a run for their own uses
  • Performs automatic conversion (on data load) of strings which can be unambiguously parsed as datetimes, and optionally does this for dates with missing days (pinning them to the first of the month)
  • Parses any VBA code within the workbook, along with a basic security analysis

Read more about Capabilities in the Pydantic documentation.

Basic Usage

from indemnipy_ai.capabilities.excel import ExcelCapability
from pydantic_ai import Agent

agent = Agent(
    "openai:gpt-4o",
    capabilities=[ExcelCapability()],
    output_type=str,
)

result = agent.run_sync("What spreadsheets do you have access to?")
print(result.output)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

indemnipy_ai-0.1.2.tar.gz (16.2 kB view details)

Uploaded Source

Built Distribution

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

indemnipy_ai-0.1.2-py3-none-any.whl (21.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: indemnipy_ai-0.1.2.tar.gz
  • Upload date:
  • Size: 16.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.4 {"installer":{"name":"uv","version":"0.12.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for indemnipy_ai-0.1.2.tar.gz
Algorithm Hash digest
SHA256 ddcb33639584447d96f3f27cb3bc9299b89311b90aebf8b38568bc4652ec9289
MD5 fbdf49345f5f8ce74895d1049438d90d
BLAKE2b-256 5298f7a345b9cbb75c8cd0d9a59ab555d2db94d381ab931b9ecccfc897650493

See more details on using hashes here.

File details

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

File metadata

  • Download URL: indemnipy_ai-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 21.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.4 {"installer":{"name":"uv","version":"0.12.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for indemnipy_ai-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c6be4f509ec6701eec0f1c708252672b7ca007a36de7f924b47bee4c7961daba
MD5 1704d1cb25e630204ec54a940141af47
BLAKE2b-256 ae0612e82dfb9a652d85f5c64d1e5cb649b233b021f927f01b4f6af3fbf18e06

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 Sentry Error logging StatusPage Status page