{ "info": { "author": "chris48s", "author_email": "", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "# commitment\n\n[![Build Status](https://travis-ci.org/chris48s/commitment.svg?branch=master)](https://travis-ci.org/chris48s/commitment)\n[![Coverage Status](https://coveralls.io/repos/github/chris48s/commitment/badge.svg?branch=master)](https://coveralls.io/github/chris48s/commitment?branch=master)\n![PyPI Version](https://img.shields.io/pypi/v/commitment.svg)\n![License](https://img.shields.io/pypi/l/commitment.svg)\n![Python Support](https://img.shields.io/pypi/pyversions/commitment.svg)\n![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)\n\nAn incomplete Python 3 wrapper for the [GitHub API](https://developer.github.com/v3/).\n\nNote this project does not aim to provide a complete abstraction over the GitHub API - just a few high-level convenience methods for pushing data to a GitHub repo.\n\n## Installation\n\n`pip install commitment`\n\n## Usage\n\nGenerate a GitHub API key: https://github.com/settings/tokens\n\n```python\nfrom commitment import GitHubCredentials, GitHubClient\n\ncredentials = GitHubCredentials(\n repo=\"myuser/somerepo\",\n name=\"myuser\",\n email=\"someone@example.com\",\n api_key=\"f00b42\",\n)\n\nclient = GitHubClient(credentials)\n\nclient.create_branch('my_new_branch', base_branch='master')\nclient.push_file('Hello World!', 'directory/filename.txt', 'my commit message', branch='my_new_branch')\nclient.open_pull_request('my_new_branch', 'title', 'body', base_branch='master')\n```\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/chris48s/commitment", "keywords": "", "license": "MIT", "maintainer": "chris48s", "maintainer_email": "", "name": "commitment", "package_url": "https://pypi.org/project/commitment/", "platform": "", "project_url": "https://pypi.org/project/commitment/", "project_urls": { "Homepage": "https://github.com/chris48s/commitment", "Repository": "https://github.com/chris48s/commitment" }, "release_url": "https://pypi.org/project/commitment/2.0.2/", "requires_dist": [ "requests (>=2.0.0,<3.0.0)" ], "requires_python": ">=3.4,<4.0", "summary": "An incomplete Python 3 wrapper for the GitHub API", "version": "2.0.2" }, "last_serial": 6000760, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "9dd2e1eff014dfae0ed4af9fdcb45153", "sha256": "584679b373d5d20295c132c686fa33b05985c503f3a6f61730a0ced41a348118" }, "downloads": -1, "filename": "commitment-1.0.0.tar.gz", "has_sig": false, "md5_digest": "9dd2e1eff014dfae0ed4af9fdcb45153", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2740, "upload_time": "2017-10-29T15:52:50", "url": "https://files.pythonhosted.org/packages/f3/47/4e1374d7e1d862a8c701264cb3aceac9a5113c294f3aeec9f3ebc7dc3a20/commitment-1.0.0.tar.gz" } ], "2.0.0": [ { "comment_text": "", "digests": { "md5": "99349d49f794552b8433caaabba90162", "sha256": "c6f257a414a7e049251530a6e8d8e83bd29337aed240319ea2b1aa53a69c1c79" }, "downloads": -1, "filename": "commitment-2.0.0.tar.gz", "has_sig": false, "md5_digest": "99349d49f794552b8433caaabba90162", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3262, "upload_time": "2018-02-17T15:34:19", "url": "https://files.pythonhosted.org/packages/5b/f1/4422969e6c438568c486d727876addbc96abe0958ba0c54cad414b466209/commitment-2.0.0.tar.gz" } ], "2.0.1": [ { "comment_text": "", "digests": { "md5": "d24ce4159144267451143481e996a7fa", "sha256": "158a6de8f01b27485198c5c390d2972d51dc73d3a29ebb2722d408452ed33878" }, "downloads": -1, "filename": "commitment-2.0.1.tar.gz", "has_sig": false, "md5_digest": "d24ce4159144267451143481e996a7fa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3290, "upload_time": "2018-12-02T22:09:29", "url": "https://files.pythonhosted.org/packages/98/16/5a96813215969594a61493526c5ca2c8f2183b13f9c09a10416134acffd8/commitment-2.0.1.tar.gz" } ], "2.0.2": [ { "comment_text": "", "digests": { "md5": "7f00a4113426964f8825cecbd7ac33fd", "sha256": "fdfb6cd5e44dde900a7a1d7e3215bb5c07589568b3a5403583a6b6f5c99e83d7" }, "downloads": -1, "filename": "commitment-2.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "7f00a4113426964f8825cecbd7ac33fd", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.4,<4.0", "size": 4291, "upload_time": "2019-10-19T19:07:54", "url": "https://files.pythonhosted.org/packages/7b/c3/3d624f891a1052d2d71bb286df491d7d3363bbf592107a0f64f3b2338931/commitment-2.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5bdc5f4a7bf996bd285e6122dc240151", "sha256": "6b1d4ea6013df99786794c3a5ba8dd46d87f2ac84f0569c09131dcec273f75dd" }, "downloads": -1, "filename": "commitment-2.0.2.tar.gz", "has_sig": false, "md5_digest": "5bdc5f4a7bf996bd285e6122dc240151", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4,<4.0", "size": 4051, "upload_time": "2019-10-19T19:07:56", "url": "https://files.pythonhosted.org/packages/b5/dc/ca126a4cc5ce047dc9ac43773e7df2e0f7fa35702ad29ce32f74353ef2ee/commitment-2.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7f00a4113426964f8825cecbd7ac33fd", "sha256": "fdfb6cd5e44dde900a7a1d7e3215bb5c07589568b3a5403583a6b6f5c99e83d7" }, "downloads": -1, "filename": "commitment-2.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "7f00a4113426964f8825cecbd7ac33fd", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.4,<4.0", "size": 4291, "upload_time": "2019-10-19T19:07:54", "url": "https://files.pythonhosted.org/packages/7b/c3/3d624f891a1052d2d71bb286df491d7d3363bbf592107a0f64f3b2338931/commitment-2.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5bdc5f4a7bf996bd285e6122dc240151", "sha256": "6b1d4ea6013df99786794c3a5ba8dd46d87f2ac84f0569c09131dcec273f75dd" }, "downloads": -1, "filename": "commitment-2.0.2.tar.gz", "has_sig": false, "md5_digest": "5bdc5f4a7bf996bd285e6122dc240151", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4,<4.0", "size": 4051, "upload_time": "2019-10-19T19:07:56", "url": "https://files.pythonhosted.org/packages/b5/dc/ca126a4cc5ce047dc9ac43773e7df2e0f7fa35702ad29ce32f74353ef2ee/commitment-2.0.2.tar.gz" } ] }