
Security News
The Nightmare Before Deployment
Season’s greetings from Socket, and here’s to a calm end of year: clean dependencies, boring pipelines, no surprises.
ncompress
Advanced tools
LZW compression and decompression in Python and C++.
Ported with minimal changes from the (N)compress CLI tool.
Wheels are available for Python 3.8+ and all operating systems on PyPI.
pip install ncompress
Functions compress() and decompress() are available with the following inputs/outputs:
bytes → bytesBytesIO → bytesBytesIO, BytesIO → Nonebytes, BytesIO → NoneThe BytesIO-based functions are slightly (about 15%) faster due to avoiding a copy of the contents on bytes⇄std::string conversion.
The core functionality has been adapted from vapier/ncompress.
All modifications and additions are released under the Unlicense.
The base (N)compress code has been released into the public domain.
The BytesIO wrapper in pystreambuf.h has been adapted from the cctbx project and is licensed under the Lawrence Berkeley National Labs BSD variant license.
See the linked file for details.
FAQs
LZW compression and decompression
We found that ncompress demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Season’s greetings from Socket, and here’s to a calm end of year: clean dependencies, boring pipelines, no surprises.

Research
/Security News
Impostor NuGet package Tracer.Fody.NLog typosquats Tracer.Fody and its author, using homoglyph tricks, and exfiltrates Stratis wallet JSON/passwords to a Russian IP address.

Security News
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.