What ?
Capitains HookTest is a python library and commandline tool for testing Capitains CTS packages or CTS files individually.
Install
To install it, simply do : pip3 install HookTest or
git clone https://github.com/Capitains/HookTest.git
cd HookTest
python3 setup.py install
From there, you will be able to call it in your python scripts with ìmport HookTest or you can use it in your terminal session
Be careful, as Capitains requires java for Schematron and RelaxNG tests
How ?
The command is run with hooktest [-h] [-i UUID] [-r REPOSITORY] [-b BRANCH] [-w WORKERS] [-s SCHEME] [-v] [-j JSON] [-c] [-p PING] [-f FINDER] path where Path is the path to the containing repository (in which there is a folder data/)
Parameter in console |
Detail about the Parameter |
|---|---|
-h, –help |
show this help message and exit |
-i UUID, –uuid UUID |
Identifier for a test. This will be used as a temporary folder name |
-r REPOSITORY, –repository REPOSITORY |
Name of the git repository |
-b BRANCH, –branch BRANCH |
Reference for the branch |
-w WORKERS, –workers WORKERS |
Number of workers to be used |
-s SCHEME, –scheme SCHEME |
‘tei’ or ‘epidoc’ scheme to be used |
-v, –verbose |
Show RNG’s errors and other details |
-j JSON, –json JSON |
Save to specified json file the results |
-c, –console |
Print to console |
-p PING, –ping PING |
Send results to a server |
-f FINDER, –finder Finder |
Filter using the last part of the URN (eg. tlg0001.tlg001, tlg0001, tlg0001.tlg001.p-grc1 for urn:cts:greekLit:tlg0001.tlg001.p-grc1 |
–countword |
Count words in texts passing the tests |
Licenses
TEI and EpiDoc Schema
The TEI Schema is copyright the TEI Consortium (http://www.tei-c.org/Guidelines/access.xml#body.1_div.2). To the extent that the EpiDoc ODD and schema have been customized and amount to transformative versions of the original schema, they are copyright Gabriel Bodard and the other contributors (as listed in tei:revisionDesc). See LICENSE.txt for license details.
Metadata
Release files for hooktest 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| HookTest-0.2.0.tar.gz | 187.7 kB | Without provenance | Details for HookTest-0.2.0.tar.gz |
Release files / HookTest-0.2.0.tar.gz
| Download URL | HookTest-0.2.0.tar.gz |
|---|---|
| Size | 187.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
60e5a8d20d08694f395df04dd657c28457557c353a18e0e8fe867061480dc621
|
|
BLAKE2b-256 checksum How to use checksums |
aa09ecdcd26969f89673216035cfa30a4b846064f2bfd5d9696c5b1e430c164a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for hooktest 0.2.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.