The ``p01.recipe.cdn:app`` recipe generates a script which is able to extract
content delivery resources defined by the p01.cdn meta directives from a
project to a given folder. Additional there is a minify recipe which generates
a minify script which is able to collect resources from a local project or
released python packages, minify and bundle them. And there is a glue recipe
which is able to generate sprite images. In short words, three is everything
you will need to generate and extract resources for a content delivery network.
Detailed Documentation
**********************
======
README
======
This buildout recipe package offers 3 different concepts. This 3 concept allows
you to reduce the resources size and offload the resources from your
application server. The nice thing is, that you can start your application with
different configurations if you like to server the minified and static or the
local non monified resource versions. The p01.cdn package also offers a version
manager which allows to use different resource versioning concepts.
Since version 1.0.0 this package is offering versiong per file and doesn't
require to use one version for all resources. The optinal p01.recipe.cdn:setup
recipe creates a script which is able to generate a version map and the related
zrt-replace directives and stores them in a json data map and a less file
which can get included in your related less files.
sprites
-------
The first concept allows to generate sprite images and the relevant css styles
pointing to the right sprite background position. This recipe uses the
spritemapper python package
minify
------
The second concept allows to minify javascript or CSS files. The recipe supports
the following python minify libraries.
jsmin: http://pypi.python.org/pypi/jsmin
lpjsmin: http://pypi.python.org/pypi/lpjsmin
slimit: http://pypi.python.org/pypi/slimit
cssmin: http://pypi.python.org/pypi/cssmin
content delivery network
------------------------
The third concept allows to extract CDN (content delivery network) resources
based on p01.cdn into a folder structure.
=======
CHANGES
=======
1.1.3 (2025-07-18)
------------------
- make code python 3 compatible
1.1.2 (2015-09-11)
------------------
- bugfix: fix broken i18n cdn resource path extraction
1.1.1 (2015-09-03)
------------------
- feature: use better error message if a zrt-resource include fails because
of a missing resource (adapter) lookup.
1.1.0 (2015-06-30)
------------------
- feature: check version before write the verisons and zrt-replace directives
the the related files. This prevents that the less compiler get invoked for
nothing because fo the modified zrt-replace.less file.
- bugfix: fix i18n resource extraction
1.0.0 (2015-06-29)
------------------
- feature: support pkg, file include in header option. This allows us to
include files with generated zrt-replace arguments. One usecase for this new
option is the new cdn extraction concept which is able to version each
resource file based on subversion version or the related package version.
This new concept generates a file including all the related zrt-replace.less
rules.
- feature: switch to json config file based minify script processing. This
allows us to use larger headers and source files and isn't limited by
cmd line length.
- feature: added option for extract each resource with it's own version based
on subversion version. See p01.cdn version 1.0.0 for support cdn resources.
- feature: generate zrt-replace.less for extracted resources including all
the related zrt-replace rules. This file can get included as header option
in the p01.recipe.cdn:minify recipe
0.5.7 (2015-03-17)
------------------
- bugfix: support missing parser instance. The parser was missing for show an
error message, e.g. missing directory path
0.5.6 (2014-06-10)
------------------
- extract: print the current layer
0.5.5 (2014-05-08)
------------------
- bugfix: The skip option didn't work. Now you can define optional files by
it's filename and the minify script will only include this skipped files
and not minify the file source.
- bugfix: The libs option didn't work. Now you can define different minify
libraries for each file.
0.5.4 (2013-11-13)
------------------
- Output the resource parameters when extract fails
0.5.3 (2013-03-27)
------------------
- bugfix: use an empty list as default skip option and not None
0.5.2 (2013-03-19)
------------------
- feature: support skip option in extract recipe. This allows to define a list
of filenames thcih get not extracted to the output. This allows to skip the
source files from get deployed to the cdn output folder.
- feature: support slimit mangle, mangle_toplevel and cssmin wrap options. You
can use them as slimit_mangle, slimit_mangle_toplevel and cssmin_wrap in your
buildout.
0.5.1 (2013-01-28)
------------------
- improve error handling, show traceback from executed method
0.5.0 (2012-11-16)
------------------
- initial release
Raw data
{
"_id": null,
"home_page": "http://pypi.python.org/pypi/p01.recipe.cdn",
"name": "p01.recipe.cdn",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "zope3 p01 recipe cdn content delivery network minify bundle js javascript css",
"author": "Roger Ineichen and the Zope Community",
"author_email": "zope-dev@zope.org",
"download_url": "https://files.pythonhosted.org/packages/5b/dc/ca868fb1a93f283239534432971321db3ab3c2045adc21298f3b1d25befd/p01.recipe.cdn-1.1.3.tar.gz",
"platform": null,
"description": "The ``p01.recipe.cdn:app`` recipe generates a script which is able to extract\ncontent delivery resources defined by the p01.cdn meta directives from a\nproject to a given folder. Additional there is a minify recipe which generates\na minify script which is able to collect resources from a local project or\nreleased python packages, minify and bundle them. And there is a glue recipe\nwhich is able to generate sprite images. In short words, three is everything\nyou will need to generate and extract resources for a content delivery network.\n\n\nDetailed Documentation\n**********************\n\n======\nREADME\n======\n\nThis buildout recipe package offers 3 different concepts. This 3 concept allows\nyou to reduce the resources size and offload the resources from your\napplication server. The nice thing is, that you can start your application with\ndifferent configurations if you like to server the minified and static or the\nlocal non monified resource versions. The p01.cdn package also offers a version\nmanager which allows to use different resource versioning concepts.\n\nSince version 1.0.0 this package is offering versiong per file and doesn't\nrequire to use one version for all resources. The optinal p01.recipe.cdn:setup\nrecipe creates a script which is able to generate a version map and the related\nzrt-replace directives and stores them in a json data map and a less file\nwhich can get included in your related less files.\n\n\nsprites\n-------\n\nThe first concept allows to generate sprite images and the relevant css styles\npointing to the right sprite background position. This recipe uses the\nspritemapper python package\n\n\nminify\n------\n\nThe second concept allows to minify javascript or CSS files. The recipe supports\nthe following python minify libraries.\n\n jsmin: http://pypi.python.org/pypi/jsmin\n lpjsmin: http://pypi.python.org/pypi/lpjsmin\n slimit: http://pypi.python.org/pypi/slimit\n cssmin: http://pypi.python.org/pypi/cssmin\n\n\ncontent delivery network\n------------------------\n\nThe third concept allows to extract CDN (content delivery network) resources\nbased on p01.cdn into a folder structure.\n\n\n=======\nCHANGES\n=======\n\n1.1.3 (2025-07-18)\n------------------\n\n- make code python 3 compatible\n\n\n1.1.2 (2015-09-11)\n------------------\n\n- bugfix: fix broken i18n cdn resource path extraction\n\n\n1.1.1 (2015-09-03)\n------------------\n\n- feature: use better error message if a zrt-resource include fails because\n of a missing resource (adapter) lookup.\n\n\n1.1.0 (2015-06-30)\n------------------\n\n- feature: check version before write the verisons and zrt-replace directives\n the the related files. This prevents that the less compiler get invoked for\n nothing because fo the modified zrt-replace.less file.\n\n- bugfix: fix i18n resource extraction\n\n\n1.0.0 (2015-06-29)\n------------------\n\n- feature: support pkg, file include in header option. This allows us to\n include files with generated zrt-replace arguments. One usecase for this new\n option is the new cdn extraction concept which is able to version each\n resource file based on subversion version or the related package version.\n This new concept generates a file including all the related zrt-replace.less\n rules.\n\n- feature: switch to json config file based minify script processing. This\n allows us to use larger headers and source files and isn't limited by\n cmd line length.\n\n- feature: added option for extract each resource with it's own version based\n on subversion version. See p01.cdn version 1.0.0 for support cdn resources.\n\n- feature: generate zrt-replace.less for extracted resources including all\n the related zrt-replace rules. This file can get included as header option\n in the p01.recipe.cdn:minify recipe\n\n\n0.5.7 (2015-03-17)\n------------------\n\n- bugfix: support missing parser instance. The parser was missing for show an\n error message, e.g. missing directory path\n\n\n0.5.6 (2014-06-10)\n------------------\n\n- extract: print the current layer\n\n\n0.5.5 (2014-05-08)\n------------------\n\n- bugfix: The skip option didn't work. Now you can define optional files by\n it's filename and the minify script will only include this skipped files\n and not minify the file source.\n\n- bugfix: The libs option didn't work. Now you can define different minify\n libraries for each file.\n\n\n0.5.4 (2013-11-13)\n------------------\n\n- Output the resource parameters when extract fails\n\n\n0.5.3 (2013-03-27)\n------------------\n\n- bugfix: use an empty list as default skip option and not None\n\n\n0.5.2 (2013-03-19)\n------------------\n\n- feature: support skip option in extract recipe. This allows to define a list\n of filenames thcih get not extracted to the output. This allows to skip the\n source files from get deployed to the cdn output folder.\n\n- feature: support slimit mangle, mangle_toplevel and cssmin wrap options. You\n can use them as slimit_mangle, slimit_mangle_toplevel and cssmin_wrap in your\n buildout.\n\n\n0.5.1 (2013-01-28)\n------------------\n\n- improve error handling, show traceback from executed method\n\n\n0.5.0 (2012-11-16)\n------------------\n\n- initial release",
"bugtrack_url": null,
"license": "ZPL 2.1",
"summary": "Content delivery network Concept supporting resource offload",
"version": "1.1.3",
"project_urls": {
"Homepage": "http://pypi.python.org/pypi/p01.recipe.cdn"
},
"split_keywords": [
"zope3",
"p01",
"recipe",
"cdn",
"content",
"delivery",
"network",
"minify",
"bundle",
"js",
"javascript",
"css"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "5bdcca868fb1a93f283239534432971321db3ab3c2045adc21298f3b1d25befd",
"md5": "295b31e5db0b68ccba35a255ac3dbe5b",
"sha256": "1cc5c5f804641c751070d3d7686730da5944d0e1f2709d7cbf120a5a497e36ad"
},
"downloads": -1,
"filename": "p01.recipe.cdn-1.1.3.tar.gz",
"has_sig": false,
"md5_digest": "295b31e5db0b68ccba35a255ac3dbe5b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 102888,
"upload_time": "2025-07-18T12:27:49",
"upload_time_iso_8601": "2025-07-18T12:27:49.412625Z",
"url": "https://files.pythonhosted.org/packages/5b/dc/ca868fb1a93f283239534432971321db3ab3c2045adc21298f3b1d25befd/p01.recipe.cdn-1.1.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-18 12:27:49",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "p01.recipe.cdn"
}