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 details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for pylpconcat-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0df02a277d5ecdaa8dbd66ea969e41744c348a8d3477d8663c08b1b0a4ebbee4
MD5 eb2b89cbd4b8c45d733abb2dd06f8342
BLAKE2b-256 6b81919ac90464b46d6205c69363ed65a71b981cdebdddcf630dcc332d827620

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