risclog.batou
batou extensions used by risclog
Features
Frontend release versions
GithubReleaseDownload("latest-testing", ...) selects the highest published numeric v...-TESTING tag during deployment, after its GitHub authentication files have been installed. Releases are queried from risclog-solution/<package> with pagination; drafts are excluded and published prereleases are included. Tags must match in full and versions are compared as integer tuples, not strings. version remains the configured selector; resolved_version exposes the selected tag after the download update. Fixed pins are returned unchanged and do not require a release lookup.
For other testing tag formats, set testing_tag_pattern. The regular expression must have exactly one capturing group containing a dotted numeric version; use non-capturing groups for other grouping. For example:
GithubReleaseDownload(
"latest-testing",
package="risclog.ruv-travel-insurance.client",
file="client.zip",
testing_tag_pattern=r"v([0-9]+(?:\.[0-9]+)*)-RUV-TESTING",
)
The default pattern remains v([0-9]+(?:\.[0-9]+)*)-TESTING. Invalid patterns, invalid captured versions, missing matching releases and API failures are reported as errors.
For multiple archives, pass release=first_download to subsequent GithubReleaseDownload instances with the same package, selector and testing_tag_pattern. Add the first download before the others so that all archives use one selected release.
Ordinary batou File templates render during configuration, before aliases have been resolved. Use GithubReleaseContent after the download and extraction to render release-dependent configuration during deployment:
from risclog.batou.github import (
GithubReleaseContent,
GithubReleaseDownload,
)
self.frontend_release = GithubReleaseDownload(
self.frontend_version,
package="risclog.frontend",
file="claimx.zip",
)
self += self.frontend_release
# Add archive extraction here, before rendering its configuration.
self += GithubReleaseContent(
"frontend/config.js",
release=self.frontend_release,
source="config.js",
template_context=self,
)
In config.js, use {{args.release.resolved_version}} for appVersion. The usual component template context and other template_args remain available. Like batou Content, this helper manages file contents only; the target directory must already exist. An unresolved alias fails explicitly during deployment rather than writing latest-testing. Prediction reports a pending change without looking up an unresolved alias or writing the config.
Tests
Run tests:
$ ./pytest
Credits
This package was created with Cookiecutter and the risclog-solution/risclog-cookiecutter-pypackage project template.
This package uses AppEnv for running tests inside this package.
Metadata
Release files for risclog.batou 3.20.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 |
|---|---|---|---|---|
| risclog_batou-3.20.4.tar.gz | 162.8 kB | Without provenance | Details for risclog_batou-3.20.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| risclog_batou-3.20.4-py3-none-any.whl | Python 3 | none | any | Details for risclog_batou-3.20.4-py3-none-any.whl |
Total release size: 335.0 kB
Release files / risclog_batou-3.20.4.tar.gz
| Download URL | risclog_batou-3.20.4.tar.gz |
|---|---|
| Size | 162.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
67f853c0c12b79b1dc313b2b50c969fd7bceaaf86aa162e4484a762542d7c7cc
|
|
BLAKE2b-256 checksum How to use checksums |
37a7d361678e240307cd41e09e879b212c2662d4a49efd8ce03effcc227dc425
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.14
|
Release files / risclog_batou-3.20.4-py3-none-any.whl
| Download URL | risclog_batou-3.20.4-py3-none-any.whl |
|---|---|
| Size | 172.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c8c98dc25db34e5a7c22f34c151a9f8dc37d0a5db6da54f697ada1885527a4ee
|
|
BLAKE2b-256 checksum How to use checksums |
6c5b18ae8b068f8e4c38f5085438179c2432de80f32b8cbab1a6d37ac86afbfd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.14
|
Security for risclog.batou 3.20.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.
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.