---
# System prepended metadata

title: GitHub Repo access

---

# GitHub Repo access


```python
#!/usr/bin/env python

from github import Github
import os

token = os.getenv('GITHUB_TOKEN', '...')
g = Github(token)

#Get repositories for an organization
org = g.get_organization('DUNE-DAQ')
repos = org.get_repos()
repos_id_lsit=[]
no_team_msg="NO TEMAS FOUND!"
print("| {} | {} | {} | {} |".format('Repository'.ljust(30), 'Team One'.ljust(30),'Team Two'.ljust(30), 'Team Three'.ljust(30)))
print("|", "{} | ".format('-'*30)*4)
for repo in repos:
	#print(80*'=')
	out_string = "| {0: <30} |".format(repo.name)
	repos_id_lsit.append(repo.id)
	teams = repo.get_teams()
	n_team = 0
	for team in teams:
		n_team += 1
		out_string += " {0: <15}".format(team.name) + "{0:>15} |".format(team.permission)
	if n_team == 0:
		out_string += " {0: <30} |".format(no_team_msg)
	print(out_string)
```
## Generated at Thu Jan 28 18:20:42 UTC 2021

| Repository                     | Team One                       | Team Two                       | Team Three                     |
| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ |
| app-framework-base             | app-tf                         |
| appfwk                         | app-tf                         | daq-developers                 |
| styleguide                     | daq-developers                 |
| dune-daq-template              | NO TEMAS FOUND!                |
| dune-wib-firmware              | wib-fw                         |
| protodune-wib-firmware         | wib-fw                         |
| ProtoDuneTrigger               | NO TEMAS FOUND!                |
| ers                            | ccm                            |
| daq-buildtools                 | app-tf                         |
| daq-release                    | NO TEMAS FOUND!                |
| logging                        | app-tf                         |
| daq-externals                  | NO TEMAS FOUND!                |
| listrev                        | NO TEMAS FOUND!                |
| ptmp                           | NO TEMAS FOUND!                |
| ptmp-tcs                       | NO TEMAS FOUND!                |
| driver                         | NO TEMAS FOUND!                |
| ipm                            | NO TEMAS FOUND!                |
| ddpdemo                        | daq-developers                 | df                             |
| readout                        | udaq                           |
| dont-readme                    | NO TEMAS FOUND!                |
| dunedaq-spack                  | NO TEMAS FOUND!                |
| restcmd                        | app-tf                         | daq-developers                 | ccm                            |
| cmdlib                         | ccm                            |
| daq-docker                     | NO TEMAS FOUND!                |
| filecmd                        | NO TEMAS FOUND!                |
| opmonlib                       | ccm                            |
| daq-cmake                      | NO TEMAS FOUND!                |
| dataformats                    | df                             |
| erses                          | ccm                            |
| timing                         | udaq                           |
| timing-board-software          | udaq                           |
| trigemu                        | NO TEMAS FOUND!                |
| dfmessages                     | df                             |
| dfmodules                      | df                             |
| daqdemos                       | NO TEMAS FOUND!                |
| minidaqapp                     | df                             |
| duneraw                        | NO TEMAS FOUND!                |
| flxlibs                        | udaq                           |
| serialization                  | df                             |


## Generated at Fri Jan 29 04:13:09 UTC 2021


| Repository                     | Team One                       | Team Two                       | Team Three                     |
| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ |
| app-framework-base             | app-tf                    push |
| appfwk                         | app-tf                    push | daq-developers            push |
| styleguide                     | daq-developers            push |
| dune-daq-template              | NO TEMAS FOUND!                |
| dune-wib-firmware              | wib-fw                    push |
| protodune-wib-firmware         | wib-fw                    push |
| ProtoDuneTrigger               | NO TEMAS FOUND!                |
| ers                            | ccm                       push |
| daq-buildtools                 | app-tf                    pull |
| daq-release                    | NO TEMAS FOUND!                |
| logging                        | app-tf                    pull |
| daq-externals                  | NO TEMAS FOUND!                |
| listrev                        | NO TEMAS FOUND!                |
| ptmp                           | NO TEMAS FOUND!                |
| ptmp-tcs                       | NO TEMAS FOUND!                |
| driver                         | NO TEMAS FOUND!                |
| ipm                            | NO TEMAS FOUND!                |
| ddpdemo                        | daq-developers            push | df                        push |
| readout                        | udaq                      push |
| dont-readme                    | NO TEMAS FOUND!                |
| dunedaq-spack                  | NO TEMAS FOUND!                |
| restcmd                        | ccm                       push |
| cmdlib                         | ccm                       push |
| daq-docker                     | NO TEMAS FOUND!                |
| filecmd                        | NO TEMAS FOUND!                |
| opmonlib                       | ccm                       push |
| daq-cmake                      | NO TEMAS FOUND!                |
| dataformats                    | df                        push |
| erses                          | ccm                       push |
| timing                         | udaq                      push |
| timing-board-software          | udaq                      push |
| trigemu                        | NO TEMAS FOUND!                |
| dfmessages                     | df                        push |
| dfmodules                      | df                        push |
| daqdemos                       | NO TEMAS FOUND!                |
| minidaqapp                     | df                        push |
| duneraw                        | NO TEMAS FOUND!                |
| flxlibs                        | udaq                      push |
| serialization                  | df                        push |