pyramid_rewrite


Namepyramid_rewrite JSON
Version 0.2 PyPI version JSON
download
home_pagehttps://github.com/bennihepp/pyramid_rewrite
SummarySmall Pyramid extension for rewriting urls
upload_time2012-02-05 12:41:08
maintainerNone
docs_urlNone
authorBenjamin Hepp
requires_pythonNone
licenseBSD
keywords pyramid rewrite pylons web
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            pyramid_rewrite
===============

------------
Introduction
------------

pyramid_rewrite is a small extension for `Pyramid <http://www.pylonsproject.org/>`_ to rewrite urls before further processing takes place.

------------
Installation
------------

Just do

``pip install pyramid_rewrite``

or

``easy_install pyramid_rewrite``

-------------
Compatibility
-------------

pyramid_rewrite runs with pyramid>=1.3 and python>=2.6 and python>=3.2.
Other versions might also work.

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

Usage example::

    def main(global_config, **settings):
        config = Configurator(settings=settings)
        config.include('pyramid_rewrite')
        # add url rewriting rules...
        #   first parameter is a regular expression
        #   second parameter is the target url
        config.add_rewrite_rule(r'/favicon.ico', r'/static/favicon.ico')
        config.add_rewrite_rule(r'/gallery/(?P<subpath>.*)',
                                r'/root/%(subpath)s')
        #
        # ... rest of configuration
        #
        # return WSGI application instance
        return config.make_wsgi_app()

Better documentation might follow.


=======
Changes
=======

0.2
---

*  Added unit tests
*  Changed logging level

0.1
---

