HCDC - Helpcenter Character Detection Client
HCDC is a client to detect certain characters inside newly changed files from a PR or a different Git branch. It will analyze text files and use an OCR service to recognize characters inside new or changed images.
Installation
pip install .
Usage
hcdc --help
Options
-h, --help Show this help message and exit.
--debug Option enables debug output.
--processes <processes>
Number of processes for minification. Default: 4
--repo-path <repo-path>
Path to the Git repository. Default: .
--image-file-extensions <file-extensions> [<file-extensions> ...]
Image file extensions to be checked. Default: .jpg .png .jpeg .gif .webp .avif
--text-file-extensions <file-extensions> [<file-extensions> ...]
Text file extensions to be checked. Default: .txt .md .rst .ini .cfg .json .xml .yml .yaml .py
--branch <branch> Branch to compare against the main branch. Default: main
--main-branch <main-branch>
Name of the main branch. Default: main
--ocr-url <ocr-url> URL for the OCR Service. Default: https://ocr.eu-de.otc.t-systems.com/v2/project-id/ocr/general-text
--regex-pattern <regex-pattern> [<regex-pattern> ...]
Regex pattern to check for unwanted characters. Default: (?![\u4e09\u767d\u76ee\u4e09\u8279\u53e3\u533a\u4e2a\u516b\u4e00\u4eba])[\u4e01-\u9fff]+
--confidence <confidence>
Confidence threshold for image recognition. Default: 0.97
Custom Regex Pattern
You can use a custom regex pattern to check for unwanted characters in the files. The default pattern excludes some Chinese characters that may cause false positives in OCR results while checking for all other Chinese characters.
Authentication
To use this tool, ensure that you specify an AUTH_TOKEN to access the OCR service. For details on obtaining a token, refer to the official T-Systems Documentation.
Metadata
Release files for hcdc 0.2.2
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 |
|---|---|---|---|---|
| hcdc-0.2.2.tar.gz | 16.1 MB | Without provenance | Details for hcdc-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hcdc-0.2.2-py3-none-any.whl | Python 3 | none | any | Details for hcdc-0.2.2-py3-none-any.whl |
Total release size: 16.2 MB
Release files / hcdc-0.2.2.tar.gz
| Download URL | hcdc-0.2.2.tar.gz |
|---|---|
| Size | 16.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9c6f1570217c31b2f8af74236179554bdd4eb74e0902578525466269baa2a2ae
|
|
BLAKE2b-256 checksum How to use checksums |
b575e9d59c8eaab52a5fbb6aaf9fd82bcc297293aeeaf6d7a0a249b6a2762f33
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.9
|
Release files / hcdc-0.2.2-py3-none-any.whl
| Download URL | hcdc-0.2.2-py3-none-any.whl |
|---|---|
| Size | 13.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0a1f38957c7c8062df95686fdb29f9128e4014f91b44c00609cbafdf5455f889
|
|
BLAKE2b-256 checksum How to use checksums |
107fe34d7907ef75631b302310b730c698a563ab8b1b6d74d84a73b9e2086c45
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.9
|
Security for hcdc 0.2.2
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.