PDA

View Full Version : Using pip for python package management in Lianja 5



barrymavin
2019-09-09, 08:49
Lianja 5 supports Python 3.7.

"pip" is the standard way to install python packages.

There are many packages available see link below:
https://pypi.org

Lianja has full support for Python 3.7 as a first class scripting language for desktop apps. Python can also be used for server side dynamic page generation using ".pysp" files.

As a fully supported scripting language you can use the Lianja Framework with Python.
https://www.lianja.com/doc/index.php/Developing_Lianja_Custom_Sections_in_Python

If you have any previous Visual FoxPro knowledge you will recognize the UI framework classes as they are a super set of those in Visual FoxPro 9.
https://www.lianja.com/doc/index.php/Category:Framework_Classes

With an impressive amount of extensions and enhancements to what was available in Visual FoxPro 9 and full support for layout management the Lianja Framework can be used with Lianja/VFP, Python, JavaScript and/or PHP.

You can install python packages that will enable you to build modern apps with Artificial Intelligence and Machine Learning built in.

There are two ways you can add python packages so that they can be used in your Apps.

- Type pip commands and python commands in the python console

- Open up a terminal/command window and run pip and python commands interactively

On Windows:

c:\lianja\bin\pip
c:\lianja\bin\python

On Linux:

/opt/lianja/bin/pip
/opt/lianja/bin/python

In both cases the python packages will be installed and will be accessible from both development and runtime view.

You then only have to use the python import statement to use them in your apps.

hmischel@diligentsystems.com
2019-09-09, 20:44
Beautiful