This part of the documentation covers the legacy objects used in the Search section of the API.
The LegacyIssue object. This object is only every used in conjuction with the search_issues. Unfortunately, GitHub hasn’t updated the search functionality to use the objects as they exist now.
See also: http://developer.github.com/v3/search/#search-issues
Body of the issue
Number of comments on the issue
datetime object representing the creation of the issue
Return an instance of cls formed from json.
id of the gravatar account
URL of the issue
list of labels applied to this issue
Issue number
Position
Number of requests before GitHub imposes a ratelimit.
Re-retrieve the information for this object and returns the refreshed instance.
| Parameters: | conditional (bool) – If True, then we will search for a stored header (‘Last-Modified’, or ‘ETag’) on the object and send that as described in the Conditional Requests section of the docs |
|---|---|
| Returns: | self |
The reasoning for the return value is the following example:
repos = [r.refresh() for r in g.iter_repos('kennethreitz')]
Without the return value, that would be an array of None‘s and you would otherwise have to do:
repos = [r for i in g.iter_repos('kennethreitz')]
[r.refresh() for r in repos]
Which is really an anti-pattern.
Changed in version 0.5.
State of the issue, i.e., open or closed
Title of the issue
Return the json representing this object.
datetime object representing the last time the issue was updated
User’s login
Number of votes on this issue. Probably effectively deprecated
The LegacyRepo object. This wraps data returned using the search_repos
See also: http://developer.github.com/v3/search/#search-repositories
datetime object representing the date of creation of this repo
datetime object representing the date of creation of this repo
description of this repository
Number of followers
Number of forks of this repository
Return an instance of cls formed from json.
Boolean - whether the repository has downloads or not
Boolean - whether the repository has issues or not
Boolean - whether the repository has a wiki or not
URL of the website for this repository
Checks if this repository is private
Language used in this repository
Name of this repository
Number of open issues
Owner of this repository
Whether the repository is private or not
datetime object representing the last time the repo was pushed to
datetime object representing the last time the repo was pushed to
Number of requests before GitHub imposes a ratelimit.
Re-retrieve the information for this object and returns the refreshed instance.
| Parameters: | conditional (bool) – If True, then we will search for a stored header (‘Last-Modified’, or ‘ETag’) on the object and send that as described in the Conditional Requests section of the docs |
|---|---|
| Returns: | self |
The reasoning for the return value is the following example:
repos = [r.refresh() for r in g.iter_repos('kennethreitz')]
Without the return value, that would be an array of None‘s and you would otherwise have to do:
repos = [r for i in g.iter_repos('kennethreitz')]
[r.refresh() for r in repos]
Which is really an anti-pattern.
Changed in version 0.5.
Score
Size of the repo
Return the json representing this object.
Type of object
URL of the project on GitHub
User’s login
Number of people watching this project
The LegacyUser object. This handles information returned by search_users.
See also: http://developer.github.com/v3/search/#search-users and http://developer.github.com/v3/search/#email-search
datetime object representing when the account was created
datetime object representing when the account was created
Number of followers
Number of followers
Return an instance of cls formed from json.
Full name of this user
Gravatar id for this user
Unique id of this user
Language
Location of this user
username for the user
Full name of this user
Number of public repos owned by this user
Number of requests before GitHub imposes a ratelimit.
Re-retrieve the information for this object and returns the refreshed instance.
| Parameters: | conditional (bool) – If True, then we will search for a stored header (‘Last-Modified’, or ‘ETag’) on the object and send that as described in the Conditional Requests section of the docs |
|---|---|
| Returns: | self |
The reasoning for the return value is the following example:
repos = [r.refresh() for r in g.iter_repos('kennethreitz')]
Without the return value, that would be an array of None‘s and you would otherwise have to do:
repos = [r for i in g.iter_repos('kennethreitz')]
[r.refresh() for r in repos]
Which is really an anti-pattern.
Changed in version 0.5.
Number of repos owned by the user
Score
Return the json representing this object.
Type of user
User’s login