semvec/pypi-packages huggingface dataset:
jinja-vanish 0.1
Customizable auto-escaping for jinja2.
License: MIT

Jinja vanish: Escape like a ninja
=================================

When using `Jinja2`_-templates to output non-HTML contents, autoescaping cannot
be used because it is hardcoded to work with an HTML ``escape`` function and
`MarkupSafe`_'s Markup objects.

`jinja_vanish` enables implementing custom auto-escapes by overriding the
``escape`` function inside the generated template code using an extended
code-generator and replacing the built-in filters ``|e`` and ``|escape``. Usage
is fairly simple, here is an example that uses `psycopg2`'s ``mogrify()``
function to escape SQL for Postgres:

.. code-block:: python

    from datetime import datetime

    from jinja_vanish import DynAutoEscapeEnvironment, markup_escape_func
    from psycopg2.extensions import adapt

    @markup_escape_func
    def sql_escape(v):
        # the decorator handles wrapping/unwrapping in Markup(), but is
        # otherwise not necessary
        return adapt(v)


    env = DynAutoEscapeEnvironment(autoescape=True, escape_func=sql_escape)
    tpl = env.from_string('SELECT * FROM foo where post_date <= {{now}}')

    print(tpl.render(now=datetime.now()))

Running it outputs::

    SELECT * FROM foo where post_date <= '2016-01-24T23:23:22.727789'::timestamp



.. _Jinja2: http://jinja.pocoo.org
.. _MarkupSafe: https://pypi.python.org/pypi/MarkupSafe
drf-ember 0.1.0b3
Enables Django REST Framework support for Ember Data's JSON API implementation.
License: MIT
Keywords: ember django rest json-api framework

=========
drf-ember
=========

Enables Django REST Framework support for Ember Data's JSON API implementation.

JSON API feature support
------------------------

Presently, **drf-ember** supports a majority - but not all - of
the JSON API specifications features and extensions.

Supported
.........

These features are supported.

- Generation of JSON API document structure

- The core functionality for retrieval, creation, updating, and deletion of resources

- The ``included`` top-level member is supported by parsing nested serializer fields.
  See the *Getting Started* guide in the documentation.

- Error objects

- The bulk extension for creation and updating of resource lists

Not supported
.............

These features are not supported.

- ``links`` objects are not generated

- Fetching relationship data for every relationship URL provided as a ``self``
  link as part of a relationship's ``links`` object.

- Endpoints can't presently support an ``include`` request parameter which
  allows the client to customize which related resources should be returned.
  Presently, **drf-ember** will return a blank ``400`` if the ``include``
  request parameter is present.

- Sparse fieldsets

- Sort fields through query parameters

- Updating relationships at URLs from relationship links

Requirements
------------

Python 3. Python 2 is **not** supported and there is **no** plan to support it.

Install
-------

Use ``pip``::

    pip install drf-ember

Documentation
-------------

You can read the documentation on the **drf-ember**
`Read The Docs page <http://drf-ember.readthedocs.org/en/latest/>`_.

Contributing
------------

The Github repository is the issue tracker. Please submit issues here. Pull requests are appreciated.

Please follow the Django Community Code of Conduct (https://www.djangoproject.com/conduct/) while
contributing to **drf-ember**.

Tests
-----

Use **py.test**. Make sure you have it installed. Clone the **drf-ember** repository.
From the repository directory, run::

    py.test tests

Releases
--------

Please check the project's CHANGELOG.md file for detailed changes.
pplugins 1.0.1
Process-based plugin framework
License: MIT

pplugins
========
[![Documentation Status](https://readthedocs.org/projects/pplugins/badge/?version=latest)](http://pplugins.readthedocs.org/en/latest/?badge=latest) [![Build Status](https://travis-ci.org/JohnMaguire/pplugins.svg?branch=master)](https://travis-ci.org/JohnMaguire/pplugins) [![Coverage Status](https://coveralls.io/repos/github/JohnMaguire/pplugins/badge.svg?branch=master)](https://coveralls.io/github/JohnMaguire/pplugins?branch=master)

Think of it as the yapsy of multiprocessing.

Supported versions
------------------
* Python 2.7
* Python 3.3+
lektor-embed-x 0.1.2
Enables embedding of web-contents from popular sites in MarkDown(*.md) on Lektor CMS
License: MIT
Keywords: lektor,embed,html,javascript,embeddable,code generation,cms, markdown

| |License|
| |PyPI version|
| |Code Issues|

lektor-embed-x
==============

Enables simple embedding of web-contents from popular sites in
MarkDown(\*.md) pages generated by Lektor CMS.

| **Current Status**: **Alpha**.
| Minimally works for limited number of content providers. Active
  development is ongoing.

Setup
=====

Simple way
----------

::

    $ cd path/to/lektor/project_folder
    $ lektor plugins add lektor-embed-x
    Package lektor-embed-x (0.1.2) was added to the project

Geek way
--------

::

    $ cd path/to/lektor/project_folder
    $ cd ./packages
    $ git clone https://github.com/kmonsoor/lektor-embed-x.git

Then add this line to your\_lektor\_project..lektorproject file’s
``[packages]`` section.

::

    lektor-embed-x = 0.1.2

Then, remember to flash the plugin-cache of ``Lektor``. Just in case.

::

    $ lektor plugins flush-cache

Usage
-----

| You need nothing explicit to enable the embedding in `MarkDown`_
  formatted text on Lektor.
| If the content link is supported by `embedX project`_, the content
  link will automatically expanded to become embedded staff.

For example, check out this page. // TODO

--------------

**Copyright:** (c) 2016 Khaled Monsoor k@kmonsoor.com

Distributed under **The MIT License**. `Click for license details`_.

.. _MarkDown: https://daringfireball.net/projects/markdown/syntax
.. _embedX project: https://github.com/kmonsoor/embedX
.. _Click for license details: http://kmonsoor.mit-license.org/

.. |License| image:: https://img.shields.io/badge/license-MIT-blue.svg
   :target: http://kmonsoor.mit-license.org/
.. |PyPI version| image:: https://badge.fury.io/py/lektor-embed-x.svg
   :target: https://badge.fury.io/py/lektor-embed-x
.. |Code Issues| image:: https://www.quantifiedcode.com/api/v1/project/20f6049179e340a595a90edb5bb4ffd6/badge.svg
   :target: https://www.quantifiedcode.com/app/project/20f6049179e340a595a90edb5bb4ffd6