An open API service indexing awesome lists of open source software.

https://github.com/zaghaghi/direct-json-import

import json files directly in your python scripts
https://github.com/zaghaghi/direct-json-import

import json python

Last synced: 10 months ago
JSON representation

import json files directly in your python scripts

Awesome Lists containing this project

README

          

# Install

Install from git repository
```bash
pip install git+https://github.com/zaghaghi/direct-json-import.git
```

# Use
With the following json in a file named `info.json`.
```json
{
"name": "hamed",
"lastname": "zaghaghi",
"repos": [
"https://github.com/zaghaghi/direct-json-import"
]
}
```

you can directly import it as follows
```python
import info

print(info.data)

# {'name': 'hamed', 'lastname': 'zaghaghi', 'repos': ['https://github.com/zaghaghi/direct-json-import']}
```

![](demo.gif)