use Vue.js with pure Python
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")
$ pip install vuepy
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 is available here.
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.
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
$ 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
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.
This project is licensed under the MIT License - see the LICENSE file for details
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size vuepy-0.2.0-py3-none-any.whl (275.3 kB)||File type Wheel||Python version py3||Upload date||Hashes View|
|Filename, size vuepy-0.2.0.tar.gz (265.9 kB)||File type Source||Python version None||Upload date||Hashes View|