*  Initial version. Working.
            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/bennihepp/pyramid_rewrite",
    "name": "pyramid_rewrite",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "pyramid rewrite pylons web",
    "author": "Benjamin Hepp",
    "author_email": "benjamin.hepp@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/4f/3e/526da98e3673fcb20e7a4a41f3ce1e1bbe72feba5249511baf35eb1db8aa/pyramid_rewrite-0.2.tar.gz",
    "platform": "UNKNOWN",
    "description": "pyramid_rewrite\n===============\n\n------------\nIntroduction\n------------\n\npyramid_rewrite is a small extension for `Pyramid <http://www.pylonsproject.org/>`_ to rewrite urls before further processing takes place.\n\n------------\nInstallation\n------------\n\nJust do\n\n``pip install pyramid_rewrite``\n\nor\n\n``easy_install pyramid_rewrite``\n\n-------------\nCompatibility\n-------------\n\npyramid_rewrite runs with pyramid>=1.3 and python>=2.6 and python>=3.2.\nOther versions might also work.\n\n-------------\nDocumentation\n-------------\n\nUsage example::\n\n    def main(global_config, **settings):\n        config = Configurator(settings=settings)\n        config.include('pyramid_rewrite')\n        # add url rewriting rules...\n        #   first parameter is a regular expression\n        #   second parameter is the target url\n        config.add_rewrite_rule(r'/favicon.ico', r'/static/favicon.ico')\n        config.add_rewrite_rule(r'/gallery/(?P<subpath>.*)',\n                                r'/root/%(subpath)s')\n        #\n        # ... rest of configuration\n        #\n        # return WSGI application instance\n        return config.make_wsgi_app()\n\nBetter documentation might follow.\n\n\n=======\nChanges\n=======\n\n0.2\n---\n\n*  Added unit tests\n*  Changed logging level\n\n0.1\n---\n\n*  Initial version. Working.",
    "bugtrack_url": null,
    "license": "BSD",
    "summary": "Small Pyramid extension for rewriting urls",
    "version": "0.2",
    "project_urls": {
        "Download": "UNKNOWN",
        "Homepage": "https://github.com/bennihepp/pyramid_rewrite"
    },
    "split_keywords": [
        "pyramid",
        "rewrite",
        "pylons",
        "web"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "08f06db37699b4b1a416af09e1cb296fcbf40a357466a03acd4f47946ff758d4",
                "md5": "57a822770a31143f8e3cb790ee88e26e",
                "sha256": "1bb95f4fe0219be5604ada4f1e45f74dde98285a9ac10d11795f686ca07ba7ff"
            },
            "downloads": -1,
            "filename": "pyramid_rewrite-0.2-py2.6.egg",
            "has_sig": false,
            "md5_digest": "57a822770a31143f8e3cb790ee88e26e",
            "packagetype": "bdist_egg",
            "python_version": "2.6",
            "requires_python": null,
            "size": 6407,
            "upload_time": "2012-02-05T12:45:10",
            "upload_time_iso_8601": "2012-02-05T12:45:10.835864Z",
            "url": "https://files.pythonhosted.org/packages/08/f0/6db37699b4b1a416af09e1cb296fcbf40a357466a03acd4f47946ff758d4/pyramid_rewrite-0.2-py2.6.egg",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0db6d3871fbeec5f68a4709892e785e7fd51eec4a0362f6dd6cf5ef64330f6f8",
                "md5": "ab3a829436f535c680e92865f3884ff1",
                "sha256": "930c9ced0adf45c485ceb212968437f50f2c99c35bf6957831683c0f40750197"
            },
            "downloads": -1,
            "filename": "pyramid_rewrite-0.2-py2.7.egg",
            "has_sig": false,
            "md5_digest": "ab3a829436f535c680e92865f3884ff1",
            "packagetype": "bdist_egg",
            "python_version": "2.7",
            "requires_python": null,
            "size": 6376,
            "upload_time": "2012-02-05T12:41:15",
            "upload_time_iso_8601": "2012-02-05T12:41:15.001433Z",
            "url": "https://files.pythonhosted.org/packages/0d/b6/d3871fbeec5f68a4709892e785e7fd51eec4a0362f6dd6cf5ef64330f6f8/pyramid_rewrite-0.2-py2.7.egg",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "860e9386585e86a85349430400d62bafbfa4f3c8ab8b6da1dfa433a04cd8865c",
                "md5": "9fc22f7dc7766b20e595d8cd82663883",
                "sha256": "4c31dbf5d0af766cef7310c440c64438c78f8629829ec85daba05965e68c7201"
            },
            "downloads": -1,
            "filename": "pyramid_rewrite-0.2-py3.2.egg",
            "has_sig": false,
            "md5_digest": "9fc22f7dc7766b20e595d8cd82663883",
            "packagetype": "bdist_egg",
            "python_version": "3.2",
            "requires_python": null,
            "size": 4268,
            "upload_time": "2012-02-05T12:55:49",
            "upload_time_iso_8601": "2012-02-05T12:55:49.896346Z",
            "url": "https://files.pythonhosted.org/packages/86/0e/9386585e86a85349430400d62bafbfa4f3c8ab8b6da1dfa433a04cd8865c/pyramid_rewrite-0.2-py3.2.egg",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4f3e526da98e3673fcb20e7a4a41f3ce1e1bbe72feba5249511baf35eb1db8aa",
                "md5": "ceff4eee33fe9ab6540d9ebddfe1e190",
                "sha256": "9ed1dc59d3264ae348d06daf29cf08a4ff9a76275117b7e61957e3af540f6b9c"
            },
            "downloads": -1,
            "filename": "pyramid_rewrite-0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "ceff4eee33fe9ab6540d9ebddfe1e190",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 4052,
            "upload_time": "2012-02-05T12:41:08",
            "upload_time_iso_8601": "2012-02-05T12:41:08.508498Z",
            "url": "https://files.pythonhosted.org/packages/4f/3e/526da98e3673fcb20e7a4a41f3ce1e1bbe72feba5249511baf35eb1db8aa/pyramid_rewrite-0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2012-02-05 12:41:08",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "bennihepp",
    "github_project": "pyramid_rewrite",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "tox": true,
    "lcname": "pyramid_rewrite"
}
        
Elapsed time: 0.40368s