Skip to main content

The modern frontend web framework for Python

Project description

🐝 BeePy

NPM 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:

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):
        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.8.9.tar.gz (87.5 kB view details)

Uploaded Source

Built Distribution

beepy_web-0.8.9-py3-none-any.whl (50.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: beepy_web-0.8.9.tar.gz
  • Upload date:
  • Size: 87.5 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.8.9.tar.gz
Algorithm Hash digest
SHA256 2fc8671b7e10362a7efdef7c142063563d0e4cc8c34ccdfa202c9365d4ab18f9
MD5 f2e63443ed3061072a3a2af4ab3ab28f
BLAKE2b-256 77bc0f7b45eebff7278aa0f593260ade66480858656abf5f666a7027933f9bde

See more details on using hashes here.

File details

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

File metadata

  • Download URL: beepy_web-0.8.9-py3-none-any.whl
  • Upload date:
  • Size: 50.4 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.8.9-py3-none-any.whl
Algorithm Hash digest
SHA256 80fdcc4e3041c39e666debd9d2c67a52b9f0dfe0d3de9874dd1808eb349e2c78
MD5 0c94e7cebd22f4204c34dcdc682e8bbf
BLAKE2b-256 9ab782e939845cedc3b7e61b694bc1b5028b3f3b137e8da6c068c099a626423c

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