Pyfyre

Latest version: v0.6.7

Safety actively analyzes 623567 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 4

0.6.7alpha

Release Summary
This release focuses on enhancements and bug fixes.

- Add `value` property to `EventState`
- Make `RouteManager.change_route` public which allows you to change route without using a `RouterLink`
- PyFyre CLI: Ensure deletion of unwanted files
- Preserve the URL hash when changing routes
- Add `Element.is_void` method
- Bug fix: Remove `Element.html` closing tag on void elements such as `<br>` and `<img>`

---
For more details: [Comparing changes](https://github.com/pyfyre/pyfyre/compare/e9ebd2737fd0e923f4744a9f12efe9edd9a74d68...877338b410468a05cacb6f23ddb8364f2dce9b96)

0.6.6alpha

Release Summary
This release focuses on the routing of PyFyre. Several bug fixes and improvements have been made.

- The `RouteManager.get_node` now returns optional.
- You can now run PyFyre modules on a Python interpreter. Although this is useless because it's only just an empty implementation of Brython packages.
- You can now pass in an argument to a route builder by passing in a value to the `arg` argument of `RouterLink`.
py
RouterLink("/random", arg="A Random Title")

render({
"/": lambda: HomePage(),
"/about": lambda: AboutPage(),
"/contact": lambda: ContactPage(),
"/random": lambda title: RandomPage(title) The argument defaults to None.
})


---
For more details: [Comparing changes](https://github.com/pyfyre/pyfyre/compare/ae1e38aac00e148328bf7a8015a2580cf29a0834...e9ebd2737fd0e923f4744a9f12efe9edd9a74d68)

0.6.5alpha

Release Summary
- Users can now delete the `public` folder in their PyFyre projects.
- Added `port` and `hostname` arguments on `pyfyre run`.
- The type of `[Element].style` is now `Style` from `Optional[Style]`.
- Implemented `update` and `set` methods on the `Style`.
- Can now pass in multiple values in the `Text` class. All the values are concatenated.
- Implemented `EventState` and `MediaQuery` state dependencies.

**`MediaQuery` example usage:**
py
from pyfyre import render, MediaQuery
from pyfyre.nodes import Node, Widget, Element, Text

mq = MediaQuery("(max-width: 720px)")


class App(Widget):
def build(self) -> list[Node]:
if mq.matches:
return [Element("h1", lambda: [Text("Mobile view")])]

return [Element("h1", lambda: [Text("Desktop view")])]


render({"/": lambda: App(states=[mq])})


---
For more details: [Comparing changes](https://github.com/pyfyre/pyfyre/compare/2d490beaa6bb3db8eaa989ccb97e1fd230b17872...ae1e38aac00e148328bf7a8015a2580cf29a0834)

0.6.4alpha

Release Summary

- Several bug fixes
- Add more documentation and documentation environment

---
For more details: [Comparing changes](https://github.com/pyfyre/pyfyre/compare/8caccbb7068c0f61437020c17e78f5e53bedc87c...2d490beaa6bb3db8eaa989ccb97e1fd230b17872)

0.6.3alpha

Release Summary

- New PyFyre CLI command: `version`
- Several bug fixes

---
For more details: [Comparing changes](https://github.com/pyfyre/pyfyre/compare/81b678147ddd5940c77d80d6ef9acc7086ae4617...8caccbb7068c0f61437020c17e78f5e53bedc87c)

0.6.2alpha

Release Summary

Package Changes
- Use Flask wsgi app for livereload when running a PyFyre app
- `[ListBuilder].children_builder` -> `[ListBuilder].item_builder`

Codebase Changes
- Add [Mypy](https://mypy.readthedocs.io/en/stable/) and [Black](https://black.readthedocs.io/en/stable/)
- Implement [Google style Python docstrings](https://sphinxcontrib-napoleon.readthedocs.io/en/latest/example_google.html)
- Add [Sphinx](https://www.sphinx-doc.org/en/master/) generated documentation
- Create a [helper script](https://github.com/pyfyre/pyfyre/blob/main/release.py) before a release

---
For more details: [Comparing changes](https://github.com/pyfyre/pyfyre/compare/5351c2b028d9ffc23f84589a86ac7d243a848ae6...81b678147ddd5940c77d80d6ef9acc7086ae4617)

Page 1 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.