
Research
2025 Report: Destructive Malware in Open Source Packages
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.
serpyco
Advanced tools
Serpyco is a serialization library for Python 3.6+ dataclasses <https://docs.python.org/3/library/dataclasses.html>_ that works just by defining your dataclasses:
.. code-block:: python
import dataclasses
import typing
import serpyco
@dataclasses.dataclass
class Example(object):
name: str
num: int
tags: typing.List[str]
serializer = serpyco.Serializer(Example)
result = serializer.dump(Example(name="foo", num=2, tags=["hello", "world"]))
print(result)
{'name': 'foo', 'num': 2, 'tags': ['hello', 'world']}
Serpyco works by analysing the dataclass fields and can recognize many types : List, Set, Tuple, Optional, Union... You can also embed other dataclasses in a definition.
The main use-case for Serpyco is to serialize objects for an API, but it can be helpful whenever you need to transform objects to/from builtin Python types.
Serpyco is tested for Python versions 3.8 to 3.12.
Serpyco is best installed via pip:
.. code-block:: shell
pip install serpyco
It has only 3 (4 with python 3.6 dataclasses backport) dependencies:
Documentation <https://sgrignard.gitlab.io/serpyco/docs>_API Reference <https://sgrignard.gitlab.io/serpyco/docs/api.html>_Serpyco is written using Python <https://www.python.org>_ and Cython <https://www.cython.org>_ for parts needing speed.
Issue tracker <https://gitlab.com/sgrignard/serpyco/issues>_Source code <https://gitlab.com/sgrignard/serpyco>_FAQs
Fast serialization of dataclasses using Cython
We found that serpyco 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.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.

Research
/Security News
A five-month operation turned 27 npm packages into durable hosting for browser-run lures that mimic document-sharing portals and Microsoft sign-in, targeting 25 organizations across manufacturing, industrial automation, plastics, and healthcare for credential theft.