From the course: Effective Serialization with Python

Unlock the full course today

Join today to access over 24,900 courses taught by industry experts.

Serialization formats overview

Serialization formats overview - Python Tutorial

From the course: Effective Serialization with Python

Serialization formats overview

- [Instructor] In this video, we'll go over some of the common serialization formats and discuss some of their properties. It won't be an extensive list, but the major players will make an appearance. In all of the examples, we look at the same data, which is a metric center server, such as Prometheus or Influx DB. It has time, which is a date-time sometimes called a timestamp, a name, which is a string, a value, which is a float, and labels, which is a dict. Pickle is a Python-only format. It can serialize almost any Python type, including your custom classes. Pickle is great for Python to Python communication. You don't need to worry about which types are supported. I know several large companies who use Pickle for internal communication. Since Pickle might use the built in evol function, during de-serialization, you need to be security-aware when using it. JSON is by far the most popular sterilization format…

Contents