TranscodingStreams.jl icon indicating copy to clipboard operation
TranscodingStreams.jl copied to clipboard

Add open for composed transcodingstreams

Open jakobnissen opened this issue 4 years ago • 4 comments

This allows users to easily chain codecs using the do-syntax. Here is an example where the input is chained through four different streams.

julia> using CodecZlib, TranscodingStreams

julia> open(
           i -> first(read(i, String), 10),
           GzipDecompressorStream ∘ NoopStream ∘ GzipCompressorStream ∘ NoopStream,
           "Project.toml"
       )
"name = \"Tr"

jakobnissen avatar Sep 15 '21 15:09 jakobnissen

I'll add tests if anyone with the permission to merge gives me the thumbs-up :)

jakobnissen avatar Sep 15 '21 15:09 jakobnissen

@jakobnissen If helpful and if you are interested, I can give you commit access here.

ViralBShah avatar Aug 17 '23 20:08 ViralBShah

This still needs a test.

mkitti avatar Aug 18 '23 11:08 mkitti

This still needs a test.

Agree.

ViralBShah avatar Aug 18 '23 12:08 ViralBShah