Skip to main content

Pythonic Vue

Project description

Build Status PyPI License

use Vue.js with pure Python provides Python bindings for Vue.js. It uses brython to run Python in the browser.

Here is a simple example of an component

from browser import alert
from vue import VueComponent

class HelloVuePy(VueComponent):
    greeting = "Hello"

    def greet(self, event):

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



$ 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 for the last release is available here.

Documentation fo the current master branch can be found here.

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


Initial loading times of 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.


Getting Started

Open in

Get the code

$ git clone
$ cd

Optionally you can create a venv

$ python -m venv venv
$ source venv/bin/activate

Install required python packages, the chromedriver for selenium and brython

$ make env.up

Format the code

$ make format

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
$ make tests TEST=cli/ # run explicit test

Run an example

$ make run APP=examples/tree_view  # makes example available on port 5000

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            # bumps minor version number
$ make release MODE=major # bumps major version number
$ make release MODE=patch # bumps patch number




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

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

vuepy-0.3.0.tar.gz (266.7 kB view hashes)

Uploaded source

Built Distribution

vuepy-0.3.0-py3-none-any.whl (275.7 kB view hashes)

Uploaded py3

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