Skip to main content

PuePy - PyScript Frontend Framework

➡️ Project Website 📝 Project Documentation

PuePy is a lightweight web framework that uses WebAssembly via PyScript to put Python right in your browser with all the modern conveniences of a web framework, but none of the headaches of Webpack, NPM or even JavaScript.

  • Reactive data binding with component-based architecture
  • Single Page App (SPA) router included
  • No build layer: direct execution like other Python projects
  • Choice of full Pyodide or Micropython

🐒 Try a demo app

See ExpenseLemur.com and the Expense Lemur Github Repo for a demonstration of what PuePy is capable of.

🧑‍💻 See some code

from puepy import Page, Application, t

app = Application()


@app.page()
class Hello(Page):
    def initial(self):
        return dict(name="")

    def populate(self):
        with t.div(classes=["container", "mx-auto", "p-4"]):
            t.h1("Welcome to PyScript", classes=["text-xl", "pb-4"])
            if self.state["name"]:
                t.p(f"Hello there, {self.state['name']}")
            else:
                t.p("Why don't you tell me your name?")
            t.input(placeholder="Enter your name", bind="name")
            t.button("Continue", classes="btn btn-lg", on_click=self.on_button_click)

    def on_button_click(self, event):
        print("Button clicked")  # This logs to console


app.mount("#app")

Learn

License

PuePy is licensed under the Apache 2 license, for your coding convenience.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

puepy-0.6.2.tar.gz (26.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

puepy-0.6.2-py3-none-any.whl (28.8 kB view details)

Uploaded Python 3

File details

Details for the file puepy-0.6.2.tar.gz.

File metadata

  • Download URL: puepy-0.6.2.tar.gz
  • Upload date:
  • Size: 26.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for puepy-0.6.2.tar.gz
Algorithm Hash digest
SHA256 b8f315f6b4d2c8ae7b2e23afcf4518d34209664edb8349289aa839f1b8ecf94c
MD5 8260fbc4f4586da23fa1e98e630678ca
BLAKE2b-256 84ebeb12e45aba176be61dac91e546d511bb02e290fde5433613ba050389f597

See more details on using hashes here.

Provenance

The following attestation bundles were made for puepy-0.6.2.tar.gz:

Publisher: python-publish.yml on kkinder/puepy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file puepy-0.6.2-py3-none-any.whl.

File metadata

  • Download URL: puepy-0.6.2-py3-none-any.whl
  • Upload date:
  • Size: 28.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for puepy-0.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3aca2b9409928a94b78e54767955e3991f3f214d321a573f189e4746ffae70d6
MD5 60e77d1b96da0c9dfc54255d57052294
BLAKE2b-256 2ba212fc7787d6df8ab09a41ea784db0b724440e646e823641fa6315cb4c4128

See more details on using hashes here.

Provenance

The following attestation bundles were made for puepy-0.6.2-py3-none-any.whl:

Publisher: python-publish.yml on kkinder/puepy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.6.5

2 files

This release

0.6.2 This release

2 files

0.5.0

2 files

0.4.6

2 files

0.4.5

2 files

0.4.1

2 files

0.4.0

2 files

0.3.7

2 files

0.3.6

2 files

0.3.5

2 files

0.3.4

2 files

0.3.3

2 files

0.3.2

2 files

0.3.1

2 files

0.3.0

2 files

0.2.1

2 files

0.2.0

2 files

0.1.2

2 files

0.1.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page