Pyfyre

Latest version: v0.6.9

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

Scan your dependencies

Page 1 of 4

0.6.9alpha

This release fixes the installation bug with PyFyre due to the bugs on the `livereload` library.

What's Changed
* unofficial update of livereload until official get updated by nacho00112 in https://github.com/pyfyre/pyfyre/pull/37 for a temporary fix
* official livereload library bugs has been fixed

New Contributors
* nacho00112 made their first contribution in https://github.com/pyfyre/pyfyre/pull/37 🎉

**Full Changelog**: https://github.com/pyfyre/pyfyre/compare/v0.6.7-alpha...v0.6.9-alpha

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)

Page 1 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.