Dynamic asset mutation for Pyramid. Easily adds support for popular asset metalanguages such as CoffeeScript, SASS, SCSS, LESS, Dart, TypeScript, etc.
Project description
Synopsis
Pyramid AssetMutator provides simple and dynamic asset mutation (also known as compiling or piping) for your Pyramid applications.
Inspired by other more powerful asset management packages, its goal is to provide a basic and straightforward mechanism for asset compilation (e.g. CoffeeScript/LESS), minification (e.g. jsmin), and optimization (e.g. pngcrush).
As of version 0.3, it also adds experimental support for template language parsing (e.g. you could use view helpers like request.route_url() in your CoffeeScript by installing the pyramid_jinja2 package and using application.coffee.jinja2 as the asset source filename).
Installation
To install, simply:
pip install pyramid_assetmutator
Documentation
You can read the documentation at: https://pyramid-assetmutator.readthedocs.io/
Known Issues and Limitations
Experimental support for Py3k/pypy.
Doesn’t clean up after itself (compiled/mutated assets aren’t removed automatically).
Mutator “commands” must print to stdout (see the documentation for more info).
Hopefully obvious, but you have to actually have the specified compiler command installed and accessible from your working path in order for it to work.
Disclaimers and Warnings
This is Alpha software–use at your own risk!
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Latest Changes
v0.4 – 09/16/2016
Fixed a bug where mutated files could be created with incorrect filenames if the each_boot setting was enabled with a remutate_check value of mtime or checksum.
Fixed a Windows bug due to shlex.split usage (thanks @tdamsma).
Added a purge_mutated_path setting which can be used to remove all files from a specified mutated_path upon application boot.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pyramid_assetmutator-0.4.tar.gz
.
File metadata
- Download URL: pyramid_assetmutator-0.4.tar.gz
- Upload date:
- Size: 13.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 604f2eb42cc4bcb8ef728b3192ef0b572c3da9c84de0f007de4ee71b342c0d5a |
|
MD5 | 70a7c4d22bcd9cce84974ba6b490e713 |
|
BLAKE2b-256 | 22fce5e6fc69b289506b4cde5f37b1312c188a110223551e509cea9c5c7b8c5e |
File details
Details for the file pyramid_assetmutator-0.4-py2.py3-none-any.whl
.
File metadata
- Download URL: pyramid_assetmutator-0.4-py2.py3-none-any.whl
- Upload date:
- Size: 14.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28e9af986e77a371a165b457b258ef47969ddedf6cfa5e7e3c53d9e9e25d77ce |
|
MD5 | bba30b5f794ea6d9a21973534b32f27f |
|
BLAKE2b-256 | f770030f8ebd700dd76b4db2282c6afab0025bcc201230252313d73c7684f971 |