Skip to main content

risclog.batou

CI Status

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.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for risclog.batou 3.20.3
File Size Uploaded Provenance Actions
risclog_batou-3.20.3.tar.gz 162.6 kB Without provenance Details for risclog_batou-3.20.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for risclog.batou 3.20.3
File Interpreter ABI Platform Actions
risclog_batou-3.20.3-py3-none-any.whl Python 3 none any Details for risclog_batou-3.20.3-py3-none-any.whl

Total release size: 334.5 kB

Release files / risclog_batou-3.20.3.tar.gz

Download URL risclog_batou-3.20.3.tar.gz
Size 162.6 kB
Tags Source
SHA-256 checksum
How to use checksums
fcadb2e3ec2b746766e6969c91665cc99b33665affcc83e29ed52cf75cea35ea
BLAKE2b-256 checksum
How to use checksums
6bcae3fc66b08c42e1740b90221485597ec75e3f0610a24e05c3084b071f460e
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.3-py3-none-any.whl

Download URL risclog_batou-3.20.3-py3-none-any.whl
Size 171.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d7662c2bbe054884eeb580f8ca93c5bcc066f88f3badabdddb78faee2a7b4035
BLAKE2b-256 checksum
How to use checksums
a8964fc502c198dbb1de678ed3540bcb52871f77dfe9c81d2d40d9e7cf492d2d
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.3

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.

Release history Release notifications | RSS feed

This release

3.20.3 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page