Skip to main content

The modern frontend web framework for Python

Project description

🐝 BeePy

NPM Package PyPI Package Documentation

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

python -m beepy.dev --create

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:

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.9.8.tar.gz (89.0 kB view details)

Uploaded Source

Built Distribution

beepy_web-0.9.8-py3-none-any.whl (51.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: beepy_web-0.9.8.tar.gz
  • Upload date:
  • Size: 89.0 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.9.8.tar.gz
Algorithm Hash digest
SHA256 6d72bc14d516df22a4389dd7abdd95ec8fcaec3c8264dd5fa84732cb6d009102
MD5 84f2600521a5f7f19e3266fc73ed6074
BLAKE2b-256 d73fb7d3e31509c0ecfb60a9aefd8a4e605a3da71962ea5a0eee9eb4c2ed3fc3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: beepy_web-0.9.8-py3-none-any.whl
  • Upload date:
  • Size: 51.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.9.8-py3-none-any.whl
Algorithm Hash digest
SHA256 f56798a845850c4cde69e1818a4a825a057b8650dd0c4678c3703eb9796c02c5
MD5 1ef8ca65caccf25e9234e0019dac47d9
BLAKE2b-256 c6bed364dea3ba29d5c1a17b8417fd109ab31fadd96440eb9afddc66c5d6c834

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