Starfyre

Latest version: v0.21.0

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

Scan your dependencies

Page 5 of 5

0.5.0

Sample Usage

src/__init__.fyre
python
from .parent import parent
from .store import store

def mocked_request():
return "fetched on the server"


async def handle_on_click(e):
alert("click rendered on client")
if 1==1:
print("Hello world")

current_value = get_parent_signal()
set_parent_signal(current_value + 1)
a = await fetch('https://jsonplaceholder.typicode.com/todos/1')
print(await a.text())
print("handles on click")


<style>
body {
background-color: red;
}
</style>

<pyml>
<store>
<parent hello='world'>
<span onclick={handle_on_click}>
{[ mocked_request() for i in range(4)]}
</span>
</parent>
</store>
</pyml>


<script>
// this is the optional section
// for third party scripts and custom js
</script>



src/parent.fyre
python

import requests

def ssr_request():
text = "Hello"
if text != "":
return text + " from Server Side"
else:
return "No response"

<pyml>
<span>
<div>
{ssr_request()}
</div>
<b>
{use_parent_signal()}
</b>
<b>
{get_parent_signal()}
</b>
<div>
This won't be re-rendered
</div>
</span>
</pyml>

0.4.2

What's Changed
* Add Rust integration by sansyrox in https://github.com/sansyrox/starfyre/pull/7
* Update example by mklan in https://github.com/sansyrox/starfyre/pull/6
* Render and create component fix by sansyrox in https://github.com/sansyrox/starfyre/pull/12
* Makefile: init by Mikcl in https://github.com/sansyrox/starfyre/pull/13
* fix: load the last starfyre if we can by Mikcl in https://github.com/sansyrox/starfyre/pull/16
* Makefile: build starfyre by Mikcl in https://github.com/sansyrox/starfyre/pull/15
* ci: Install ems script by sansyrox in https://github.com/sansyrox/starfyre/pull/17
* fix: remove tool.maturin by Mikcl in https://github.com/sansyrox/starfyre/pull/18
* Tox configuration for python source code. by Mikcl in https://github.com/sansyrox/starfyre/pull/20
* remove package.json by Mikcl in https://github.com/sansyrox/starfyre/pull/21
* Ci/emscripten by sansyrox in https://github.com/sansyrox/starfyre/pull/19

New Contributors
* sansyrox made their first contribution in https://github.com/sansyrox/starfyre/pull/7
* mklan made their first contribution in https://github.com/sansyrox/starfyre/pull/6
* Mikcl made their first contribution in https://github.com/sansyrox/starfyre/pull/13

**Full Changelog**: https://github.com/sansyrox/starfyre/commits/v0.4.2

Page 5 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.