·
204 commits
to master
since this release
1.0.0 Alpha 10
Quickstart
This update suggests pipx as the installation tool! Install it through pipx with:
$ pipx install view.py
Or, if you want to do it the old way:
$ pip install -U view.py
What's new?
- Added the
view docscommand - Added the
websocketrouter (unfinished) - Added a startup message
- Added support for
daphneandhypercornas servers - Added documentation for
view.envand added environment variables to configuration - Added
patternsloader toview init - Added
buildto config - Added the
build_appandbuild_stepsfunctions - Added the
to_responsefunction - Added preset values to the
view.tomlgenerated byview init - Added prettier input prompts to
view init - Added
HTML.from_file
Bug Fixes
- Fixed fancy logging not exiting after a
KeyboardInterrupt
Other Changes
- Reworked internal logging API and changed default logger format
- Removed dead file
src/view/nodes.pyandsrc/view/compiler.py Route.__call__is now used internally overRoute.func- Made hijack optional in fancy mode
- Updated internal C API structure
- Improved type checking on functions decorated with a router function
- Breaking Change: Middleware functions must now take
call_next
Docs Change
This update switches over to mkdocs-material for the docs, but it is planned to use the custom theme again once it's cleaned up a bit.