{ "info": { "author": "Jim Washington", "author_email": "jwashin@users.sourceforge.net", "bugtrack_url": null, "classifiers": [], "description": "***********\r\nzif.gzipper\r\n***********\r\n\r\nDon't use this. It does not really play nice in a WSGI stack. To gzip output, put your WSGI stack behind \r\na proxy that gzips, e.g., nginx or apache.\r\n\r\nIf you just want to amuse yourself, feel free to play with this. I could remove the package completely, \r\nbut what the heck...\r\n\r\nSee 'src/zif/gzipper/README.txt' for more information.\r\n\r\nReleases\r\n********\r\n\r\n================\r\n0.2 (2007/04/13)\r\n================\r\n\r\nSmall improvements to documentation files.\r\n\r\n\r\n================\r\n0.1 (2007/04/12)\r\n================\r\n\r\nInitial release.\r\n\r\n\r\nDetailed Documentation\r\n**********************\r\n\r\n===========\r\nzif.gzipper\r\n===========\r\n\r\n\r\nThis is a wsgi middleware application intended for use with paste.deploy,\r\nzope.paste, and zope3.\r\n\r\nIt serves as a wsgi filter to gzip output from a zope3 application.\r\n\r\n\r\nDependencies\r\n------------\r\n\r\nfor zope3, zif.gzipper requires Sidnei da Silva's zope.paste\r\n\r\nzope.paste is available at http://svn.zope.org/zope.paste/trunk/\r\n\r\n::\r\n\r\n cd [path.to.zope3.src.directory]/zope\r\n svn co http://svn.zope.org/zope.paste/trunk/ paste\r\n\r\nzope.paste is also available at `the python cheese shop\r\n`_.\r\n\r\nInstructions for zope.paste are at\r\n`http://awkly.org/2006/01/25/zopepaste-wsgi-applications-in-zope-3-using-pastedeploy/\r\n`_\r\n\r\nzope.paste requires paste.deploy. paste.deploy may be obtained from `the cheese\r\nshop `_. Presuming you have\r\nsetuptools installed,\r\n\r\n::\r\n\r\n sudo easy_install.py PasteDeploy\r\n\r\nThis (zif.gzipper) package can be unzipped and installed anywhere on the Python\r\npath.\r\n\r\n\r\nSetup\r\n-----\r\n\r\nFollow Sidnei's instructions for setting up zope.paste. It involves putting the\r\nusual zope.paste-configure.zcml file in [zope3 instance]/etc/site-packages.\r\nThere is also a parameter to change in [zope3 instance]/etc/zope.conf.\r\nThe new twist is a paste.ini file in [zope3 instance]/etc\r\n\r\nMy paste.ini file looks like:\r\n\r\n::\r\n\r\n pipeline = gzipper jsmin main\r\n \r\n [app:main]\r\n paste.app_factory = zope.paste.application:zope_publisher_app_factory\r\n \r\n [filter:gzipper]\r\n paste.filter_factory=zif.gzipper.gzipper:filter_factory\r\n compress_level=6\r\n exclude=localimages\r\n nocompress=jp gz zip png\r\n tempfile=1048576\r\n \r\n [filter:jsmin]\r\n paste.filter_factory=zif.jsmin.jsmin:filter_factory\r\n compress_level=safe\r\n\r\n\r\nConfiguration\r\n-------------\r\n\r\ngzipper should be the first filter in the pipeline. Other filters will\r\nhave a hard time reading compressed data output from this filter.\r\n\r\nThe paste.ini file above shows examples of the configuration options for gzipper.\r\n\r\n- *compress_level* is the level of compression for the gzip function. 6 is the\r\n default. 9 is max. 3 is often good enough. Higher numbers use more\r\n processor, but compress smaller.\r\n\r\n- *exclude* is a sequence of strings that appear in the a **filename or path**\r\n you wish to exclude from gzipping. If any of these strings appears in the\r\n path or filename, gzipper will not gzip the file.\r\n\r\n- *nocompress* is a sequence of strings that appear in **content-types** you wish to\r\n exclude from gzipping. If the string appears\r\n anywhere in the content-type, items with that content-type will\r\n not be gzipped. \"jp\" will exclude \"image/jpg\" and \"image/jpeg\".\r\n \"application\" will exclude any content-type with the word \"application\" in\r\n it.\r\n\r\n- *tempfile* is the file size above which gzipper will send the gzipped data to\r\n a tempfile on disk. This may help memory usage. It may not. *tempfile=0*\r\n means do not use temporary file. Default is 1 megabyte (1048576).\r\n\r\nDownload\r\n********", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://zif.svn.sourceforge.net/viewvc/zif/zif.gzipper", "keywords": "gzipper gzip wsgi middleware zope3", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "zif.gzipper", "package_url": "https://pypi.org/project/zif.gzipper/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/zif.gzipper/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://zif.svn.sourceforge.net/viewvc/zif/zif.gzipper" }, "release_url": "https://pypi.org/project/zif.gzipper/0.2/", "requires_dist": null, "requires_python": null, "summary": "WSGI middleware providing gzip compression for HTTP server output.", "version": "0.2" }, "last_serial": 802285, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "ce61af38a1ee7f8e653ecca174c15f04", "sha256": "e303be6c8d2b9d7786f6cf69ab3fb80b725f958b0b70c62cbfa11fd503065d6d" }, "downloads": -1, "filename": "zif.gzipper-0.1-py2.4.egg", "has_sig": false, "md5_digest": "ce61af38a1ee7f8e653ecca174c15f04", "packagetype": "bdist_egg", "python_version": "2.4", "requires_python": null, "size": 15830, "upload_time": "2007-04-12T04:40:13", "url": "https://files.pythonhosted.org/packages/c6/f2/cf63f3b2a317335221b3c03efd55c1037989df1a6fcf7be8eb09bd33a058/zif.gzipper-0.1-py2.4.egg" }, { "comment_text": "", "digests": { "md5": "cac5efd4da2474afab2839ea7e281629", "sha256": "508efc650e433752e6abb1f3cccd03661d45bd54c4fbefe6e6a252407973a1fe" }, "downloads": -1, "filename": "zif.gzipper-0.1.tar.gz", "has_sig": false, "md5_digest": "cac5efd4da2474afab2839ea7e281629", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7230, "upload_time": "2007-04-12T04:40:14", "url": "https://files.pythonhosted.org/packages/3a/02/736e9ea41724d11fc96f60a6923839b1e14c42d77b7c7c1665de61b7cfc3/zif.gzipper-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "0bead697b13351748c47ab425b31ff63", "sha256": "2758336f9c31b14ad8c5800071d45c86de014b5732773f3b0faab2031e1a511b" }, "downloads": -1, "filename": "zif.gzipper-0.2-py2.4.egg", "has_sig": false, "md5_digest": "0bead697b13351748c47ab425b31ff63", "packagetype": "bdist_egg", "python_version": "2.4", "requires_python": null, "size": 15907, "upload_time": "2007-04-13T22:21:26", "url": "https://files.pythonhosted.org/packages/e6/17/d0cffa985fce0c6041cf56c36e3976ac9c3de6ba2af4bab51322d7b83040/zif.gzipper-0.2-py2.4.egg" }, { "comment_text": "", "digests": { "md5": "0893b78cfa06584ffa545f9b95551f9b", "sha256": "28d1cbb2fa45edfe2793230daa47f9f2d8fcb8b277d2ebd1f938087d268ca394" }, "downloads": -1, "filename": "zif.gzipper-0.2.tar.gz", "has_sig": false, "md5_digest": "0893b78cfa06584ffa545f9b95551f9b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7345, "upload_time": "2007-04-13T22:21:27", "url": "https://files.pythonhosted.org/packages/21/d8/7390b0d95fea44ec98def9f1965813d8839a1340eab3e9cee6550fbf60ad/zif.gzipper-0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0bead697b13351748c47ab425b31ff63", "sha256": "2758336f9c31b14ad8c5800071d45c86de014b5732773f3b0faab2031e1a511b" }, "downloads": -1, "filename": "zif.gzipper-0.2-py2.4.egg", "has_sig": false, "md5_digest": "0bead697b13351748c47ab425b31ff63", "packagetype": "bdist_egg", "python_version": "2.4", "requires_python": null, "size": 15907, "upload_time": "2007-04-13T22:21:26", "url": "https://files.pythonhosted.org/packages/e6/17/d0cffa985fce0c6041cf56c36e3976ac9c3de6ba2af4bab51322d7b83040/zif.gzipper-0.2-py2.4.egg" }, { "comment_text": "", "digests": { "md5": "0893b78cfa06584ffa545f9b95551f9b", "sha256": "28d1cbb2fa45edfe2793230daa47f9f2d8fcb8b277d2ebd1f938087d268ca394" }, "downloads": -1, "filename": "zif.gzipper-0.2.tar.gz", "has_sig": false, "md5_digest": "0893b78cfa06584ffa545f9b95551f9b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7345, "upload_time": "2007-04-13T22:21:27", "url": "https://files.pythonhosted.org/packages/21/d8/7390b0d95fea44ec98def9f1965813d8839a1340eab3e9cee6550fbf60ad/zif.gzipper-0.2.tar.gz" } ] }