# @kor0p/beepy

> The frontend python web framework

Latest version **0.10.1** (published 2024-05-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install @kor0p/beepy
pnpm add @kor0p/beepy
yarn add @kor0p/beepy
bun add @kor0p/beepy
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.10.1 |
| Published | 2024-05-08 |
| First published | 2024-01-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 35.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | kor0p |
| Maintainers | kor0p |
| Keywords | python, webassembly |

## Links

- npm: https://www.npmjs.com/package/@kor0p/beepy
- npm.io page: https://npm.io/package/@kor0p/beepy

## Recent versions

- 0.10.1 (latest) — 2024-05-08
- 0.10.0 — 2024-05-07
- 0.9.10 — 2024-04-21
- 0.9.9 — 2024-04-20
- 0.9.8 — 2024-04-20
- 0.9.7 — 2024-04-20
- 0.9.6 — 2024-04-15
- 0.9.5 — 2024-04-14
- 0.9.4 — 2024-04-14
- 0.9.3 — 2024-04-11
- 0.9.2 — 2024-04-11
- 0.9.1 — 2024-04-11
- 0.9.0 — 2024-04-11
- 0.8.10 — 2024-02-11
- 0.8.9 — 2024-02-03
- … 8 more at https://npm.io/package/@kor0p/beepy/versions

## README

# 🐝 BeePy

[![NPM Package](https://img.shields.io/npm/v/@kor0p/beepy)](https://www.npmjs.com/package/@kor0p/beepy)
[![PyPI Package](https://img.shields.io/pypi/v/beepy-web.svg)](https://pypi.org/project/beepy-web/)
[![Documentation](https://cdn.jsdelivr.net/gh/Andre601/devins-badges@v3.x-mkdocs-material/assets/compact-minimal/built-with/mkdocs-material_vector.svg)](https://bee-py.readthedocs.io/en/latest/)

## The _frontend_ web framework for python
### Thanks for [Pyodide](https://pyodide.org/) - port of Python to [Emscripten](https://emscripten.org/), based on [WASM](https://webassembly.org/).
### Use Python in browser to build modern frontend via BeePy!

## Try it out! [CodeSandBox](https://codesandbox.io/s/beepy-two-synced-counters-k5sm9j) and [BeePy Sandbox](https://kor0p.github.io/BeePy-examples/sandbox)

## Join our community at [Telegram chat](https://t.me/bee_py/)
## [Documentation](https://kor0p.github.io/BeePy-examples/sandbox) | [PyPI](https://pypi.org/project/beepy-web/) | [NPM](https://www.npmjs.com/package/@kor0p/beepy)

## Local development:
### Install BeePy
### `pip install -U beepy-web[dev]`
### Then just start local server
### `beepy dev --init`
### 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):
```python
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
```html
<body>
    <div id="root">
        <button>
            <div>Count: 5</div>
        </button>
    </div>
</body>
```

## Examples:
- [List of examples (with Tabs)](https://beepy-web-ba63e5a12994.herokuapp.com/e/)
- [Admin panel](https://beepy-web-ba63e5a12994.herokuapp.com/e/admin)
- [Dynamic plot](https://beepy-web-ba63e5a12994.herokuapp.com/e/plot)
- [First try](https://beepy-web-ba63e5a12994.herokuapp.com/e/buttons)
- [Todo List](https://beepy-web-ba63e5a12994.herokuapp.com/e/todos)
- [Modal](https://beepy-web-ba63e5a12994.herokuapp.com/e/modal)
- [Context Menu](https://beepy-web-ba63e5a12994.herokuapp.com/e/context-menu)
- [Dynamic URL](https://beepy-web-ba63e5a12994.herokuapp.com/e/dynamic-url)
- [Timer](https://beepy-web-ba63e5a12994.herokuapp.com/e/timer)
- [Input's model](https://beepy-web-ba63e5a12994.herokuapp.com/e/text-sync)
- [Multiple apps on one page](https://beepy-web-ba63e5a12994.herokuapp.com/multiple-apps)
- [Just the other one example](https://beepy-web-ba63e5a12994.herokuapp.com/e/custom_url)
- [BeePy Sandbox](https://kor0p.github.io/BeePy-examples/sandbox)

---
_Source: https://npm.io/package/@kor0p/beepy · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
