{ "info": { "author": "Fantomas42", "author_email": "fantomas42@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "===========\nDjango-SEKH\n===========\n\n|latest-version| |downloads|\n\n|travis-develop| |coverage-develop|\n\nDjango Search Engine Keywords **Highlighter**,\n\nis a middleware for Django providing the capacities to highlight the user's\nsearch keywords if he is coming from a search engine like Google, Yahoo or\na custom search form plugged in your Website.\n\nIt retrieves the keywords of the search and decorate them with a ``span``\nmarkup containing the classes ``highlight term-X`` for CSS makuping.\n\n.. contents::\n\nInstallation\n============\n\nFirst of all you need to install `BeautifulSoup`_ >= 4.0.\n\nThen install the package in your ``PYTHON_PATH`` by getting the\nsources and run ``setup.py`` or use ``pip``. ::\n\n $ pip install -e git://github.com/Fantomas42/django-sekh.git#egg=django-sekh\n\nUsage\n=====\n\nIn your settings file, simply add this middleware at the end of the list. ::\n\n MIDDLEWARE_CLASSES = (\n ...\n 'sekh.middleware.KeywordsHighlightingMiddleware',\n )\n\nThis is it !\n\nSearch Engines\n==============\n\nCurrenty django-sekh supports these search engines :\n\n* Ask\n* Baidu\n* Bing\n* Google\n* Hotbot\n* Lycos\n* Yahoo\n\nAnd even if you have a custom search engine plugged on your website,\n``sekh`` can highlight the searched keywords. Currently ``sekh`` will\nhighlight all the terms contained in this list of GET variables :\n::\n\n ['highlight', 'hl', 'q', 'query', 'pattern']\n\nYou can change the supported values by defining a variable named\n``HIGHLIGHT_GET_VARNAMES`` representing a list of supported variable names\nin your project's settings.\n\nTesting\n=======\n\nIf you want to test the highlighter, you can pass keywords in the ``hl``\nparameter in GET.\n\n http://localhost:8000/admin?hl=django%20admin\n\n\n.. |travis-develop| image:: https://travis-ci.org/Fantomas42/django-sekh.png?branch=develop\n :alt: Build Status - develop branch\n :target: http://travis-ci.org/Fantomas42/django-sekh\n.. |coverage-develop| image:: https://coveralls.io/repos/Fantomas42/django-sekh/badge.png?branch=develop\n :alt: Coverage of the code\n :target: https://coveralls.io/r/Fantomas42/django-sekh\n.. |latest-version| image:: https://pypip.in/v/django-sekh/badge.png\n :alt: Latest version on Pypi\n :target: https://crate.io/packages/django-sekh/\n.. |downloads| image:: https://pypip.in/d/django-sekh/badge.png\n :alt: Downloads from Pypi\n :target: https://crate.io/packages/django-sekh/\n\n.. _`BeautifulSoup`: http://www.crummy.com/software/BeautifulSoup/", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Fantomas42/django-sekh", "keywords": "django,search engine,keyword,highlight", "license": "BSD License", "maintainer": null, "maintainer_email": null, "name": "django-sekh", "package_url": "https://pypi.org/project/django-sekh/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-sekh/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/Fantomas42/django-sekh" }, "release_url": "https://pypi.org/project/django-sekh/0.4/", "requires_dist": null, "requires_python": null, "summary": "Highlight the keywords of a page if a visitor is coming form a search engine.", "version": "0.4" }, "last_serial": 1484792, "releases": { "0.2": [ { "comment_text": "", "digests": { "md5": "84821fc9beb02f1c91ab9178231f21a7", "sha256": "bb26e2e6a1af7b3ad3ec5fec3bae3c013498f2da96669066b4246a4986bcc542" }, "downloads": -1, "filename": "django-sekh-0.2.tar.gz", "has_sig": false, "md5_digest": "84821fc9beb02f1c91ab9178231f21a7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10410, "upload_time": "2011-11-07T19:39:08", "url": "https://files.pythonhosted.org/packages/61/ba/d15785d41b82ac42390c8df8e18a61483ebca5a1503a9d8a5cb9aa87f565/django-sekh-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "fe2f98dc869d1301acaab45276d40a8f", "sha256": "e071b6871105744613e20eab68dc25d4fb8280aab7d0ec5d5dca2abc7d14c302" }, "downloads": -1, "filename": "django-sekh-0.3.tar.gz", "has_sig": false, "md5_digest": "fe2f98dc869d1301acaab45276d40a8f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7569, "upload_time": "2013-06-12T09:10:35", "url": "https://files.pythonhosted.org/packages/76/16/8bccd25607e327a6508bf8926c985c2876e41f3b0d494d3bf4dcd25997dc/django-sekh-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "eff619243753391cc29473261167c184", "sha256": "0461d04da440cc539ffc1cc4fb23ab805b706040dd97a784d1bb9dcb2570ae17" }, "downloads": -1, "filename": "django-sekh-0.4.tar.gz", "has_sig": false, "md5_digest": "eff619243753391cc29473261167c184", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13458, "upload_time": "2015-03-31T12:51:55", "url": "https://files.pythonhosted.org/packages/5d/63/74816e1d995398ceaf60a33270d51b9bedb73aa69b8fec56844adf342854/django-sekh-0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "eff619243753391cc29473261167c184", "sha256": "0461d04da440cc539ffc1cc4fb23ab805b706040dd97a784d1bb9dcb2570ae17" }, "downloads": -1, "filename": "django-sekh-0.4.tar.gz", "has_sig": false, "md5_digest": "eff619243753391cc29473261167c184", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13458, "upload_time": "2015-03-31T12:51:55", "url": "https://files.pythonhosted.org/packages/5d/63/74816e1d995398ceaf60a33270d51b9bedb73aa69b8fec56844adf342854/django-sekh-0.4.tar.gz" } ] }