Skip to content

1.0.0 Alpha 10

Latest
Compare
Choose a tag to compare
@ZeroIntensity ZeroIntensity released this 26 May 19:22
· 201 commits to master since this release
d3b2d3b

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 and hypercorn as servers
  • Added documentation for view.env and added environment variables to configuration
  • Added patterns loader to view init
  • Added build to config
  • Added the build_app and build_steps functions
  • Added the to_response function
  • Added preset values to the view.toml generated by view 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 and src/view/compiler.py
  • Route.__call__ is now used internally over Route.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.