$npx skillfedfor your agent

serpent

Serialization based on ast.literal_eval

With conditionsPyPI Software DevelopmentReleased May 2026663.7K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — serpent-1.43-py3-none-any.whl
v1.43 · released 2026-05-30 · Python >=3.2

Yes, if you need safe, human-readable serialization and can accept the constraint that circular object references are not supported. The zero-dependency installation, active maintenance, permissive license, and lack of known vulnerabilities make it a solid choice for configuration, logging, and cross-language data exchange. Not suitable if you need binary efficiency or must serialize arbitrary object graphs.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.2 or later; cannot serialize object graphs (circular references will raise ValueError).
  • Low friction: pure Python wheel with no runtime dependencies.
  • Actively maintained with a recent release; last commit 2026-05-30 and status marked active.

License · maintenance · safety

MIT (permissive) — MIT license (permissive) means you can use, modify, and distribute serpent freely in commercial or private projects as long as you retain the copyright notice and license text.

last release 2026-05-30 (76 days) · last repo commit 2026-05-30 · 55 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 663,667 downloads/mo, #5,435 on PyPI

Verify before relying

import serpent

data = {'names': ['Alice', 'Bob'], 'count': 42}
ser_bytes = serpent.dumps(data)
obj = serpent.loads(ser_bytes)
  • Performance characteristics compared to alternative serialization formats in typical workloads.
  • Whether cross-language interoperability (Java and .NET) is actively maintained and tested.
  • Handling of very large objects or deeply nested structures in practice.
Same gist for agents: .md · .json

What it is and what it does

Serpent is a serialization library that converts Python objects into human-readable, executable Python source code (literals) that can be safely deserialized using ast.literal_eval(). Unlike pickle, which has known security risks, serpent produces text that is safe to transport over networks or store in files because it only recreates literal values—no arbitrary code execution occurs during deserialization.

The library extends basic repr() and literal_eval() by adding automatic serialization for types like uuid, datetime, array, and decimal, encoding bytes as base-64, and allowing pretty-printed output with comments. It's designed for scenarios where human readability, safety, and cross-platform compatibility matter more than performance. Serpent also has implementations in Java and .NET, enabling data exchange between Python, Java, and C# ecosystems.

Use it for

  • Serialize configuration or data files that humans need to read and edit while maintaining type safety.
  • Exchange structured data between Python, Java, and .NET services without security risks of pickle.
  • Store application state or cache data in a format that survives code changes and is auditable.
  • Debug and log complex object structures in a readable, executable format.
  • Build a lightweight data protocol for inter-process communication where JSON's type limitations are insufficient.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need safe, human-readable serialization and can accept the constraint that circular object references are not supported.

The zero-dependency installation, active maintenance, permissive license, and lack of known vulnerabilities make it a solid choice for configuration, logging, and cross-language data exchange. Not suitable if you need binary efficiency or must serialize arbitrary object graphs.

Install

serpent on PyPI

Before you install

Low friction: pure Python wheel with no runtime dependencies. Actively maintained with a recent release; last commit 2026-05-30 and status marked active.

Requires Python 3.2 or later; cannot serialize object graphs (circular references will raise ValueError).

License in practice

MIT license (permissive) means you can use, modify, and distribute serpent freely in commercial or private projects as long as you retain the copyright notice and license text.

Quickstart

import serpent

data = {'names': ['Alice', 'Bob'], 'count': 42}
ser_bytes = serpent.dumps(data)
obj = serpent.loads(ser_bytes)

Verify before relying

  • Performance characteristics compared to alternative serialization formats in typical workloads.
  • Whether cross-language interoperability (Java and .NET) is actively maintained and tested.
  • Handling of very large objects or deeply nested structures in practice.

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.2
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceActively maintained 76 days since the last release
Last repo commit
First released
Downloads663,667 / month, #5,435 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: PythonTopic :: Software Development

Evidence: serpent-1.43-py3-none-any.whl

Tags

Capabilities
python object serializationast.literal_eval serializersafe data serializationcross-language serializationhuman-readable serialization formatpython to bytes serializationliteral eval based serialization
Topics
serializationcross-languagesafe-deserialization
PyPI keywords
serialization

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “ast.literal_eval serializer”

  • serpentSerpent serializes Python objects to human-readable, safe literals…
  • djangorestframework-dataclassesAutomatically generates Django REST Framework serializers from Python…
  • drf-pydanticBridges pydantic models and Django REST framework by automatically…

Give your agent the search over MCP, or paste the wish link into any chat.

More Software Development packages

typing-extensions Worth it
PyPI · Software Development · released Jul 2026

Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.

PSF-2.0pure Python · 3.9+
1.9Bdownloads / mo
numpy Worth it
PyPI · Software Development · released Aug 2026

NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.

BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0compiled wheel · 3.12+
1.1Bdownloads / mo
fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
annotated-doc With conditions
PyPI · Software Development · released Jul 2026

Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.

MITpure Python · 3.9+
456.2Mdownloads / mo
typer Worth it
PyPI · Software Development · released Aug 2026

Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.

Install it if you are building CLIs in Python.

MITpure Python · 3.10+
369.3Mdownloads / mo
distlib With conditions
PyPI · Software Development · released Jun 2026

Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.

permissive licensepure Python
323.3Mdownloads / mo

See also phpserialize · renew · yamlable · dicttoxml · xml-python · orjson · lkml · py-serializable · marshmallow · numpyencoder