Skip to content

Live Online Python Syntax Checking. The goal of this project is to enable online MOOCs to be able to embed live syntax checking and execution of python.

License

Notifications You must be signed in to change notification settings

kdiloveu/OnlinePythonLinterSyntaxChecker

 
 

Repository files navigation

PythonBuddy 🖊️ 🐍

Online Python 2.7 Programming with Live Pylint Syntax Checking!

###Usage

  1. Fetch from repo:
git clone https://github.com/ethanchewy/PythonBuddy.git
  1. Create virtualenv based on your own system:
mkvirtualenv --python=/usr/bin/python2.7 venv
  1. Activate vitrual environment:
source venv/bin/activate
  1. Pipe requirements to venv folder:
pip install -r requirements.txt
  1. Set FLASK_APP variable:
export FLASK_APP=app.py
  1. Run flask app:
flask run

###Customize

  1. Fork github repo

2) Edit app.py to change any linting features

###Current Features:

  • Live Syntax Checking
    • Uses Pylint as checker (only prints out errors and warnings)
    • Live Error Table with Additional Help Suggestions
  • Syntax Highlighting
  • Python 2.7 Complilation
  • Search Within Code

###Future Goals:

  • Make easily embeddable for MOOCs like edX and other education platform
  • Lower CPU usage

###FAQ: Why did you make this?
I wanted to create an open source live python syntax checker to help beginning python programmers jump into python programming courses on MOOCs like edX without setting up a complicated python IDE.

Has anyone created anything like this before?
There has never been a live syntax checker for python online. Similar projects that are not "live" are http://pep8online.com/ and http://antares.sip.ucm.es/cesar/pylint/

Has can I contribute?
You can 🌟 star my repo, fork my repo, submit a pull request, and/or open issues!

Where's the code for embedding it in MOOCs?
I'm currently working on this over here (for edx specifically): https://github.com/ethanchewy/pybuddy2.0

I want the code to actually compile and run in a certain way? If you want to actually execute the python look at my XBlock code: https://github.com/ethanchewy/pybuddy2.0 . Remember to sandbox the code with RestrictedPython or something.

###Credits: This was made by Ethan Chiu as a research project under the guidance of Wellesley College professor Eni Mustafaraj.

About

Live Online Python Syntax Checking. The goal of this project is to enable online MOOCs to be able to embed live syntax checking and execution of python.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 94.2%
  • JavaScript 4.4%
  • C 0.7%
  • CSS 0.6%
  • Shell 0.1%
  • HTML 0.0%