Skip to main content

The modern frontend web framework for Python

Project description

🐝 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

Local development:

Firstly, install BeePy

pip install -U beepy-web[dev]

Then, add index.html and __init__.py to root of project

and start local server at same directory

python -m beepy.dev

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

beepy_web-0.7.1.tar.gz (40.7 kB view details)

Uploaded Source

Built Distribution

beepy_web-0.7.1-py3-none-any.whl (46.9 kB view details)

Uploaded Python 3

File details

Details for the file beepy_web-0.7.1.tar.gz.

File metadata

  • Download URL: beepy_web-0.7.1.tar.gz
  • Upload date:
  • Size: 40.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for beepy_web-0.7.1.tar.gz
Algorithm Hash digest
SHA256 e70276c4036b4b7bcccc8383b6b6f11ab16b1b7812e715407ce2e7859f10c94d
MD5 a9cbac3e9adbde3a2a6b20e600eb1900
BLAKE2b-256 e85b8bfbfe553a48f380ab231045ce838f06b399d26d05d00145ea8262df09c0

See more details on using hashes here.

File details

Details for the file beepy_web-0.7.1-py3-none-any.whl.

File metadata

  • Download URL: beepy_web-0.7.1-py3-none-any.whl
  • Upload date:
  • Size: 46.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for beepy_web-0.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 04c1dd9081c42f42335e6270a4e470320842a89c3b2c6dd26cb717d6a5d002a3
MD5 aaec0135c63521a2148b8cad5ccad3cc
BLAKE2b-256 73a2833ebd05f6a3e0e88b48da213d98df1cfd0e8f9c7817062938ec5640d3b8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page