Giter Site home page Giter Site logo

kapil-malviya / serialization-deserialization Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 2.0 16 KB

Serialization refers to the process of converting a data object (e.g., Python objects ) into a format (e.g., JSON ) that allows us to store or transmit the data and then recreate the object when needed using the reverse process of deserialization

Python 100.00%

serialization-deserialization's Introduction

Serialization and Deserialization in Python

Welcome to the serialization-deserialization in Python repository! This repository contains a collection of codes and explanations related to the concepts of serialization and deserialization in Python. We explore the usage of the json module for JSON serialization and deserialization, as well as pickling and unpickling objects using Python's pickle module.

Table of Contents

Introduction

Serialization is the process of converting complex data structures, such as objects, dictionaries, or lists, into a format that can be easily stored or transmitted. Deserialization, on the other hand, involves reconstructing the original data structure from the serialized format.

In this repository, we explore two common methods of serialization and deserialization:

  1. JSON Serialization and Deserialization: We demonstrate how to use Python's built-in json module to serialize Python objects into JSON format and deserialize JSON data back into Python objects.

  2. Pickling and Unpickling: We delve into pickling, a Python-specific serialization process, using the pickle module. Pickling allows you to serialize and deserialize Python objects, maintaining their state.

Usage

Each subdirectory within this repository contains Python scripts that demonstrate specific serialization and deserialization concepts. To run these examples, follow these steps :

  1. Clone the repository:

    git clone https://github.com/kapil-malviya/serialization-deserialization.git
  2. Navigate to the desired subdirectory:

    cd serialization-deserialization/json-module-for-serialization
  3. Run the Python script:

    python3 serialize.py

Contributing

Contributions to this repository are welcome! If you'd like to add more examples, improve existing ones, or fix issues, please open a pull request.


serialization-deserialization's People

Contributors

kapil-malviya avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.