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.

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:

  • Browses a configured directory to discover available .xlsx and .xlsm files
  • 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

Pass base_dir to point the capability at the directory containing your spreadsheets. The agent can then browse for available files and load them without you supplying explicit paths.

from pathlib import Path

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

agent = Agent(
    "openai:gpt-4o",
    capabilities=[ExcelCapability(base_dir=Path("./data"))],
    output_type=str,
)

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

Metadata

Release files for indemnipy-ai 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for indemnipy-ai 0.1.4
File Size Uploaded Provenance Actions
indemnipy_ai-0.1.4.tar.gz 17.4 kB Without provenance Details for indemnipy_ai-0.1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for indemnipy-ai 0.1.4
File Interpreter ABI Platform Actions
indemnipy_ai-0.1.4-py3-none-any.whl Python 3 none any Details for indemnipy_ai-0.1.4-py3-none-any.whl

Total release size: 40.8 kB

Release files / indemnipy_ai-0.1.4.tar.gz

Download URL indemnipy_ai-0.1.4.tar.gz
Size 17.4 kB
Tags Source
SHA-256 checksum
How to use checksums
a5b23fb5ea6a7d93e922d4d5e4701a66d4ad28d0e6765d92ffc71d3e75a3a783
BLAKE2b-256 checksum
How to use checksums
4d4254576f8489674f1a8ea8db3fed2dbc9d9ca747c662141ce7d98b066fef40
Upload date
Uploaded using Trusted Publishing?
What is 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":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / indemnipy_ai-0.1.4-py3-none-any.whl

Download URL indemnipy_ai-0.1.4-py3-none-any.whl
Size 23.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2937523191cf8948ef0f6e722f35c0d11b09af42d87f2315515c6acd54280983
BLAKE2b-256 checksum
How to use checksums
eea4d12ba104575342db33b9d1d83d48ab48f05232b7f908cda45c650c6babcb
Upload date
Uploaded using Trusted Publishing?
What is 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":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for indemnipy-ai 0.1.4

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