I have below file
file.py
data = {
"SerialNumber": 1234,
"ActualCount": "TY"
}
In app.py I can easily import this file and can call the dictionary like below:
app.py
import file as file
print(file.data['SerialNumber'])
Is there any type of parser available which can parse this dict objects and then we can get its items like below:
print(file.data.SerialNumber)
print(file.data.ActualCount)