Skip to main content

Concatenation plugin for Pylp

Project description

Information

pylpconcat is a plugin for Pylp that can concatenate file contents.

Installation

Install pylpconcat with pip:

pip install pylpconcat

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

python -m pip install pylpconcat

Usage

The usual use of pylpconcat is as follows:

import pylp
from pylpconcat import concat

pylp.task('scripts', lambda:
    pylp.src('lib/*.js')
      .pipe(concat('all.js'))
      .pipe(pylp.dest('dist'))
)

Moreover, you can specify the separator to add between files (\n by default):

import pylp
from pylpconcat import concat

pylp.task('scripts', lambda:
    pylp.src('lib/*.js')
      .pipe(concat('all.js', sep=';'))
      .pipe(pylp.dest('dist'))
)

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

pylpconcat-0.1.1-py3-none-any.whl (4.0 kB view hashes)

Uploaded Python 3

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