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
- text
- We have implemented the json file storage and retrieval Refer Here
File handling in python
- Refer Here for file handling operations
- With statement
Dataclasses
Python External libraries or packages
- Explore pypi
- Virtual Environments in Python
- Refer Here for changes done with external library to use student details with yaml
