Python 3 wrapper to push data to a GitHub repo using the GitHub contents api
Project description
Python 3 wrapper to push data to a GitHub repo using the GitHub contents api
Installation
pip install commitment
Platform Support
commitment is tested under Python 3.4, 3.5 and 3.6
Usage
Generate a GitHub API key: https://github.com/settings/tokens
from commitment import GitHubCredentials, GitHubClient
credentials = GitHubCredentials(
repo="myuser/somerepo",
branch='master',
name="myuser",
email="someone@example.com",
api_key="f00b42",
)
client = GitHubClient(credentials)
g.push_file('Hello World!', 'directory/filename.txt', 'my commit message')
Licensing
commitment is made available under the MIT License
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
commitment-1.0.0.tar.gz
(2.7 kB
view hashes)