yafowil.bootstrap
bootstrap styles integration for for YAFOWIL - Yet Another Form Widget Library.
This package provides themes for Bootstrap 3, 4 and 5.
In order to select one of the bootstrap versions, configure_factory must be called with the desired theme name:
from yafowil.bootstrap import configure_factory
# bootstap3, bootstrap4, bootstrap5
configure_factory('bootstrap5')
Included Bootstrap distributions:
Bootstrap 3.4.1
Bootstrap 4.6.0
Bootstrap 5.1.0
yafowil.bootstrap 2.0 is a transitional version. in 3.0 the bootstrap distributions will be removed as resource delivery is planned to be changed to webresource.
Detailed Documentation
If you’re interested to dig deeper: The detailed YAFOWIL documentation is available. Read it and learn how to create your example application with YAFOWIL forms in 15 minutes.
Source Code
The sources are in a GIT DVCS with its main branches at github.
We’d be happy to see many forks and pull-requests to make YAFOWIL even better.
Contributors
Robert Niederrreiter
Jens Klein
Johannes Raggam
Peter Holzer
Changes
2.0.1 (2026-10-31)
Add lxml to the test extra, the tests use yafowil.tests.fxml. [rnix]
Fix the bootstrap 4 array macro using the bootstrap 3 grid class col-sm-offset-2 for help and error, it is offset-sm-2 in bootstrap 4. [rnix]
Remove settings without effect: the bootstrap 5 file.class default overwritten later in configure_factory and the button.class props of the bootstrap 5 button macro, which renders a submit blueprint. [rnix]
Modernise the code ruff flags as outdated: .format() over f-strings. Behaviour unchanged. super(Class, self) is kept, see cone.app. [rnix]
Sort the imports with ruff (one per line, from imports first, no sections) and format the code with ruff format (90 characters per line, single quotes). [rnix]
Add qa.ruff domain to Makefile and pin the ruff configuration in pyproject.toml, make check runs ruff check. [rnix]
2.0.0 (2026-02-03)
Refactor package layout to use pyproject.toml and implicit namespace packages. [rnix]
Add Makefile. [lenadax]
Configure tests to run with pytest. [lenadax]
2.0.0a2 (2024-04-30)
Update BS4 resources to latest 4.6.2 [petschki]
Update BS5 resources to latest 5.3.3 [petschki]
Fix CSS class for <select>. [petschki]
2.0.0a1 (2023-05-15)
Factory configuration and macro registration is no longer done automatically due to the multi-theme feature. It must be configured in your code using yafowil.bootstrap. In order to do so do from yafowil.bootstrap import configure_factory. Next call it with the name of the desired theme configure_factory('bootstrap3'). [jensens]
Add support for Bootstrap 4 and 5 using theme bootstrap[4|5]. The Bootstrap 3 theme is still available as bootstrap3. Latter provides a legacy fallback as bootstrap which will be removed in future versions. [jensens, agitator]
1.3.3 (2025-10-28)
Pin upper versions of dependencies. [rnix]
1.3.2 (2022-12-05)
Release wheel. [rnix]
Remove empty doctest. [rnix]
1.3.1 (2017-11-13)
Use bs_field_class callback for field.class property when registering array macro. [rnix]
1.3 (2017-03-01)
Use yafowil.utils.entry_point decorator. [rnix]
Cleanup macro registration. [rnix]
1.2 (2015-01-23)
Use configure entry point for theme configuration. [rnix]
Rename resource group bootstrap to bootstrap.dependencies. [rnix]
Remove bootstrap macros for yafowil and set factory defaults for common widgets where appropriate. [rnix]
Update to bootstrap 3.2. [rnix]
1.1
Register the bootstrap.js javascript too. [thet]
1.0
make it work [rnix, jensens, thet, et al.]
License
Copyright (c) 2012-2021, BlueDynamics Alliance, Austria, Germany, Switzerland Copyright (c) 2021-2025, Yafowil Contributors All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Metadata
Release files for yafowil.bootstrap 2.0.1
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 |
|---|---|---|---|---|
| yafowil_bootstrap-2.0.1.tar.gz | 2.9 MB | Without provenance | Details for yafowil_bootstrap-2.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| yafowil_bootstrap-2.0.1-py3-none-any.whl | Python 3 | none | any | Details for yafowil_bootstrap-2.0.1-py3-none-any.whl |
Total release size: 5.9 MB
Release files / yafowil_bootstrap-2.0.1.tar.gz
| Download URL | yafowil_bootstrap-2.0.1.tar.gz |
|---|---|
| Size | 2.9 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
71b421107812c20d00759e32b41cc73031ecd1872e9de528a0dd1bfa46da52bf
|
|
BLAKE2b-256 checksum How to use checksums |
060c954abca53b8b2bcedb7e74f9b5c5e76424a4fe7fc712f69e853cd11dc9a0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.2
|
Release files / yafowil_bootstrap-2.0.1-py3-none-any.whl
| Download URL | yafowil_bootstrap-2.0.1-py3-none-any.whl |
|---|---|
| Size | 3.0 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1d3f301b5295a60b9dd2fd1a319330879aa1fe4023de4c479f040cd84b0e030b
|
|
BLAKE2b-256 checksum How to use checksums |
b70232102d39f205393ee5e7a6de3519547dbee0e9979291bc66fd6085f47950
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.2
|
Security for yafowil.bootstrap 2.0.1
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.