Metadata-Version: 2.1
Name: go_to_github
Version: 0.0.15
Summary: `go_to_github` is a tool to test whether `github.com` is reachable right now. If not, it will work it out automatically.
Home-page: https://github.com/KateWang2016/go_to_github
Keywords: python, github, web connection, local host
Author: Kate Wang
Author-email: kate.wang2018@gmail.com
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Classifier: License :: OSI Approved :: MIT License
Requires-Dist: lxml
Requires-Dist: fake_user_agent
Requires-Dist: requests

`go_to_github` is a tool to test whether `github.com` is reachable right now. If not, it will work it out automatically.

# Notice
It might be in need for people who come from countries blocking github.
This project only applies to `macOS` and `Linux`.

# Usage
```python
sudo gotogithub

```
Don't forget `sudo`. Github ip will be updated if the program detects that you cannot connect to github.com. The update happens in your `/private/etc/hosts` file, which requires root user. 

Meanwhile, before any modification, your original hosts file will be copied to `~/.local/share/gotogithub/hosts`. If the program fails to connect to github in the end, it will restore the backup hosts file automatically to `/private/etc/hosts`.

# Installation
```python
pip install go_to_github
```



