0.15.4 • Published 3 years ago

kpipe v0.15.4

Weekly downloads
1
License
MIT
Repository
github
Last release
3 years ago

kpipe

This kpipe module combines the current versions of the main core modules of the kpipe data processing system. Including this module in a project will enable the project to use the base kpipe functionality without managing dependencies of the individual modules.

The modules included are:

ModuleDescription
kpipe-coreStorage backends and basic readable and writable stream implementations.
kpipe-streamsA set of low-level node transform streams to perform basic data conversion tasks such as compression, JSON translation, delineation, etc.
kpipe-sequenceProvides an enhanced node pipeline running as a promise as well as tools to sequence a list of promisified actions.
kpipe-urlDefines and supports a URL syntax for the kpipe stream backends. It automatically pipes together appropriate streams to deliver data in a particular format to/from a kpipe storage backend.

kpipe-core

Support for reading and writing to storage backends using standard node streams.

Supported backends:

BackendDescription
stdio
fs
s3
kafka
buffer
random
FunctionDescription
Reader
Writer
KafkaProducer
KafkaAdmin

kpipe-streams

Supported transforms:

TransformDescription
LineateAdd newlines to incoming strings and pack into a buffer
DelineateSplit buffer into individual strings delimited by newlines
JSONParseParse an incoming JSON string into a JavaScript object
JSONStringifyGenerate a JSON string from incoming JavaScripts objects
GzipCompress a buffer stream using the zlib library
GunzipDecompress a buffer stream using the zlib library
SnappyCompressCompress a buffer with snappy
SnappyDecompressDecompress a buffer with snappy

kpipe-sequence

PipelinePromise

PromiseChain


kpipe-url

Translate URL-like paths into Kpipe backend stream generators.

PatternBackendDescription
stdio:// -stdio
fs://path/file.ext file://path/file.extfs
s3://bucket(/prefix)/file.exts3
kafka://topic(/partition(/offset))kafka
FunctionDescription
readerUrlReturn a Reader stream generator given a kpipe url
readStreamUrlReturn a readable stream given a kpipe url
writerUrlReturn a Writer stream generator given a kpipe url
writeStreamUrlReturn a writable stream given a kpipe url
urlInStreamsGiven a kpipe url, return a readable stream which transforms backend data into the supplied content format (buffer, strings, or json)
urlOutStreamsGiven a kpipe url, return a writable stream which transforms data from the supplied content format (buffer, strings, or json) to a kpipe backend
urlOutMultiplexSpecial case of urlOutStreams which splits the incoming stream into one or more destination streams
urlPipelineGiven an input URL, some transforms, and an output URL, return a promisified pipeline which performs a data conversion task
urlPipelineSortedGiven an input URL, some transforms, and an output URL, return a promisified pipeline which first sorts the entire incoming dataset and then performs a data conversion task
parseUrlHelper function returns the parsed components of a kpipe url
contentModifiersHelper function returns an array of transforms to convert streams from one of the three content types (buffer, strings, or json) into another content type.
compressExtHelper function returns a transform stream (or passthrough) which compresses content according to a supplied filename extension
decompressExtHelper function returns a transform stream (or passthrough) which decompresses content according to a supplied filename extension
0.15.4

3 years ago

0.15.3

3 years ago

0.15.0

3 years ago

0.15.1

3 years ago

0.15.2

3 years ago

0.14.3

3 years ago

0.14.4

3 years ago

0.14.2

3 years ago

0.14.0

3 years ago

0.14.1

3 years ago

0.13.6

3 years ago

0.13.5

3 years ago

0.13.3

3 years ago

0.13.4

3 years ago

0.13.1

3 years ago

0.13.2

3 years ago

0.13.0

3 years ago

0.12.3

3 years ago

0.12.2

3 years ago

0.12.1

3 years ago

0.12.0

3 years ago

0.11.0

3 years ago

0.11.1

3 years ago

0.10.3

3 years ago

0.10.1

4 years ago

0.10.2

4 years ago

0.10.0

4 years ago

0.9.3

4 years ago

0.9.2

4 years ago

0.9.1

4 years ago

0.0.1

5 years ago