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 server --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.10.0.tar.gz (92.0 kB view details)

Uploaded Source

Built Distribution

beepy_web-0.10.0-py3-none-any.whl (55.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: beepy_web-0.10.0.tar.gz
  • Upload date:
  • Size: 92.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.10.0.tar.gz
Algorithm Hash digest
SHA256 152b7df8601b63537ac55ad5e75a34b00a5a83f48b844462c8dff233fd2e9848
MD5 0541b09d27c2d7ebd5bf4eca14fa3b02
BLAKE2b-256 6f391d7fab80e0ac422a5e66012ec348c2500b3bf6d13bc58643c7881f75d7d5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: beepy_web-0.10.0-py3-none-any.whl
  • Upload date:
  • Size: 55.2 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.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 47ca2b7807f3ef2eebdfe4b454131fcca00cf904559a8153dab6a6f97fbc74c3
MD5 2bceaf0d252b3eb56e1b1b3657d34789
BLAKE2b-256 77278b3636a0cb9a9f3809fef8ec6942f2dddbd2976cd521f86f54872b65cb87

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