All Projects → sujeetkv → flaskcode

sujeetkv / flaskcode

Licence: MIT license
A web based code editor on python flask framework.

Programming Languages

javascript
184084 projects - #8 most used programming language
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to flaskcode

Syntaxmeets
Syntaxmeets. Create rooms 🏠 Call your friends 👬🏼 Sip Chai, ☕ Chat, Create, and Code👨‍💻. A coding platform to code simultaneously 🚀 with your friends and design your algorithms on SyntaxPad.💫✨
Stars: ✭ 110 (+155.81%)
Mutual labels:  code, code-editor
KodeEditor
A simple code editor with syntax highlighting and pinch to zoom
Stars: ✭ 60 (+39.53%)
Mutual labels:  code, code-editor
code-run
一个代码在线编辑预览工具,类似codepen、jsbin、jsfiddle等。
Stars: ✭ 325 (+655.81%)
Mutual labels:  code, code-editor
ax-editor
Ax is a code editor with syntax highlighting that runs in your terminal written completely in Swift.
Stars: ✭ 42 (-2.33%)
Mutual labels:  code, code-editor
Pervane
Plain text file based note taking and knowledge base building tool, markdown editor, simple browser IDE.
Stars: ✭ 159 (+269.77%)
Mutual labels:  code, code-editor
Hackide
hackIDE is an online code editor, compiler and interpreter based on Django, powered by HackerEarth API! Go, hack it!
Stars: ✭ 242 (+462.79%)
Mutual labels:  code, code-editor
dockside
Dockside is a tool for provisioning lightweight access-controlled IDEs, staging environments and sandboxes - aka 'devtainers' - on local machine, on-premises raw metal or VM, or in the cloud
Stars: ✭ 205 (+376.74%)
Mutual labels:  web-ide, code-editor
CodeWars
Daily Coding Exercises to sharpen problem solving skills
Stars: ✭ 67 (+55.81%)
Mutual labels:  code
php-tester
Run your PHP scribbles
Stars: ✭ 17 (-60.47%)
Mutual labels:  code
gogen
Command-line tool to generate GO applications and libraries
Stars: ✭ 17 (-60.47%)
Mutual labels:  code
gintonic
A declarative transformation language for GraphQL 🍸
Stars: ✭ 27 (-37.21%)
Mutual labels:  code
sora-editor
A cool code editor library on Android with syntax-highlighting and auto-completion. (aka CodeEditor)
Stars: ✭ 580 (+1248.84%)
Mutual labels:  code-editor
codes2pdf
Auto-generate a PDF notebook from your source codes (useful for ACM-ICPC)
Stars: ✭ 149 (+246.51%)
Mutual labels:  code
reveal-code-focus
A Reveal.js plugin that allows focusing on specific lines of code blocks.
Stars: ✭ 108 (+151.16%)
Mutual labels:  code
Containerization-Automation
Study and Use of Containers and Automation Tools
Stars: ✭ 45 (+4.65%)
Mutual labels:  code
react-textarea-code-editor
A simple code editor with syntax highlighting.
Stars: ✭ 247 (+474.42%)
Mutual labels:  code-editor
medium-code
A place to store my jupyter notebooks for my medium articles
Stars: ✭ 27 (-37.21%)
Mutual labels:  code
wp-googlecodeprettify
一个基于 Google Code Prettify 实现的WordPress代码高亮插件,在TinyMCE编辑器中提供了一个插入代码的按钮。在文本编辑器中,加入了pre-js,pre-css,pre-html 3个快捷按钮;
Stars: ✭ 60 (+39.53%)
Mutual labels:  code
awesome.gl
棒棒哒攻略:Developer's Technical Documents, API References, Code Examples, Quick Starts, Programming minutebooks, and Tutorials. https://awesome.gl
Stars: ✭ 12 (-72.09%)
Mutual labels:  code
ml dev env
Machine Learning / Deep Learning Environment. Everywhere. Anywhere.
Stars: ✭ 47 (+9.3%)
Mutual labels:  code

flaskcode

Build Status PyPI Version MIT License

Web based code editor on python flask framework.

screenshot

Installation

pip install flaskcode

Run application from CLI

Run flaskcode standalone, using following command:

flaskcode /path/to/resource/folder

Get help for CLI command:

flaskcode --help
Usage: flaskcode [OPTIONS] [RESOURCE_BASEPATH]

  Run FlaskCode with given RESOURCE_BASEPATH or current working directory.

  All options can be set on the command line or through environment
  variables of the form FLASKCODE_*. For example FLASKCODE_USERNAME.

Options:
  -h, --host TEXT                 IP or hostname on which to run HTTP server.
  -p, --port INTEGER              Port on which to bind HTTP server.
  --username TEXT                 HTTP Basic Auth username.
  --password TEXT                 HTTP Basic Auth password.
  --editor-theme [vs|vs-dark|hc-black]
                                  Editor theme, default is vs-dark.
  --debug                         Run in flask DEBUG mode.
  --env TEXT                      Flask environment, default is development.
  --version                       Show the version and exit.
  --help                          Show this message and exit.

Integrating flaskcode in your Flask app

The flaskcode can be integrated in to your own Flask app by configuring and registering flaskcode.blueprint with your app:

from flask import Flask
import flaskcode

app = Flask(__name__)
app.config.from_object(flaskcode.default_config)
app.config['FLASKCODE_RESOURCE_BASEPATH'] = '/path/to/resource/folder'
app.register_blueprint(flaskcode.blueprint, url_prefix='/flaskcode')

@app.route('/')
def hello():
    return "Hello World!"

if __name__ == '__main__':
    app.run()

Now if you run the Flask app on default port, you can access the flaskcode at http://127.0.0.1:5000/flaskcode.

Built with

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].