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

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

Uploaded Source

Built Distribution

beepy_web-0.9.3-py3-none-any.whl (52.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: beepy_web-0.9.3.tar.gz
  • Upload date:
  • Size: 88.3 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.3.tar.gz
Algorithm Hash digest
SHA256 07b549a2fbb9b3ea3ef771875f9918f3269553a48c255806fb94ec3d9043a0ec
MD5 051b4e47feadac3930cbbdc3ef9da6d3
BLAKE2b-256 a2525438444996acdb2257e2cd7c5bc0aa6eb4e43bb1dc475ac28d9505773be6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: beepy_web-0.9.3-py3-none-any.whl
  • Upload date:
  • Size: 52.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.9.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2f3cad7670422fa385b6bd9de96878f225b210c9b49132f8fead8d5c10fa27b1
MD5 7a2d054c7aaba0ec1d270462f10b2798
BLAKE2b-256 12d517a6ab24143f965049cb7681a972e7e4fc31c2d6776dbf39821b3402d5ee

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