Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Programmatic interface #60

Open
bemoody opened this issue Nov 12, 2019 · 1 comment
Open

Programmatic interface #60

bemoody opened this issue Nov 12, 2019 · 1 comment

Comments

@bemoody
Copy link

bemoody commented Nov 12, 2019

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?

@svenkreiss
Copy link
Owner

svenkreiss commented Nov 13, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants