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

Uploaded Source

Built Distribution

beepy_web-0.6.6-py3-none-any.whl (45.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: beepy_web-0.6.6.tar.gz
  • Upload date:
  • Size: 41.2 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.6.6.tar.gz
Algorithm Hash digest
SHA256 4160e5b8357cabeecfd4fe5f112f6312245e23f79d76badb3dbdf11dbc03f7bc
MD5 d36afc5dc2ee8f192ce3f9a3f4b4e63b
BLAKE2b-256 b59f0d1be5a777606d07dcc014e122b39d4e058b40f1c81902203e89cc837d46

See more details on using hashes here.

File details

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

File metadata

  • Download URL: beepy_web-0.6.6-py3-none-any.whl
  • Upload date:
  • Size: 45.0 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.6.6-py3-none-any.whl
Algorithm Hash digest
SHA256 ed68c49510642c2dddd96501671049103e2372da9974c8ca3d71c4f8ee872159
MD5 f4625060c8908fff6e9ca2230ca32d51
BLAKE2b-256 89c2dd847dc566bd276f129554393a11e8a4f077a94c50007499325cb7d45df5

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