https://github.com/yuen-wee-kin-edwin/github-backup
Github Repo Backup.
https://github.com/yuen-wee-kin-edwin/github-backup
backup github python
Last synced: about 1 month ago
JSON representation
Github Repo Backup.
- Host: GitHub
- URL: https://github.com/yuen-wee-kin-edwin/github-backup
- Owner: Yuen-Wee-Kin-Edwin
- License: mit
- Created: 2024-12-15T05:45:01.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-08-02T13:00:59.000Z (11 months ago)
- Last Synced: 2025-08-02T14:38:28.590Z (11 months ago)
- Topics: backup, github, python
- Language: Python
- Homepage:
- Size: 34.2 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
1. Setup [GitHub CLI](https://cli.github.com/)
Ensure that you are login to your GitHub account in the CLI.
2. Install [Python](https://www.python.org/downloads/)
Ensure that the `Add python.exe to PATH` is checked
3. Setup python virtual environment.
```ps
// Install virtualenv package
pip install virtualenv
// Create a virtual environment.
python -m venv .venv
// Activate virtual environment
.\venv\Scripts\activate
// Install required packages
pip install -r requirements.txt
// Deactivate virtual environment
deactivate
```
4. Create the executable file.
```ps
pyinstaller --onefile ./main.py
pyinstaller --onefile --windowed --name github_backup ./main.py
```
5. Run the backup.exe
The file is located at dist/backup.exe
Running tests
```ps
python -m unittest discover -s tests
```