diff options
| author | 2012-04-13 17:06:09 -0500 | |
|---|---|---|
| committer | 2012-04-16 13:36:39 -0500 | |
| commit | 4ce1a90038b23d931858ad22815dbe29f74d7d98 (patch) | |
| tree | 880428e5a6e23c472cfa14183884c0ac79bbf718 /pygithub3/services/git_data/__init__.py | |
| parent | :sparkles: Release 0.3 :sparkles: (diff) | |
| download | python-github3-4ce1a90038b23d931858ad22815dbe29f74d7d98.tar.xz python-github3-4ce1a90038b23d931858ad22815dbe29f74d7d98.zip | |
add Git Data API support
Diffstat (limited to '')
| -rw-r--r-- | pygithub3/services/git_data/__init__.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/pygithub3/services/git_data/__init__.py b/pygithub3/services/git_data/__init__.py new file mode 100644 index 0000000..a12ddea --- /dev/null +++ b/pygithub3/services/git_data/__init__.py @@ -0,0 +1,20 @@ +#!/usr/bin/env python +# -*- encoding: utf-8 -*- + +from pygithub3.services.base import Service +from .blobs import Blobs +from .commits import Commits +from .references import References +from .tags import Tags +from .trees import Trees + +def GitData(Service): + """Consume `Git Data API <http://developer.github.com/v3/git/>`_""" + + def __init__(self, **config): + self.blobs = Blobs(**config) + self.commits = Commits(**config) + self.references = References(**config) + self.tags = Tags(**config) + self.trees = Trees(**config) + super(GitData, self).__init__(**config) |
