Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

pyoes: Pyramid OE style

Coverage Status Documentation Status PyPI version

Pyoes helps to share layout between different websites and applications of Onroerend Erfgoed (Flanders Heritage).

Lokale ontwikkelomgeving (mise)

Deze repo gebruikt mise om de project setup zo simpel mogelijk te maken.

Vereisten

Meer is er niet nodig: pyoes heeft geen service containers (geen databank, elasticsearch, redis of minio) en dus ook geen docker-compose.yml of mise run docker. Er zijn ook geen secrets: development.ini staat gewoon in de repo, dus er is geen gpg-key, geen wildcards-private.yaml en geen transform-stap (en dus ook geen encrypt-task).

Vanaf een verse clone

Drie commando's:

mise trust       # vertrouw deze config (afhankelijk van je settings)
mise install     # installeert alle tools (python, uv, node, pnpm, pre-commit)
mise run server  # setup (1e keer) + start de demo server

mise run server draait de eerste keer automatisch mise run setup (als er nog geen virtualenv of gecompileerde css is) en start daarna de server op http://local.onroerenderfgoed.be:6543 (die hostname moet in je /etc/hosts naar 127.0.0.1 wijzen).

De demo bevat de startpagina (/), typografie (/typo), de artikelpagina (/article) en voorbeelden van foutpagina's (/401, /403, /404, /500). De startpagina linkt naar alle voorbeelden. De foutpagina's zijn demo's en worden met HTTP-status 200 weergegeven. Alleen deze templates en hun gedeelde layouts, macro's en includes blijven in pyoes/templates; de overige demopagina's zijn verwijderd. Scaffolds worden niet meer meegeleverd. Maak voor nieuwe applicaties zelf een layout die pyoes/layout.jinja2 uitbreidt; zie de documentatie in docs/gebruik.rst.

mise run setup zet de volledige backend + frontend op: de virtualenv met de dependencies uit requirements-dev.txt, pyoes zelf editable geïnstalleerd, de pre-commit hooks, en de frontend in pyoes/static (pnpm install + pnpm run compile-css, wat pyoes/static/css/app.css genereert - die is git-ignored). npm-packages/pyoes wordt als file:-dependency mee geïnstalleerd; een aparte pnpm install is daar niet nodig. De lokale pnpm-workspace.yaml gebruikt nodeLinker: hoisted, zodat Sass ook dependencies van het styles-package via node_modules kan vinden.

Vanaf een bestaande clone

Bij de overstap van Yarn naar pnpm: importeer eerst de bestaande lockfile, verwijder de oude installatie en bouw de frontend opnieuw:

mise install
cd pyoes/static
pnpm import
rm -rf node_modules
pnpm install
pnpm run compile-css
cd ../..

Commit daarna pyoes/static/pnpm-lock.yaml en verwijder de oude pyoes/static/yarn.lock en de ongebruikte yarn.lock in de repo-root.

Is alles al opgezet, dan heb je enkel nog dit nodig:

mise run server  # start meteen de demo server

Je eventueel aangepaste development.ini blijft daarbij behouden: setup genereert die file niet, ze is gewoon gecommit.

mise activeren in je shell

echo 'eval "$(mise activate bash)"' >> ~/.bashrc   # ~/.zshrc voor zsh

Zo wordt de virtualenv automatisch geactiveerd zodra je in deze repo zit (geen source .venv/bin/activate meer nodig). Dezelfde virtualenv is ook actief binnen mise run en mise exec.

Overige commando's

  • mise run setup - expliciet de volledige backend + frontend setup draaien
  • mise run test - draait de testsuite (pytest)
  • mise run check-versions - controleert of de versies in pyproject.toml, npm-packages/pyoes/package.json en pyoes/static/package.json gelijk zijn (dezelfde check als in CI)
  • mise run pip-compile - hergenereert de requirements*.txt uit pyproject.toml
  • mise run build - bouwt de wheel + sdist (build:wheel / build:sdist voor één van beide)
  • mise run cleanup - verwijdert alles wat setup aanmaakt (.venv, node_modules, pyoes/static/css, dist)

mise tasks geeft altijd de volledige, actuele lijst.

Requirements updaten

De dependencies staan in pyproject.toml. Pas ze daar aan en draai daarna mise run pip-compile om requirements.txt (runtime), requirements-ci.txt en requirements-dev.txt (beide de dev extra) opnieuw te genereren met uv. pyoes gebruikt enkel publieke PyPI packages, dus hiervoor is geen VPN of interne index nodig.

uv behoudt bestaande pins en verhoogt enkel wat nodig is. Wil je echt alles naar de hoogste versies updaten, voeg dan --upgrade toe aan het uv-commando in scripts/pip_compile.sh.

Documentatie

More information about this library can be found in the docs folder. These can be build using Sphinx.

# activate your virtual env
pip install -r requirements-dev.txt
cd docs
make html
# You can also build a pdf, provided you have the correct latex toolchain installed.
make latexpdf

Metadata

Release files for pyoes 0.28.0a1

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

Source distribution (sdist)

Source distribution for pyoes 0.28.0a1
File Size Uploaded Provenance Actions
pyoes-0.28.0a1.tar.gz 781.1 kB With provenance Details for pyoes-0.28.0a1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyoes 0.28.0a1
File Interpreter ABI Platform Actions
pyoes-0.28.0a1-py3-none-any.whl Python 3 none any Details for pyoes-0.28.0a1-py3-none-any.whl

Total release size: 817.9 kB

Release files / pyoes-0.28.0a1.tar.gz

Download URL pyoes-0.28.0a1.tar.gz
Size 781.1 kB
Tags Source
SHA-256 checksum
How to use checksums
73bb2cd9b42ea387659301a702d279004af8edee0666d18bfd54fcabb41c2f27
BLAKE2b-256 checksum
How to use checksums
e6e98fa770c9d846df9d4e4e18afb2e5ca487540bb35809cc1c0d86e986d1634
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Nov 18, 2026.

Transparency log

Release files / pyoes-0.28.0a1-py3-none-any.whl

Download URL pyoes-0.28.0a1-py3-none-any.whl
Size 36.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0354c3c3e1d87ea84fbe6879ac9dfbe6e2cff490840fee73a41543c42b66e42b
BLAKE2b-256 checksum
How to use checksums
845d8da7a4fad22812d2bd80a8d46ec01464208de062a48ee9526c19611f61ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Nov 18, 2026.

Transparency log

Security for pyoes 0.28.0a1

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.

Select from 2 files

Attestation for pyoes-0.28.0a1.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 Nov 18, 2026.

Transparency log

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