Object
See the official GitHub API v2 documentation for objects.
-
Github.get_all_blobs(project, tree_sha)[source]
Get a list of all blobs for a specific tree.
New in version 0.3.0.
Parameters: |
- project (str) – GitHub project
- tree_sha (str) – object ID of tree
|
-
Github.get_blob_info(project, tree_sha, path)[source]
Get the blob for a file within a specific tree.
Parameters: |
- project (str) – GitHub project
- tree_sha (str) – object ID of tree
- path (str) – path within tree to fetch blob for
|
-
Github.get_tree(project, tree_sha)[source]
Get tree information for a specifc tree.
Parameters: |
- project (str) – GitHub project
- tree_sha (str) – object ID of tree
|
Examples
Trees
>>> tree = github.get_tree(project, tree_sha)
Blobs
>>> blob = github.get_blob_info(project, tree_sha, path)
All Blobs
>>> blobs = github.get_all_blobs(project, tree_sha)