github webhooks
Project description
Install
$ [sudo] pip install github-webhooks
Config
$ export GITHUB_TOKEN="xxx"
>>> os.environ["GITHUB_TOKEN"] = "xxx"
Functions
function | __doc__ |
---|---|
github_webhooks.create(fullname, url, events=['push']) |
create repo webhook |
github_webhooks.delete(fullname, webhooks) |
delete repo webhooks by name or url |
github_webhooks.get(fullname) |
return list of repo webhooks data |
github_webhooks.names(fullname) |
return list of webhooks names |
github_webhooks.urls(fullname) |
return list of repo webhooks urls |
CLI
usage | __doc__ |
---|---|
python -m github_webhooks.create url ... |
create repo webhook(s) |
python -m github_webhooks.delete webhook ... |
delete all repo webhooks |
python -m github_webhooks.names |
print repo webhooks names |
python -m github_webhooks.urls |
print repo webhooks urls |
Examples
$ cd path/to/repo
$ python -m github_webhooks.create https://xxx.execute-api.us-east-1.amazonaws.com/run
$ python -m github_webhooks.names
web
$ python -m github_webhooks.urls
https://xxx.execute-api.us-east-1.amazonaws.com/run
$ python -m github_webhooks.delete "web"
Links
readme-md - README.md generator
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for github-webhooks-2019.2.16.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e7ba95953d1ef14ebd80192d75ad4ec6d1c52a2ca4f6e5ae3b425638f6df0e6 |
|
MD5 | fc2c8ed28f8c7f30919beb9e8d52ff88 |
|
BLAKE2b-256 | be965cb80bb28a53183898901ee1cc265a641994b4bf44074986559f1369a21d |
Close
Hashes for github_webhooks-2019.2.16-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d3c367ac4b6b9dcd882137af90183b6bec8b4059b20fe93782576add2c50922 |
|
MD5 | 18f96897d6e42cccecac8ea2d5793dbe |
|
BLAKE2b-256 | ea9c97e57f8182b358b9aa133e011b54e8cef8527ab042f3e9ee86667296dce4 |