Note
See the official GitHub API v2 documentation for organizations and teams.
Organization container.
New in version 0.4.0.
The organization’s e-mail address.
The organization’s company name.
Permissions within this organization.
The full name of the organization.
Number of users following this organization.
Number of users the organization is following.
Location of the organization.
The organization id.
The login username.
The organization’s blog.
Gravatar ID.
Organization’s number of active public gists.
Organization’s number of active repositories.
GitHub plan for this organization.
The date the organization was created.
GitHub API organizations functionality.
New in version 0.4.0.
Add a team to an organization.
param str organization: organization to add team to param str team: name of team to add param str permission: permissions for team(push, pull or admin) param list projects: optional GitHub projects for this team
Warning
Requires authentication
Get list of public members in an organization.
Parameters: | organization (str) – organization to list members for |
---|
Get list of public repositories in an organization.
Parameters: | organization (str) – organization to list public repositories for |
---|
Get list of all repositories in an organization.
If organization is not given, or is empty, then this will list repositories for all organizations the authenticated user belongs to.
Param : | str organization: organization to list repositories for |
---|
>>> org = github.organizations.show("JNRowe-test-only")
>>> org.created_at
datetime.datetime(2011, 5, 10, 11, 37, 27)
>>> repos = github.organizations.public_repositories(org.login)
>>> users = github.organizations.public_members(org.login)
>>> teams = github2.organizations.teams(org.login)
>>> orgs = github.organizations.list()
>>> repos = github.organizations.repositories()