https://github.com/nvbn/import_from_github_com
Python module finder/loader from github, like in golang
https://github.com/nvbn/import_from_github_com
Last synced: 25 days ago
JSON representation
Python module finder/loader from github, like in golang
- Host: GitHub
- URL: https://github.com/nvbn/import_from_github_com
- Owner: nvbn
- License: mit
- Created: 2016-01-02T20:22:41.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-05-20T06:15:34.000Z (11 months ago)
- Last Synced: 2024-12-22T14:03:36.411Z (4 months ago)
- Language: Python
- Size: 3.91 KB
- Stars: 156
- Watchers: 6
- Forks: 14
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Import from `github_com` (Please don't use it)
Experimental Python module finder/loader from github, like in golang.
So, in golang we can import like:
```go
import "github.com/parnurzeal/gorequest"
```But in python we should install package by our hands:
```bash
pip install requests
```And import it like:
```python
import requests
```But with this magic package and power of [PEP-0302](https://www.python.org/dev/peps/pep-0302/) we can
do it automatically:```python
from github_com.kennethreitz import requestsassert requests.get('https://github.com/nvbn/import_from_github_com').status_code == 200
```## Installation
You should have git, Python 3.2+ and pip:
```bash
pip install import_from_github_com
```## License MIT
Project License can be found [here](LICENSE.md).