Python-based Forgejo renderers that are compiled into single-file executables, which run in a Forgejo Alpine Linux container.
  • Python 80%
  • Makefile 20%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Michael Hanke c3a0d8c2db
Robustify behavior, render error on "mismatch"
A mistmatch can occur, when a `.nii` file is actually something other
than a NIfTI1 file. That could be, for example, a git-annex pointer file
(no content present).
2024-09-04 13:03:43 +02:00
dcm DICOM header renderer 2024-09-02 11:17:34 +02:00
nii Robustify behavior, render error on "mismatch" 2024-09-04 13:03:43 +02:00
.gitignore First attempt at a renderer 2024-09-02 08:59:41 +02:00
Makefile DICOM header renderer 2024-09-02 11:17:34 +02:00
README.md More helpful README 2024-09-02 11:21:15 +02:00

NiBabel-based renderer for Forgejo

Available renderers

DICOM (dcm)

[markup.dicom]
ENABLED = true
FILE_EXTENSIONS = .dcm
RENDER_COMMAND = "/var/lib/gitea/custom/scripts/render_dcm"
IS_INPUT_FILE = true

NIfTI1 (nii)

[markup.nifti]
ENABLED = true
FILE_EXTENSIONS = .nii,.nii.gz
RENDER_COMMAND = "/var/lib/gitea/custom/scripts/render_nii"

Build a self-contained executable

Also see the Makefile.

Inside the source directory of a renderer execute:

podman run \
  --rm -v "${PWD}:/src" \
  hub.datalad.org/forgejo/pyinstaller:latest \
    --noconfirm --onefile --clean \
    render_nii.py