Skip to main content

github repo management

Project description


$ [sudo] pip install github-repo


$ export GITHUB_TOKEN="xxx"
$ cd path/to/repo
>>> os.environ["GITHUB_TOKEN"]="xxx"
>>> os.chdir("path/to/repo")


function __doc__
github_repo.create() create github repo
github_repo.fullname() return fullname (owner/repo) string
github_repo.request(method, url, data=None, **kwargs) requests.request
github_repo.description.get() return repo description
github_repo.description.update(description) update repo description
github_repo.homepage.get() return repo homepage
github_repo.homepage.update(url) update repo homepage
github_repo.remote.add(name, url) git remote add name url
github_repo.remote.get() return git remote tuple (name, url) return git remote name
github_repo.remote.rm() git remote rm name
github_repo.remote.url() return git remote url
github_repo.topics.add(topics) add topics
github_repo.topics.get() return topics list
github_repo.topics.update(topics) replace all topics


usage __doc__
python -m github_repo.browse open github repo in browser
python -m github_repo.create create github repo
python -m github_repo.description [description] get/update description
python -m github_repo.fullname print fullname (owner/repo)
python -m github_repo.homepage [url] get/update homepage
python -m print git remote name
python -m github_repo.remote.rm git remote rm name
python -m github_repo.remote.url print git remote url
python -m github_repo.topics.add topic ... add topics to repository
python -m github_repo.topics.get print repository topics
python -m github_repo.topics.rm remove repository topics
python -m github_repo.topics.update topic ... repository topics


$ git remote add github
$ python -m
$ python -m github_repo.remote.url
$ python -m github_repo.fullname

$ python -m github_repo.remote.rm  # git remote rm github
$ python -m github_repo.description "new description"
$ python -m github_repo.description
new description
$ python -m github_repo.homepage ""
$ python -m github_repo.homepage
$ python -m github_repo.topics.add "python" "pypi"
$ python -m github_repo.topics.get
$ python -m github_repo.topics.update "node" "npm"
$ python -m github_repo.topics.rm
>>> github_repo.remote.add("github","")
>>> github_repo.remote.get() or (None, None)
('github', '')
>>> github_repo.remote.url()
>>> github_repo.fullname()

>>> github_repo.remote.rm()
>>> github_repo.description.update('new description')
>>> github_repo.description.get()
'new description'
>>> github_repo.homepage.update('')
>>> github_repo.homepage.get()
>>> github_repo.topics.add(['python','pypi'])
>>> github_repo.topics.get()
>>> github_repo.topics.replace(['node','npm'])
>>> github_repo.topics.rm()

readme-md - generator

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for github-repo, version 2019.2.23
Filename, size File type Python version Upload date Hashes
Filename, size github_repo-2019.2.23-py2.py3-none-any.whl (10.0 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size github-repo-2019.2.23.tar.gz (3.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page