Skip to content

Repository files navigation

🐝 BeePy

NPM PackagePyPI PackageDocumentation

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

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):

frombeepyimportTag, mount, state, onclassIncrementButton(Tag, name='button'):
count=state(0)
@ondefclick(self):
self.count+=1defcontent(self):
returnf'Count: {self.count}'mount(IncrementButton(), '#root')

will render html as below, and will react on buttons click like native JS

<body><divid="root"><button><div>Count: 5</div></button></div></body>

Examples:

Releases

Packages

Used by

Contributors

Languages