Hetman Pipeline Plugin I18n is a plugin for Hetman Pipeline that provides internationalization (i18n) support.
Features
- Comprehensive translations for all standard
ConditionandMatchhandlers. - Simple initialization to register all translations globally.
Installation
pip install "hetman-pipeline[i18n]"
Quick Start
Initialize the plugin at the start of your application to register the translations.
You must call set_base_locale before running the first handler to ensure the system correctly maps the initial translation state.
from pipeline_plugin_i18n import initialize_pipeline_plugin_i18n
# Register translations for standard handlers
initialize_pipeline_plugin_i18n()
# Set the base locale
PipelinePluginI18n.set_base_locale("en")
Context Management
The plugin uses contextvars to manage the locale state, making it thread-safe and safe for asynchronous applications (e.g., FastAPI, Falcon, Flask).
Setting the Locale
You can set the locale for the current context (e.g., per request).
from pipeline_plugin_i18n import PipelinePluginI18n
# Set to Polish
PipelinePluginI18n.set_locale("pl")
Getting the Locale
from pipeline_plugin_i18n import PipelinePluginI18n
current_locale = PipelinePluginI18n.get_locale()
print(current_locale) # Output: "pl"
Custom Translations
You can register your own translations for any Condition or Match handler.
from pipeline.handlers import Match
from pipeline.handlers.base_handler.resources.constants import HandlerMode
from pipeline_plugin_i18n import PipelinePluginI18n
PipelinePluginI18n.register_handler(
handler=Match.Text.Letters,
translations={
HandlerMode.ROOT: {
"en": Match.Text.Letters.ERROR_TEMPLATES[HandlerMode.ROOT],
"pl": "Musi zawierać tylko litery (np. Aaaaa).",
}
},
)
Supported Languages
- English (
en) - Polish (
pl)
Metadata
Release files for hetman-pipeline-plugin-i18n 1.0.4
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 |
|---|---|---|---|---|
| hetman_pipeline_plugin_i18n-1.0.4.tar.gz | 9.8 kB | With provenance | Details for hetman_pipeline_plugin_i18n-1.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hetman_pipeline_plugin_i18n-1.0.4-py3-none-any.whl | Python 3 | none | any | Details for hetman_pipeline_plugin_i18n-1.0.4-py3-none-any.whl |
Total release size: 20.7 kB
Release files / hetman_pipeline_plugin_i18n-1.0.4.tar.gz
| Download URL | hetman_pipeline_plugin_i18n-1.0.4.tar.gz |
|---|---|
| Size | 9.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3b02a25986275396425ae004ffb61d47187768026df6cce07383b32aebc4504f
|
|
BLAKE2b-256 checksum How to use checksums |
dada98d064de7de85af67057b5346aa38023b204e8c8d990f12ea615a9ef81f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 21, 2026.
Transparency logRelease files / hetman_pipeline_plugin_i18n-1.0.4-py3-none-any.whl
| Download URL | hetman_pipeline_plugin_i18n-1.0.4-py3-none-any.whl |
|---|---|
| Size | 11.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
af40f454b8540ed58a0494191c296d37cb7a42e7b80227a927c42c95cf0d3433
|
|
BLAKE2b-256 checksum How to use checksums |
1217ed4c21ae44502d9b3cd5867c585515b6a96041645e3de9375c54e35f51fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 21, 2026.
Transparency logSecurity for hetman-pipeline-plugin-i18n 1.0.4
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for hetman_pipeline_plugin_i18n-1.0.4.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 21, 2026.
Transparency logA 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.