• Stars
    star
    130
  • Rank 277,575 (Top 6 %)
  • Language
    C++
  • License
    GNU General Publi...
  • Created almost 10 years ago
  • Updated almost 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

πŸš„πŸ expressPython - A small Python editor for learning and competitive programming.

contributions welcome Downloads Windows Build status Ubuntu Build Status Codacy Badge BCH compliance License: GPL v2 Say Thanks! OPEN open source software Gitter

A small Python 3 editor for learning and competitive programming.

Why expressPython?

I built expressPython to scratch an itch that I had. I wanted a tool that does following for me.

  • Runs easily in windows, portable, doesn't affect system.
  • I wanted a tool to test regexes, small scripts.
  • It should start fast and I don't need to create files to test things
  • Suitable to simulate HackerRank . (Has an input window and output window, works with stdin)
  • I wanted to learn C++/Qt and polish Python knowledge.
  • Compiled to 32bit will work on a 64bit machine. (Windows)
  • Type some text in to input section and process it using quick scripts.
  • Works offline.

Contributors

  • Bhathiya Perera (JaDogg) - Maintainer and original author
  • Mirza Zulfan (mirzazulfan) - Logo & Icon 😎
  • Harshit Verma (hv7214) - ANTLR Syntax Highlighting, Terminal, CI

GIF

User Guide

Installation

This is fairly simple to use.

  • Download a standalone version from the releases.
  • Scan the binary package for viruses if you want βœ”.
  • Windows: Extract it using 7-zip or a similar software and run expressPython.exe.
  • Linux: Install it using .deb package.

Editor

  • Tabs are replaced by 4 spaces.
  • Any \t (tab) character is highlighted in red.
  • There are basic auto-complete features. Use: ctrl + space
  • Content in the input can be read using input()
  • You can write to output using print().
  • There is terminal intergrated, one can access it by clicking on the top right button(currently it is available for Ubuntu and MacOs distros).
  • This is not a full IDE and is not planning to be.

Known Limitations

  • Lacks keyboard shortcuts(Coming soon).

Credits

Standing on the shoulders of the giants.

Compiling

  • This project uses Cmake to build.
  • There are two different scripts for windows and Linux/MacOs, which setup the project and followingly generates the binary.
    • build.cmd is for windows systems.
    • build.sh is for Linux and MacOs systems.

Dependencies

  • Python 3.8.x (32bit)
  • Qt 5.12.x (GPL Version, MinGW 32bit)
  • ANTLR4(ANother Tool for Language Recognition)

64Bit versions should also work. But it is not tested yet.

Easiest way to compile is to use QtCreator and to build the binary.

Environment Variables

  • PYTHON3_LOCATION - On windows set this to parent of python.exe of a 32bit Python 3.8.x installation.
  • PYTHON3_LIB_LOCATION and PYTHON3_INC_LOCATION should be set to lib and include paths.

Editor API

You can safely ignore this section if you are not interested in customizing/developing.

Documentation

# IDE's API
# ---------------------------
from express_api import get_input, set_input
from express_api import get_output, set_output
from express_api import get_code, set_code
from express_api import write_output, get_apppath
from express_api import set_search_regex, interrupt_requested
#
# get method's have no parameters and others have one
#
# get_input   - get input textbox's text
# set_input   - set input textbox's text
# get_output  - get output textbox's text
# set_output  - get output textbox's text
# get_code    - get code textbox's text
# set_code    - set code textbox's text
# write_output- append to output box
# get_apppath - get exe path
# interrupt_requested - returns 1 if we need to stop running

# API Help/Code Sample
# ---------------------------

# get text from input box
# parameters - none
txt = get_input()

# change output box's text
# parameters - string
set_output("")

# append to output box
# does not add a new line
# parameters - string
write_output("Hi You,\n")

# get_apppath() -> get exe path
print("expressPython.exe is at :", get_apppath())

Customising launch script

If you want to customize how your code is executed.

  • Copy ep_runner.py to _express_startup_.py near expressPython binary.
  • Edit _express_startup_.py as you see fit.

Appendix

Learning Python

One of the reasons for creating this was to teach python. You can checkout my Python 3 tutorial series at http://pandabunnytech.com

Getting Started Guide : here

Image

More Repositories

1

pydoro

πŸ… pydoro - Terminal Pomodoro Timer
Python
496
star
2

noisebox

πŸŽ΅πŸŽΆπŸ“¦ noisebox - Background noise generator for concentration in your terminal.
Python
36
star
3

sbx

πŸ“šπŸ“¦ StudyBox (SBX) - Terminal Flashcards & Library
Python
16
star
4

blw4

WASM4 native runtime ported to 32blit (32blit SDK)
C
6
star
5

WKilo

Port of kiloπŸ‹οΈ text editor to Windows πŸͺŸ
C
4
star
6

summarized_books

Summarized Books
3
star
7

KnowledgeBox

πŸ§ πŸ“¦ KnowledgeBox - Important summaries I've written
Python
2
star
8

FXPropertyClassBuilder

Generate Property Classes for JavaFX
Java
2
star
9

SimpleMatch

Simple Pattern Matcher for Java
Java
2
star
10

cmdStub

cmdStub for cmdWrapperZen (written in freebasic)
Visual Basic
1
star
11

SortingSimulator

Simple Sorting Algorithm Simulator in JavaScript
JavaScript
1
star
12

ExpressGenGen

ExpressGenGen an Express Code Generator Generator
C++
1
star
13

Jumb-classic

In 2010 I was going to build a compiler with coderdavid.
Assembly
1
star
14

Yaksha

Yaksha Programming Language (WIP)
C
1
star
15

SIMPLL

Simple Interactive Multiple Programming Language Learner
Visual Basic
1
star
16

propers

Java like properties for Python + more
Python
1
star
17

JaDoggMono

a custom font for me
1
star
18

zipebookreader

A util written in java (only for windows) for opening archieves and viewing files inside without extracting (warning not yet released and a hobby project) ****anyone interested in joining let me know ****
Java
1
star
19

__py_playground

__py_playground
HTML
1
star
20

go-learning

Silly go language code I produced while trying to learn go programming language
Go
1
star