Skip to main content

Financial data integrity assertions engine

Project description

finlint-audit

Financial data integrity assertions engine. Part of finlint.

Quick Start

from finlint_audit import (
    assert_net_worth,
    AssertionContext,
    Account,
    AccountType,
)
from decimal import Decimal

ctx = AssertionContext(
    accounts=[
        Account(id="1", type=AccountType.DEPOSITORY, balance_current=Decimal("10000")),
        Account(id="2", type=AccountType.CREDIT, balance_current=Decimal("2500")),
    ],
    holdings=[],
    liabilities=[],
    snapshots=[],
    transactions=[],
)
result = assert_net_worth(ctx)
print(result.status)  # "pass"
print(result.metadata["net_worth"])  # "7500"

CLI

pip install finlint-audit[all]
finlint-audit --config finlint.yaml
finlint-audit --config finlint.yaml --format json
finlint-audit --config finlint.yaml --dry-run

Built-in Assertions

ID Name What it checks
nw-001 Net Worth Equation assets + investments - liabilities = net_worth
sign-001 Sign Correctness Liabilities non-negative; no credit in asset totals
overlap-001 Overlap Detection No duplicate accounts across users
snap-001 Snapshot Consistency At most 1 snapshot/account/day; no gaps > N days
drift-001 Balance Drift Latest snapshot ≈ current balance

License

Apache-2.0

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

finlint_audit-0.6.2.tar.gz (69.0 kB view details)

Uploaded Source

Built Distribution

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

finlint_audit-0.6.2-py3-none-any.whl (44.8 kB view details)

Uploaded Python 3

File details

Details for the file finlint_audit-0.6.2.tar.gz.

File metadata

  • Download URL: finlint_audit-0.6.2.tar.gz
  • Upload date:
  • Size: 69.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for finlint_audit-0.6.2.tar.gz
Algorithm Hash digest
SHA256 7890e32a736976e9a6ff0bc1255349782764bad9452ea8cc1f2e70210fbc87ae
MD5 827852142720c3d5b4c62844bf1ebcaf
BLAKE2b-256 0ec19a2b54d1e27a41ee2f9cdbaace8e5e5c8a120405d442ca9f5b981e28a8c8

See more details on using hashes here.

File details

Details for the file finlint_audit-0.6.2-py3-none-any.whl.

File metadata

  • Download URL: finlint_audit-0.6.2-py3-none-any.whl
  • Upload date:
  • Size: 44.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for finlint_audit-0.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c1f95b0aad2b05de8cb8c96ff3340a5f0c777ebcec64244baaba763e0209fa14
MD5 7ff2091ccd5d0307d6c6feecb76acec4
BLAKE2b-256 2984964b5678dc2e52446bd41ce04ff966cd097c98cc26992b0df2bf21d38e78

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