
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.
xpress9
Advanced tools
Xpress9-python is a lightweight wrapper for the Xpress9 compression library by Microsoft. This project provides a C extension along with a Cython wrapper, enabling efficient compression and decompression in Python.
Clone the repository and build the extension:
git clone https://github.com/Hugoberry/xpress9-python
cd xpress9
python setup.py build_ext --inplace
Alternatively, if the package is available on PyPI, install it with pip:
pip install xpress9
Below is a simple example demonstrating how to initialize the library, compress data, and then decompress it:
from xpress9 import Xpress9
# Initialize the wrapper
x = Xpress9()
print("Xpress9 initialized successfully!")
# Create some sample, compressible data (e.g., repetitive string)
original_data = b"Hello, world! " * 64
print(f"Original data size: {len(original_data)} bytes")
# Specify the maximum compressed size (adjust as needed)
max_compressed_size = len(original_data)
# Compress the data
compressed_data = x.compress(original_data, max_compressed_size)
print(f"Compressed data size: {len(compressed_data)} bytes")
# Decompress the data back to its original size
decompressed_data = x.decompress(compressed_data, len(original_data))
print(f"Decompressed data size: {len(decompressed_data)} bytes")
# Verify the integrity of the round-trip
if decompressed_data == original_data:
print("Data round-trip successful!")
else:
print("Data mismatch!")
This project is licensed under the MIT License.
FAQs
Python bindings for the Xpress9 compression library
We found that xpress9 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.