semvec/pypi-packages huggingface dataset:
Flask-Discussion 0.1.1
Comment system integration for Flask applications
License: MIT
Keywords: flask discussion comments commenting

# Flask-Discussion

[![Documentation Status](https://readthedocs.org/projects/flask-discussion/badge/?version=latest)](https://flask-discussion.readthedocs.io/en/latest/?badge=latest)


Flask-Discussion is an extension for
[Flask](https://palletsprojects.com/p/flask/) that adds support for several
discussion/comment systems to your application.

Supported comment systems:

- [Disqus](https://disqus.com)
- [Isso](https://github.com/posativ/isso/)
- [Remark42](https://github.com/umputun/remark42)


## Quickstart

First install the extension:

```
pip install Flask-Discussion
```

And then initialize it in your application:

```python
from flask import Flask
from flask_discussion import Discussion

discussion = Discussion()

def init_app():
    app = Flask(__name__)

    # Set config values
    # .....

    discussion.init_app(app)
```

This will register the extension templates (which contain the macros for each
comment system) with your application, making them available in your own
templates.

If you want to be able to swap comment systems through the configuration of
your application, you may use the macro defined in
`flask_discussion/helper.html`:

```django
{% import "flask_discussion/helper.html" as discussion %}

<html>
    <body>
        {{ discussion.render_comments(title="Page title", identifier="my-page", url="http://mypage.com") }}
    </body>
</html>
```

Note that the macro **receives any keyword argument and will relay the
appropriate information to the corresponding system-specific macro** (i.e. each
comment system may use only specific information, therefore you should provide
all possible values for all comment systems).

However, if you only want to use a specific comment system, you may import its
macros directly. For instance, for Disqus:

```django
{% import "flask_discussion/disqus.html" as disqus %}

<html>
    <body>
        {{ disqus.render_comments(identifier="my-page", url="http://mypage.com", title="Page title") }}
    </body>
</html>
```

## Documentation

Documentation is available at <https://flask-discussion.readthedocs.io>.
import-watch 2.0.1
Trace module imports and detect/deny cyclic imports at runtime
License: MIT

# Welcome!

**import-watch** allows to
trace module imports
and
detect/deny cyclic imports
*at runtime*
with Python 2 and 3.
It is licensed under the MIT license.

Enjoy!


# Installation
```console
# pip install import-watch
```


# Usage

## Trace imports
```python
import import_watch
import_watch.trace_imports(depth=2)  # default depth is unlimited
```

## Detect and warn about cyclic imports (at runtime)
```python
import import_watch
import_watch.warn_about_cyclic_imports()
```

## Deny cyclic imports (at runtime)
```python
import import_watch
import_watch.deny_cyclic_imports()
```

## Start fresh
```python
import import_watch
[..]
import_watch.reset()
```