Skip to main content

A Pylp plugin for filtering unchanged files

Project description

Information

pylpchanged is a plugin for Pylp that filter unchanged files.

Note: this plugin cannot filter unchanged files with a name transformed by another plugin further into the stream (pylprename for example).

Installation

Install pylpchanged with pip:

pip install pylpchanged

If you don’t have Python Scripts folder in your PATH, you can run also:

python -m pip install pylpchanged

Usage

The usual use of pylpchanged is as follows:

import pylp
from pylpchanged import pylpchanged

pylp.task('default', lambda:
    pylp.src('lib/*.py')
      .pipe(changed())
    # .pipe(another_plugin())
      .pipe(pylp.dest('build'))
)
Without parameters, pylpchanged will wait for the destination stream (i.e. pylp.dest) to compare the last result with the source files.

For a faster execution, you can pass directly the destination path like this:
import pylp
from pylpchanged import pylpchanged

pylp.task('default', lambda:
    pylp.src('lib/*.py')
      .pipe(changed('build'))
    # .pipe(another_plugin())
      .pipe(pylp.dest('build'))
)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
pylpchanged-0.1.1-py3-none-any.whl (4.6 kB) Copy SHA256 hash SHA256 Wheel py3 Aug 28, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page