Giter Site home page Giter Site logo

konoha's Introduction

Konoha

Visual scripting editor based on Python.

Prerequisites

  • Git 2.32 (or more recent)
  • Python 3.11.0 (or more recent)
  • Visual Studio 2022 (deployment only)
  • CMake (deployment only)
  • Ninja (deployment only)

Development

Recommended IDE: Visual Studio Code

To setup Development Environment, run the following commands:

# git clone this repository
cd konoha
# create venv
python3 -m venv .venv
# activate venv
source .venv/bin/activate
# for Windows Command Prompt, run the following command to activate venv
# .venv\Scripts\activate.bat
# for Windows Powershell, run the following command to activate venv
# .venv\Scripts\Activate.ps1
# for Winows Git Bash, run the following command to activate venv
# source .venv/Scripts/activate

# install packages
pip3 install -e ".[dev]"
# generate snake_case and true_property pyi for VSCode
pyside6-genpyi all --feature snake_case true_property
# deactivate venv
deactivate
# open current folder using VSCode
code .

After opening the folder, click Yes when VSCode ask you whether to install the recommended extensions.

The next step is to select the interpreter under .venv folder as the development interpreter. Simply press Ctrl + Shift + P, then enter Python: Select Interpreter command.

Finally, press F5. The application should be launched in debug mode.

To test the application, write a simple python script like this:

# I'm comment
print("Hello world!")

Now try to open this script with the konoha application.

Deployment

Currently only Windows is supported.

To deploy the application, simply press Ctrl + P in VSCode, then enter task Deploy(Release), if the task is performed successfully, the application will be deployed under: ${workspaceFolder}/deployment.

If you want to deploy the Debug version, debugpy will suspend the process while performing the Configure Debug Frozen. When you see the output log of debugpy, start the Attach Python debug configuration. The process will continue to run as soon as you attach to the process.

konoha's People

Contributors

tac213 avatar

Stargazers

Zyang avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.