semvec/pypi-packages huggingface dataset:
pyramid-htmlmin 0.6
Minify your html pages for Pyramid
Keywords: web pyramid pylons

pyramid-htmlmin
===============

Binding of the htmlmin_ library for Pyramid.


 .. _htmlmin: https://pypi.python.org/pypi/htmlmin/


Usage::

    pyramid.includes =
      pyramid_htmlmin

    # uncomment lines to override default settings.
    
    # Send gzipped minifed code when possible (defaults to True)
    # pyramid_htmlmin.gzip_if_accepted = True

    # the settings here are default value of htmlmin.minify methods,
    # provided by htmlmin version 0.1.5
    # htmlmin.remove_comments = False
    # htmlmin.remove_empty_space = False
    # htmlmin.remove_all_empty_space = False
    # htmlmin.reduce_empty_attributes = True
    # htmlmin.reduce_boolean_attributes = False
    # htmlmin.remove_optional_attribute_quotes = True
    # htmlmin.keep_pre = False



Changelog
=========

0.6 (2017-07-19)
----------------

 * Don't stick Pyramid to version 1.5


0.5 (2015-06-16)
----------------

 * Minified in gzip the response if possible


0.4 (2015-06-30)
----------------

 * Minified exceptions renderered pages too


0.3 (2015-01-21)
----------------

 * don't raise when the content type response is not set.


0.2 (2014-10-20)
----------------

 * minify options are now configurable via Pyramid settings.


0.1 (2014-10-13)
----------------

 * Initial version.
raises 0.2
Raises' in your source code, all's right with the Stack Overflow
Requires Python: >=2.7

Raises Stack Overflow
---------------------

*Raises' in your source code, all's right with the Stack Overflow*

Install
-------

Please use ``pip`` to install ``raises``

::

    $ pip install raises

How to use?
-----------

Is easy to use ``raises`` in your daily work, to help you find out
raises error's answer on Stack Overflow, simply ``import raises`` to
your code, then done!

.. code:: python

    import raises  # To the top of your source code

Example
-------

For example, if we type in ``int("")`` to REPL, it will raise a
``ValueError``:

.. code:: python

    >>> import raises
    >>> int("")
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    ValueError: invalid literal for int() with base 10: ''

You should now saw a new tab in your browser, to find out the answer on
Stack Overflow!

API
---

-  raises.enable()

To enable the raises function

-  raises.disable()

To disable the raises function

-  raises.raiser

The core function of raises, it was the ``sys.excepthook`` replacer to
handle every exceptio, and to open a new browser with tabs.