https://github.com/biojulia/libz.jl

Fast, flexible zlib bindings.

https://github.com/biojulia/libz.jl

Science Score: 10.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    1 of 17 committers (5.9%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (12.4%) to scientific vocabulary

Keywords

gzip julia zlib

Keywords from Contributors

julialang programming-language numerical genomics data-frame dataframes biology bioinformatics tabular-data biojulia
Last synced: 5 months ago · JSON representation

Repository

Fast, flexible zlib bindings.

Basic Info
  • Host: GitHub
  • Owner: BioJulia
  • License: other
  • Language: Julia
  • Default Branch: master
  • Homepage:
  • Size: 122 KB
Statistics
  • Stars: 27
  • Watchers: 14
  • Forks: 17
  • Open Issues: 10
  • Releases: 0
Topics
gzip julia zlib
Created over 10 years ago · Last pushed about 6 years ago
Metadata Files
Readme Contributing License Code of conduct

README.md

Build Status Build status codecov.io

NOTE: If you are starting a new project on Julia 0.6 or later, it is recommended to use the CodecZlib.jl package instead. CodecZlib.jl and other packages offer more unified interfaces for a wide range of file formats.

This is yet another zlib interface for Julia. It's intended to replace the two prior zlib packages.

Both have shortcomings that this package aims to address, specifically:

  • Zlib.jl is very slow.
  • GZip.jl is not as slow as Zlib.jl, but still slower than it could to be.
  • GZip.jl only supports file I/O.
  • GZip.jl doesn't support reading/writing plain zlib data.

API

This library exports four stream types:

Type | Description ------| --------------- ZlibInflateOutputStream | write and decompress data ZlibDeflateOutputStream | write and compress data ZlibInflateInputStream | read and decompress data ZlibDeflateInputStream | read and compress data

These work like regular IO objects. Each takes as a parameter either in input or output source.

Examples

```julia

read lines from a compressed file

for line in eachline(open("data.txt.gz") |> ZlibInflateInputStream) # do something... end

write compressed data to a file

io = open("data.txt.gz", "w") stream = ZlibDeflateOutputStream(io) for c in rand(UInt8, 10000) write(stream, c) end close(stream) # this closes not only stream but also io

pointlessly compress and decompress some data (use read on v0.5)

readbytes(rand(UInt8, 10000) |> ZlibDeflateInputStream |> ZlibInflateInputStream) ```

Other functions

There are convenience Libz.inflate(::Vector{UInt8}) and Libz.deflate(::Vector{UInt8}) functions that take a byte array and return another compressed or decompressed byte array.

Checksum functions are exposed as Libz.crc32(::Vector{UInt8}) and Libz.adler32(::Vector{UInt8}).

See BufferedStreams.jl for benchmarks of this library.

Low-level APIs are defined in src/lowlevel.jl. These constants and functions are not exported but available if necessary. At the moment, function wrappers are minimal but feel free to add and send functions you need as pull requests.

Owner

  • Name: BioJulia
  • Login: BioJulia
  • Kind: organization

Bioinformatics and Computational Biology in Julia

GitHub Events

Total
Last Year

Committers

Last synced: 8 months ago

All Time
  • Total Commits: 81
  • Total Committers: 17
  • Avg Commits per committer: 4.765
  • Development Distribution Score (DDS): 0.679
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Kenta Sato b****5@g****m 26
Daniel Jones d****s@c****u 23
Sam O'Connor s****m@o****u 6
Mus M m****m@o****m 4
Yichao Yu y****2@g****m 4
Ben J. Ward b****d@p****m 3
Elliot Saba s****t@g****m 2
Andreas Noack a****n@g****m 2
Ben J. Ward w****0@g****m 2
Gunnar Farnebäck g****r@l****e 2
Ben J. Ward a****0@g****m 1
Jon Malmaud m****d@g****m 1
Julian Gehring j****g@g****m 1
femtocleaner[bot] f****] 1
Tony Kelman t****y@k****t 1
Kevin Murray k****1 1
femtotrader f****r@g****m 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 27
  • Total pull requests: 42
  • Average time to close issues: 2 months
  • Average time to close pull requests: 21 days
  • Total issue authors: 23
  • Total pull request authors: 15
  • Average comments per issue: 3.0
  • Average comments per pull request: 3.02
  • Merged pull requests: 41
  • Bot issues: 0
  • Bot pull requests: 1
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • quinnj (3)
  • sfchen (2)
  • robertfeldt (2)
  • tpapp (1)
  • davidanthoff (1)
  • jnmaloof (1)
  • jakobnissen (1)
  • SabrinaJaye (1)
  • dcjones (1)
  • tlnagy (1)
  • StephenVavasis (1)
  • hpoit (1)
  • hayd (1)
  • kdm9 (1)
  • ylxdzsw (1)
Pull Request Authors
  • bicycle1885 (17)
  • yuyichao (4)
  • musm (4)
  • GunnarFarneback (2)
  • andreasnoack (2)
  • staticfloat (2)
  • samoconnor (2)
  • SabrinaJaye (2)
  • Hydrotoast (1)
  • malmaud (1)
  • femtocleaner[bot] (1)
  • kdm9 (1)
  • tkelman (1)
  • juliangehring (1)
  • femtotrader (1)
Top Labels
Issue Labels
enhancement (2) priority: soon (1) stage: planning (1)
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • julia 153 total
  • Total dependent packages: 7
  • Total dependent repositories: 38
  • Total versions: 3
juliahub.com: Libz

Fast, flexible zlib bindings.

  • Versions: 3
  • Dependent Packages: 7
  • Dependent Repositories: 38
  • Downloads: 153 Total
Rankings
Dependent repos count: 1.0%
Dependent packages count: 7.8%
Forks count: 8.7%
Average: 9.2%
Stargazers count: 19.2%
Last synced: 6 months ago