Skip to main content

Pythonic Vue

Project description

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

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.2.1.tar.gz (265.9 kB view details)

Uploaded Source

Built Distribution

vuepy-0.2.1-py3-none-any.whl (275.4 kB view details)

Uploaded Python 3

File details

Details for the file vuepy-0.2.1.tar.gz.

File metadata

  • Download URL: vuepy-0.2.1.tar.gz
  • Upload date:
  • Size: 265.9 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for vuepy-0.2.1.tar.gz
Algorithm Hash digest
SHA256 ebbf73500a856791bf0afc9b536326b70f27e5ac3639b203940c4fbe7176d2b0
MD5 88f3bfc6ad92bd5f710809c5a28dac55
BLAKE2b-256 5a465c3a1ca820a7e18184c423a9f92889c18379caf84febac7baf85008cae9f

See more details on using hashes here.

File details

Details for the file vuepy-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: vuepy-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 275.4 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for vuepy-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5146a52c4745b3719184c4fc34c11c2ad8245ca5dbffaf7ccd3c107ff784da04
MD5 c2f8d3e0c15e84cca6795dfcbe0a9e47
BLAKE2b-256 d4e95fa03a8fe37d4bcd8840d58fb5ad810618476e0990577cfa63766d32f20b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page