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.1.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.1-py3-none-any.whl (21.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: indemnipy_ai-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 31a20f22298514488a61a77a193e8f9e0b97669cc9e9c4f4ddca9a7a8a23088f
MD5 5b9517ea5a7adbcea5dd10dde1e6694f
BLAKE2b-256 cd21681b2dca9b9f38d88079491fafe8fcb876e9a5d602684226a7f4b4daac1e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: indemnipy_ai-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5250ad98f9592c17c5e75bb029614954f72fa2d35bda3457200a9cb75f2959a2
MD5 db6aebef9c5734fe2249c6a512f70eb5
BLAKE2b-256 7c0c78650d333771da61fd5544f9e7a536632438f367c4b880fc8b492a05e702

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