Python Classroom notes 21/Dec/2024

Python

Managing files with Python

  • We have written a simple student details store Refer Here
  • This application stores the values in a dictionary and fetches them
  • Problem with this approach is storage is temporary (exists as long as application runs)
  • To store the student details we need to store the data to external storage which is considered as persistence
  • Options:
    • file
    • database
  • Lets consider file as a option for now.
  • Which format?
    • text
      • txt
      • csv
      • json
      • yaml
      • xlsx
    • binary
  • We have implemented the json file storage and retrieval Refer Here

File handling in python

Dataclasses

Python External libraries or packages

Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a ReplyCancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Plugin for Social Media by Acurax Wordpress Design Studio

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Exit mobile version
%%footer%%