Seriali - Deepstash

Bite-sized knowledge

to upgrade

your career

Ideas from books, articles & podcasts.

Seriali

  • Serialization means to convert an object into that string , and deserialization is its inverse operation (convert string -> object) .
  • When transmitting a student in a file, the student is required to be byte strings, but Pydntic(here Student) objects are seldom in this format. Serialization can convert these Pydantic objects into byte strings for such use. After the byte strings are transmitted, the receiver will have to recover the original object from the byte string. ref
  • We need JSON Serializable objects to provide HTTP Response.

STASHED IN:

1

  • pydantic class allows custom data types to be defined or we can extend validation with methods on a model decorated with the validator decorator
  • Here, The datatype of name, grade, roll, email, phone, subjects, friend...

2 Reactions

Comment

MORE LIKE THIS

created 5 ideas

Data validation using Pydantic in python

React

Comment

24 reads

created 3 ideas

Goal: To provide a simple way to get up and running a high-performance HTTP server that is easy to build, expand, and ultimately to scale.

React

Comment

129 reads

created 4 ideas

As I strive to become a better python programmer, I’ve started using type hints and created this intro guide

1

Comment

48 reads

It's time to

READ

LIKE

A PRO!

Jump-start your

reading habits

, gather your

knowledge

,

remember what you read

and stay ahead of the crowd!

Takes just 5 minutes a day.


TRY THE DEEPSTASH APP

+2M Installs

4.7 App Score