Skip to content

AmirHosseinCV/UpdateFromGithub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Keep your clients up to date by updating your projects from GitHub.

Installation

You can easily add UpdateFromGithub.py to your project and use it. But if you want to install it, you can use the following command:

pip install git+https://github.com/AmirHosseinCV/UpdateFromGithub.git

and for using without installation:

# using wget
wget https://raw.githubusercontent.com/AmirHosseinCV/UpdateFromGithub/main/UpdateFromGithub.py
# using curl
curl -o UpdateFromGithub.py https://raw.githubusercontent.com/AmirHosseinCV/UpdateFromGithub/main/UpdateFromGithub.py

Usage

from UpdateFromGithub import Repository
repo = Repository(repo_owner="AmirHosseinCV",
                  repo_name="UpdateFromGithub",
                  branch="main",
                  local_dir=".")
if repo.check_for_updates():
    repo.auto_update()

That's it!

About

Update projects automatically from GitHub

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages