/plynth-dev

Plynth is a Python/HTML/CSS GUI Framework

Primary LanguageJavaScript

plynth-dev

https://www.plynth.net

Plynth is a Python/HTML/CSS GUI Framework.

Currently this repository contains the python codes for the developtment kit and examples which you can use as a reference.


How to start development using this repository

Prerequisites

You need to install python and pipenv on your system first in order to develop with the development kit.

  • Windows
  • Mac
    • Installing pipenv by Homebrew is recommended.
  • Linux

Check commands

$ python3 -V # 3.7.x or 3.6.x
 or
$ python -V # 3.7.x or 3.6.x
# Mac and Linux only
$ pipenv --version # pipenv, version 2018.11.26

Setup

$ git clone https://github.com/rokist/plynth-dev.git
$ cd plynth-dev
$ python3 setup.py -p 3.7.4 # use -l to show available python versions

Initialization

  • Mac or Linux
    • sudo cp pdk /usr/local/bin/
    • sudo chmod 755 /usr/local/bin/pdk
$ pdk init

Create an application

$ pdk -p hello new

Run the application

$ pdk -p hello run

Edit the application with your favorite editor

$ vi hello/main.py

Installing a python package

$ pdk i requests

Release

$ pdk -p hello release

Start from an example

  • Windows
    • Copy __utils/exmaples/xxxx to the top folder of pdk using Explorer.
  • Linux and Mac
    • cp -R __utils/examples/react_example ./
    • pdk -p react_example run

For more information

See the instruction at the official document.