ZeroIntensity
released this
26 May 19:22
·
201 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 docs
command - Added the
websocket
router (unfinished) - Added a startup message
- Added support for
daphne
andhypercorn
as servers - Added documentation for
view.env
and added environment variables to configuration - Added
patterns
loader toview init
- Added
build
to config - Added the
build_app
andbuild_steps
functions - Added the
to_response
function - Added preset values to the
view.toml
generated 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.py
andsrc/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.