0.10.1 • Published 14 days ago
@kor0p/beepy v0.10.1
🐝 BeePy
The frontend web framework for python
Thanks for Pyodide - port of Python to Emscripten, based on WASM.
Use Python in browser to build modern frontend via BeePy!
Try it out! CodeSandBox and BeePy Sandbox
Join our community at Telegram chat
Documentation | PyPI | NPM
Local development:
Install BeePy
pip install -U beepy-web[dev]
Then just start local server
beepy dev --init
And that's it!
Now, click on link in console to visit your server
and change code to see updates in browser in no time!
Code (custom_url.py from examples):
from beepy import Tag, mount, state, on
class IncrementButton(Tag, name='button'):
count = state(0)
@on
def click(self):
self.count += 1
def content(self):
return f'Count: {self.count}'
mount(IncrementButton(), '#root')
will render html as below, and will react on buttons click like native JS
<body>
<div id="root">
<button>
<div>Count: 5</div>
</button>
</div>
</body>
Examples:
0.10.1
14 days ago
10.0.0
15 days ago
10.0.1
15 days ago
0.10.0
15 days ago
0.9.10
1 month ago
0.9.8
1 month ago
0.9.7
1 month ago
0.9.9
1 month ago
0.9.6
1 month ago
0.9.4
1 month ago
0.9.5
1 month ago
0.9.3
1 month ago
0.9.0
1 month ago
0.9.2
1 month ago
0.9.1
1 month ago
0.8.10
3 months ago
0.8.9
4 months ago
0.8.8
4 months ago
0.8.7
4 months ago
0.8.5
4 months ago
0.8.6
4 months ago
0.8.4
4 months ago
0.8.3
4 months ago
0.8.2
5 months ago
0.8.1
5 months ago