semvec/pypi-packages huggingface dataset:
Flask-SOEditor 0.1.2a0
A Stack Overflow editor extension for Flask.
License: MIT

# Flask-SOEditor
A Stack Overflow editor extension for Flask.
## Installation
`pip install Flask-SOEditor`
## Usage
### Initialization
The first step is to initialize the extension:
```Python
from flask import Flask, render_template
from flask_soeditor import SOEditor

app = Flask(__name__)

soeditor = SOEditor(app)

@app.route('/')
def index():
  return render_template('index.html')

if __name__ == '__main__':
  app.run(debug=True)
```
Alternatively, you could use the `init_app()` method, like this:
```Python
from flask import Flask, render_template
from flask_soeditor import SOEditor

soeditor = SOEditor()

def create_app(config_name):
  app = Flask(__name__)
  app.config.from_object(config[config_name])
  config[config_name].init_app(app)
  
  soeditor.init_app(app)
  ...
```

### Add editor in template
First, you have to load the css and js files, and then replace your textarea:
```Html
<!DOCTYPE html>
<html>
<head>
	<title>Flask-SOEditor example</title>
	{{ soeditor.css }}
	{{ soeditor.js }}
</head>
<body>
<textarea id="mdeditor"></textarea>
<script type="text/javascript">
	var soeditor = new SOEditor("textarea#mdeditor");
</script>
</body>
</html>
```
omni_gumshoe 0.1.1
Simple django signal for tracking superuser logins.
License: MIT
Keywords: omni_gumshoe

=============================
Omni Gumshoe
=============================

.. image:: https://badge.fury.io/py/omni_gumshoe.svg
    :target: https://badge.fury.io/py/omni_gumshoe

.. image:: https://travis-ci.org/omni-digital/omni-gumshoe.svg?branch=master
    :target: https://travis-ci.org/omni-digital/omni-gumshoe

.. image:: https://codecov.io/gh/omni-digital/omni-gumshoe/branch/master/graph/badge.svg
    :target: https://codecov.io/gh/omni-digital/omni-gumshoe

Simple logging for superuser logins.

Quickstart
----------

Install Omni Gumshoe::

    pip install omni_gumshoe

Add it to your `INSTALLED_APPS`:

.. code-block:: python

    INSTALLED_APPS = (
        ...
        'omni_gumshoe',
        ...
    )

Features
--------

* Adds a `LogEvent` every time a super user logs in.
* Adds a `LogEvent` every time a staff user logs in.

Running Tests
-------------

Does the code actually work?

::

    source <YOURVIRTUALENV>/bin/activate
    (myenv) $ pip install tox
    (myenv) $ tox

Recommended With
----------------
We would recommend using Logentry Admin, Omni Gumshoe adds slightly more visibility to Logentry Admin.

Install django-logentry-admin::

    pip install django-logentry-admin

Add it to your `INSTALLED_APPS`:

.. code-block:: python

    INSTALLED_APPS = (
        ...
        'django-logentry-admin',
        ...
    )

Credits
-------

Tools used in rendering this package:

*  Cookiecutter_
*  `cookiecutter-djangopackage`_

.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`cookiecutter-djangopackage`: https://github.com/pydanny/cookiecutter-djangopackage




History
-------

0.1.0 (2017-04-04)
++++++++++++++++++

* First release on PyPI.