Skip to content

Programmatic interface #60

Open
Open
@bemoody

Description

It would be really nice to be able to check documents and obtain the error/warning messages programmatically.

Currently, the function 'Validator.validate' simply dumps the output to the logger, and returns an integer indicating whether any errors were detected.

At a very basic level, it would be nice to simply have a function that invokes vnu.jar and returns its output as a string or a list of strings.

A nicer interface would be to invoke vnu.jar in "json" mode and parse the output into a Python dictionary.

Would you be open to adding such an API?

Activity

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions