Metadata-Version: 2.4
Name: hooktest
Version: 2.0.0rc0
Summary: Library for testing CiteStructure data, using Dapitains library
Author-email: Thibault Clérice <leponteineptique@gmail.com>
License-Expression: MPL-2.0
Project-URL: Homepage, http://github.com/cllg/hooktest
Classifier: Topic :: Software Development :: Quality Assurance
Classifier: Topic :: Software Development :: Testing
Classifier: Topic :: Software Development :: Version Control
Classifier: Topic :: Text Processing :: Markup :: XML
Classifier: Topic :: Text Processing :: General
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Requires-Python: >=3.12
Description-Content-Type: text/markdown
Requires-Dist: dapytains>=1.0.0rc5
Requires-Dist: click<9.0.0,>=8.1.8
Requires-Dist: colorama~=0.4.6
Requires-Dist: tabulate~=0.9.0
Requires-Dist: tqdm
Provides-Extra: test
Requires-Dist: pytest; extra == "test"
Requires-Dist: pytest-cov; extra == "test"
Requires-Dist: requests-mock; extra == "test"

![Header for HookTest](images/header.png)

[![License: MPL 2.0](https://img.shields.io/badge/License-MPL%202.0-brightgreen.svg)](https://opensource.org/licenses/MPL-2.0) 
[![Software Test](https://github.com/cllg-project/hooktest/actions/workflows/test.yml/badge.svg)](https://github.com/cllg-project/hooktest/actions/workflows/test.yml)

Dapytains provides a server-side or client-side library to deal with
[Distributed Text Services APIs](https://distributed-text-services.github.io/) as well as
TEI XML files using the [CiteStructure](https://tei-c.org/release/doc/tei-p5-doc/en/html/ref-citeStructure.html)
encoding of their machine actionable architecture, allowing to split and retrieve reference in a file
"without human intervention".

HookTestv2, which replaces the original [HookTest](https://hal.science/hal-01709868/), allows for testing those file,
including tests for catalog registry.

**This software is still quite in alpha mode, feel free to report bugs**

## How to install

```sh
pip install --pre hooktest
```

Or from source:

```sh
git clone https://github.com/cllg-project/hooktest.git
cd hooktest
pip install .
```

## How to run

If you want to test a system where you have a root catalog file, you can run `hooktest path/to/your/catalog.xml`
where catalog are using [`hooktest/resources/collection-schema.rng`](hooktest/resources/collection-schema.rng).

Otherwise, run `hooktest --no-catalog /path/to/your/tei/files.xml`.


## Support

Funded via the CLLG Project.

Ce travail a bénéficié d’une aide de l’État gérée par l’Agence Nationale de la
Recherche au titre de France 2030 portant la référence « ANR-24-RRII- 0002 » et opéré par
le Programme Inria Quadrant.
