Metadata-Version: 2.1
Name: flaskcode
Version: 0.0.6
Summary: Web based code editor on flask
Home-page: https://github.com/sujeetkv/flaskcode
Author: Sujeet Kumar
Author-email: sujeetkv90@gmail.com
License: MIT
Description: # flaskcode
        
        [![Build Status](https://travis-ci.org/sujeetkv/flaskcode.svg?branch=master)](https://travis-ci.org/sujeetkv/flaskcode)
        [![PyPI Version](https://img.shields.io/pypi/v/flaskcode.svg)](https://pypi.org/project/flaskcode)
        
        Web based code editor on flask
        
        Code editor with python [Flask](http://flask.pocoo.org) framework backend.
        
        ![screenshot](https://user-images.githubusercontent.com/17122995/58122163-9f04bc80-7c26-11e9-9aab-61cf1a312c9f.png)
        
        
        ## Installation
        
        ```bash
        $ pip install flaskcode
        ```
        
        
        ## Running the application
        
        Run the application standalone, like this:
        
        ```bash
        $ flaskcode /path/to/resource/folder
        FlaskCode CLI: /path/to/resource/folder
        ...
        ```
        
        ```bash
        $ 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                         Enter 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 accessing the blueprint directly in the normal way, e.g.:
        
        ```python
        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
        
        * [Flask](http://flask.pocoo.org) - web framework used
        * [Monaco Editor](https://microsoft.github.io/monaco-editor) - a browser based code editor
        
        
        ## Authors
        
        * **Sujeet Kumar** - [sujeetkv](https://github.com/sujeetkv)
        
        
        ## License
        
        This project is licensed under the MIT License - see the [LICENSE](https://github.com/sujeetkv/flaskcode/blob/master/LICENSE) file for details.
        
Keywords: flaskcode code editor code-editor
Platform: any
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Text Editors :: Text Processing
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Utilities
Requires-Python: >=2.7
Description-Content-Type: text/markdown
