Install from git repository
pip install git+https://github.com/zaghaghi/direct-json-import.git
With 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']}