Python web framework JustPy – interactive websites without JavaScript

JustPy is a new Python web framework that requires no front-end programming and is meant to be an alternative to JavaScript for creating interactive ...
Python web framework JustPy – interactive websites without JavaScript
Pythonic web development Python web framework JustPy – interactive websites without JavaScript February 14, 2020 Python © Shutterstock / Wallpaper photographer

JustPy is a new Python web framework that requires no front-end programming and is meant to be an alternative to JavaScript for creating interactive websites. The project is still in its early stages of development, yet offers an extensive documentation and tutorials, and comes with support for pandas, Matplotlib and more.

The very first public release of the high-level Python web framework JustPy . JustPy is object-oriented, component-based, and does not distinguish between front-end and back-end programming.

As the framework’s developer Eliezer Mintz , “All programming is done on the back-end allowing a simpler, more productive, and more Pythonic web development experience.” He further hopes that “JustPy will enable teaching web development in introductory Python courses by reducing the complexity of web development.”

So, let’s see how to use JustPy and how it integrates with other Python tools.

JustPy requires Python 3.6 or higher, and it is recommended to run the tutorial programs in a virtual environment so as not to affect the system-wide Python interpreter.

 shows how to install JustPy and its dependencies, after creating a directory and creating and activating the virtual environment jp:

On Windows, use jp\Scripts\activate instead of source jp/bin/activate to active the virtual environment.

Then, in the jptutorial directory, you can create the file test.py (another file name may be chosen instead) that contains the following code:

Now, run the program by entering the command $ python3 test.py and go to or in your browser – and you should see “Hello!”. When you click on it multiple times, the number of clicks should be displayed.

In JustPy, visualizations with the Python library Matplotlib and the JavaScript charting library Highcharts are supported. Additionally, JustPy has a pandas extension on board for creating interactive charts and grids.

For more details, see the , the , or follow JustPy .

Be the First to Comment!

You must be to post a comment.

You must be to post a comment.



source https://jaxenter.com/python-web-framework-justpy-168239.html

Post a Comment

0 Comments