Skip to main content

vue.py

Build Status PyPI License

use Vue.js with pure Python

vue.py provides Python bindings for Vue.js. It uses brython to run Python in the browser.

Here is a simple example of an vue.py component

from browser import alert
from vue import VueComponent

class HelloVuePy(VueComponent):
    greeting = "Hello vue.py"

    def greet(self, event):
        alert(self.greeting)

    template = """
    <button @click="greet">click me</button>
    """

HelloVuePy("#app")

Installation

$ pip install vuepy

Development Status

The goal is to provide a solution to write fully-featured Vue applications in pure Python.

To get an overview what currently is supported, have a look at the Documentation.

Have a look here to see whats planned!

See also the Limitations

Documentation

Documentation is available here.

Examples can be found here. These are vue.py versions of the Vue.js examples

Performance

Initial loading times of vue.py apps can be very long. Especially when loading a lot of python files. Still figuring out how to solve this.

Have not done any peformance tests, but havent noticed any issues with performance as soon as the app was fully loaded.

Development

Getting Started

Get the code

$ git clone https://github.com/stefanhoelzl/vue.py.git
$ cd vue.py

Install required python packages, the chromedriver for selenium and brython

$ make env.up

Run tests

$ make tests           # runs all tets
$ make tests.unit      # runs unit tests
$ make tests.selenium  # runs selenium tests
$ make tests.cli       # runs cli tests

Clean up your working directory.

$ make env.clean

Reset your development environment (clean up, reinstall packages and redownload needed files)

$ make env.down
$ make env.up

Publish a new release

$ make release

Workflow

Development happens on the master branch. This also means the latest documentation can be found here.

The release branch should always be even with the latest release. Changes to this branch also trigger a update of gh-pages. Therefor fixes to the documentation can be made on the release branch. So that the documentation is always valid for the latest release.

License

This project is licensed under the MIT License - see the LICENSE file for details

Metadata

Release files for vuepy 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vuepy 0.2.1
File Size Uploaded
vuepy-0.2.1.tar.gz 265.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for vuepy 0.2.1
File Interpreter ABI Platform
vuepy-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 541.4 kB

Release files / vuepy-0.2.1.tar.gz

Download URL vuepy-0.2.1.tar.gz
Size 265.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ebbf73500a856791bf0afc9b536326b70f27e5ac3639b203940c4fbe7176d2b0
BLAKE2b-256 checksum
How to use checksums
5a465c3a1ca820a7e18184c423a9f92889c18379caf84febac7baf85008cae9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.7

Release files / vuepy-0.2.1-py3-none-any.whl

Download URL vuepy-0.2.1-py3-none-any.whl
Size 275.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5146a52c4745b3719184c4fc34c11c2ad8245ca5dbffaf7ccd3c107ff784da04
BLAKE2b-256 checksum
How to use checksums
d4e95fa03a8fe37d4bcd8840d58fb5ad810618476e0990577cfa63766d32f20b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.7

Release history Release notifications | RSS feed

0.3.0

2 release files

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.1

2 release 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