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.

Files for pylpconcat, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size pylpconcat-0.1.1-py3-none-any.whl (4.0 kB) File type Wheel Python version py3 Upload date Hashes View hashes

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 DigiCert DigiCert EV certificate StatusPage StatusPage Status page