Skip to main content

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, yarn, 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).

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 (yarn install + yarn 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 yarn install is daar niet nodig.

Vanaf een bestaande clone

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

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.27.0
File Size Uploaded Provenance Actions
pyoes-0.27.0.tar.gz 1.1 MB With provenance Details for pyoes-0.27.0.tar.gz

Built distribution (wheel)

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

Total release size: 1.5 MB

Release files / pyoes-0.27.0.tar.gz

Download URL pyoes-0.27.0.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
599a3cfb37f6b9c9965dd5d5892f9e4282886ffdd11ee3a2a3b7d7c17a08f769
BLAKE2b-256 checksum
How to use checksums
17f4bc19eb657845a010b2d1ccf46239310195f370146b0f5e13ca708802b6d4
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 13, 2026.

Transparency log

Release files / pyoes-0.27.0-py3-none-any.whl

Download URL pyoes-0.27.0-py3-none-any.whl
Size 414.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
941945e7fe6abaa52f294f52c188d42c1d6f876b84920f273f9fb0df185fbba2
BLAKE2b-256 checksum
How to use checksums
7734556a96080ce9f0585d12263129d81f7214ee97168a92e3ed9fba1034636a
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 13, 2026.

Transparency log

Security for pyoes 0.27.0

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.27.0.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 13, 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

0.27.0 This release

2 release files Full 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