Skip to content

Can we develop UI for user to configure template without asking regex. #562

Closed

Description

@PatelKrunal0710

This library is excellent for extracting semi-structured information and converting it into structured key-value pairs. Adding a UI to allow end users to configure templates would enhance its functionality significantly. If such a feature is included, this library would be among the best for extracting data from PDFs. I've created a basic structure where users fill in text boxes to generate regex patterns based on their input. However, it's challenging to get precise input from users, especially when it's necessary to include text that comes before or after the actual value.

If someone guide me to design and develop functionality I am happy to contribute and work collaboratively.

Activity

  1. bosd commented on Jul 19, 2026

    @bosd
    Collaborator

    Resolved in 1.0.0 on two fronts:

    • CLI: invoice2data --new-template SAMPLE.pdf --interactive walks the author through a copier-style prompt — auto-detects labelled fields (BTW: ..., KvK: ..., Invoice #: ... in multiple languages), suggests regexes, and lets the user keep / edit / skip each. With --ai, uses an LLM to draft the whole YAML from the sample.
    • Odoo: an OCA module currently in review that stores templates in the Odoo DB and gives you a form UI with the same 'Suggest fields' button, plus per-field editing (parser / regex / static value / replace / extract_number) and a Test button that runs extract_data against an attached PDF. See OCA/edi#1365 (depends on the ongoing 16.0 migration OCA/edi#1220).

    Closing as done — the standalone-webapp UI you may have envisioned isn't a lib concern, but the Odoo module fills that role for accountants.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions