
Security Fundamentals
Turtles, Clams, and Cyber Threat Actors: Shell Usage
The Socket Threat Research Team uncovers how threat actors weaponize shell techniques across npm, PyPI, and Go ecosystems to maintain persistence and exfiltrate data.
Pcodec is a codec for numerical sequences. Example usage:
>>> from pcodec import standalone, ChunkConfig
>>> import numpy as np
>>>
>>> np.random.seed(0)
>>> nums = np.random.normal(size=1000000)
>>>
>>> # compress
>>> compressed = standalone.simple_compress(nums, ChunkConfig())
>>> print(f'compressed to {len(compressed)} bytes')
compressed to 6946258 bytes
>>>
>>> # decompress
>>> recovered = standalone.simple_decompress(compressed)
>>>
>>> np.testing.assert_array_equal(recovered, nums)
For pcodec's uses, design, and benchmarks, see the main repo.
At the moment, we don't have sphinx + a website set up, so run help(pcodec)
(or whatever module name) in Python to read pcodec's documentation.
FAQs
Good compression for numerical sequences
We found that pcodec 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 Fundamentals
The Socket Threat Research Team uncovers how threat actors weaponize shell techniques across npm, PyPI, and Go ecosystems to maintain persistence and exfiltrate data.
Security News
At VulnCon 2025, NIST scrapped its NVD consortium plans, admitted it can't keep up with CVEs, and outlined automation efforts amid a mounting backlog.
Product
We redesigned our GitHub PR comments to deliver clear, actionable security insights without adding noise to your workflow.