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
Release history Release notifications | RSS feed
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
File details
Details for the file pylpconcat-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: pylpconcat-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0df02a277d5ecdaa8dbd66ea969e41744c348a8d3477d8663c08b1b0a4ebbee4 |
|
MD5 | eb2b89cbd4b8c45d733abb2dd06f8342 |
|
BLAKE2b-256 | 6b81919ac90464b46d6205c69363ed65a71b981cdebdddcf630dcc332d827620 |