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.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

pylpchanged-0.1.1-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file pylpchanged-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pylpchanged-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6277aabfe77a174ae52c1f60ff40f872831b96971841a57fb97bb5902ba19e26
MD5 e445d11444f37e65986d7c6c3da38ac3
BLAKE2b-256 46fe7baafc12c863ee417b2d3b236545817cc83663f407ef79f098d9d2d13579

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page