Skip to main content

Build Status Coverage

Dinary — Your Dinar Diary

See what went into the shopping bag.

Scan a fiscal receipt from Serbia or Montenegro and turn its line items into categorized expenses. Correct a category once and reuse that choice on future purchases. Track spending across currencies, trips, and tags, with optional Google Sheets export and AI-assisted analysis.

Pick your category set
Review receipt categories

Quick entry in any currency
  • Know what you bought. Split a supermarket receipt into item-level spending, review uncertain categories, and teach the app your preferences through corrections.
  • Capture it while you remember. Scan QR codes or enter expenses on your phone, including offline. Queued entries sync when the app reconnects.
  • Explore spending your way. Combine categories, trip or event context, and tags. Keep original currencies alongside converted totals, export to Sheets, or ask questions in the local analytics dashboard.

Install it by hand, or let Claude or ChatGPT do it for you.

Mobile app · Analytics dashboard

Under the hood

Corrections become reusable rules. Known items use stored classification rules; unfamiliar or uncertain items go to an LLM. A user correction takes precedence over the model and applies across branches of the same retail chain. Classification failures remain recoverable through retries and review. The classification design explains confidence, alternatives, and manual resolution.

Provider selection and failover are handled by llmbroker, a standalone library for applications that need a pool of LLM providers. Receipt logic stays in Dinary.

A saved expense outlives a failed network call. IndexedDB holds offline entries, and the QR scanner is bundled for offline use. On the server, the SQLite ledger is the source of truth. Google Sheets export runs through a retryable queue, so a spreadsheet outage does not prevent expense capture. See the offline design and Sheets integration.

Analysis has a separate home. The local analytics app uses DuckDB to query a read-only ledger replica, keeping heavy analytics dependencies off the capture server. Its AI can query spending and configure views without editing the ledger. The analytics design covers the dashboard and MCP interface.

Design decisions

Small, frequent lookups shaped the storage layer. In an early synthetic workload, 5,000 mapping lookups took 2.0 seconds with direct SQL and 19.9 seconds through Ibis. That comparison led to SQL files and migrations for the transactional backend. The architecture record documents the workload and trade-offs; the result describes that benchmark, not whole-application performance.

Contributing

Install uv and Node.js, then prepare the full development and test environment:

bash scripts/setup-test-env.sh
npm --prefix webapp ci
uv run inv dev --rebuild

The setup script installs all Python dependency groups and prepares the tools needed by analytics and backup tests. See the development guide for local configuration and platform prerequisites.

uv run inv pre
uv run pytest
npm --prefix webapp test

See AGENTS.md for repository conventions and the deployment guide for hosting.

Allure test report

Metadata

Release files for dinary 1.11.0

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

Source distribution (sdist)

Source distribution for dinary 1.11.0
File Size Uploaded Provenance Actions
dinary-1.11.0.tar.gz 6.6 MB Without provenance Details for dinary-1.11.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dinary 1.11.0
File Interpreter ABI Platform Actions
dinary-1.11.0-py3-none-any.whl Python 3 none any Details for dinary-1.11.0-py3-none-any.whl

Total release size: 6.8 MB

Release files / dinary-1.11.0.tar.gz

Download URL dinary-1.11.0.tar.gz
Size 6.6 MB
Tags Source
SHA-256 checksum
How to use checksums
2c63ac79c755a330adebf2af11bed07b04835dffb75bab51bb5024193566e5e8
BLAKE2b-256 checksum
How to use checksums
526dcde5191b01fcd74bb8c3fe190d42f46fa5e3ebf97c2351593353f76a7e1f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / dinary-1.11.0-py3-none-any.whl

Download URL dinary-1.11.0-py3-none-any.whl
Size 155.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6dae7bb91dbb069f7652273ac57841b6b312fc21ff753496b3a73854e8a413c0
BLAKE2b-256 checksum
How to use checksums
6a65380f0ddfcb39859c2c39da7b676f30de7e611517d7f438b156de9ae443c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for dinary 1.11.0

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.

Release history Release notifications | RSS feed

This release

1.11.0 This release

2 release files No provenance

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