A simple Django extension for url manipulation
Project description
===========
django-furl [WIP]
===========
|Version| |License| |Downloads|
.. |Version| image:: https://img.shields.io/pypi/v/django-furl.svg?style=flat
:target: https://pypi.python.org/pypi/django-furl
:alt: Version
.. |License| image:: https://img.shields.io/pypi/l/django-furl.svg?style=flat
:target: https://github.com/poxip/django-furl/blob/master/LICENSE
:alt: License
.. |Downloads| image:: https://img.shields.io/pypi/dm/django-furl.svg
:target: https://pypi.python.org/pypi/django-furl
:alt: Downloads
**django-furl** is a simple Django wrapper of `Furl
<https://github.com/gruns/furl>`_'s API. It provides essential template tags
for url manipulation.
.. code-block::
{% furl_add 'http://somestuff.tv/search/?q=The+Office' character='Michael Scott' year=2005 %}
``http://somestuff.tv/search/?q=The+Office&character=Michael+Scott&year=2005``
Installation
------------
::
$ pip install django-furl
Quick Start
-----------
1. Add "django_furl" to your INSTALLED_APPS::
INSTALLED_APPS = [
...
'django_furl',
]
2. Load "furl_tags" in your template::
{% load furl_tags %}
Basic Usage
-----------
.. code-block::
{% furl_add 'http://somestuff.tv/search/?q=The+Office' character='Michael Scott' year=2005 %}
``http://somestuff.tv/search/?q=The+Office&character=Michael+Scott&year=2005``
.. code-block::
{% furl_update 'http://somestuff.tv/search/?page=3' q='The Big Bang Theory' character='Sheldon Cooper' page=1 %}
``http://somestuff.tv/search/?page=1&q=The+Big+Bang+Theory&character=Sheldon+Cooper``
.. code-block::
{% furl_add 'http://somestuff.tv/search/?facets=Type.Other' facets='Category.Drama' q='True Detective' %}
``http://somestuff.tv/search/?facets=Type.Other&facets=Category.Drama&q=True+Detective``
.. code-block::
{% furl_del 'http://somestuff.tv/search/?facets=Type.Other&facets=Category.Other&q=w' 'facets' 'q' %}
``http://somestuff.tv/search/``
django-furl [WIP]
===========
|Version| |License| |Downloads|
.. |Version| image:: https://img.shields.io/pypi/v/django-furl.svg?style=flat
:target: https://pypi.python.org/pypi/django-furl
:alt: Version
.. |License| image:: https://img.shields.io/pypi/l/django-furl.svg?style=flat
:target: https://github.com/poxip/django-furl/blob/master/LICENSE
:alt: License
.. |Downloads| image:: https://img.shields.io/pypi/dm/django-furl.svg
:target: https://pypi.python.org/pypi/django-furl
:alt: Downloads
**django-furl** is a simple Django wrapper of `Furl
<https://github.com/gruns/furl>`_'s API. It provides essential template tags
for url manipulation.
.. code-block::
{% furl_add 'http://somestuff.tv/search/?q=The+Office' character='Michael Scott' year=2005 %}
``http://somestuff.tv/search/?q=The+Office&character=Michael+Scott&year=2005``
Installation
------------
::
$ pip install django-furl
Quick Start
-----------
1. Add "django_furl" to your INSTALLED_APPS::
INSTALLED_APPS = [
...
'django_furl',
]
2. Load "furl_tags" in your template::
{% load furl_tags %}
Basic Usage
-----------
.. code-block::
{% furl_add 'http://somestuff.tv/search/?q=The+Office' character='Michael Scott' year=2005 %}
``http://somestuff.tv/search/?q=The+Office&character=Michael+Scott&year=2005``
.. code-block::
{% furl_update 'http://somestuff.tv/search/?page=3' q='The Big Bang Theory' character='Sheldon Cooper' page=1 %}
``http://somestuff.tv/search/?page=1&q=The+Big+Bang+Theory&character=Sheldon+Cooper``
.. code-block::
{% furl_add 'http://somestuff.tv/search/?facets=Type.Other' facets='Category.Drama' q='True Detective' %}
``http://somestuff.tv/search/?facets=Type.Other&facets=Category.Drama&q=True+Detective``
.. code-block::
{% furl_del 'http://somestuff.tv/search/?facets=Type.Other&facets=Category.Other&q=w' 'facets' 'q' %}
``http://somestuff.tv/search/``
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-furl-0.1.0.tar.gz
(2.5 kB
view details)
File details
Details for the file django-furl-0.1.0.tar.gz
.
File metadata
- Download URL: django-furl-0.1.0.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20071eeb4a0740a5fe11216a1fc94b9ae446163babe555dd3afa5135ac9a709f |
|
MD5 | 1ab172186c3997858faa9bbad32cd13a |
|
BLAKE2b-256 | 07ed3685909895b6e24cab8ab4ed200bde0b7d5ba8f9f44dcdeebd2d0c6f8b4b |