Install from git repository
pip install git+https://github.com/zaghaghi/direct-json-import.gitWith the following json in a file named info.json.
{
"name": "hamed",
"lastname": "zaghaghi",
"repos": [
"https://github.com/zaghaghi/direct-json-import"
]
}you can directly import it as follows
import info
print(info.data)
# {'name': 'hamed', 'lastname': 'zaghaghi', 'repos': ['https://github.com/zaghaghi/direct-json-import']}