Skip to content

Instantly share code, notes, and snippets.

@ttx
Created January 8, 2016 13:03
Show Gist options
  • Save ttx/1bc34b9b203bbfe8b7b0 to your computer and use it in GitHub Desktop.
Save ttx/1bc34b9b203bbfe8b7b0 to your computer and use it in GitHub Desktop.
project-repo-count.py
import sys
import yaml
teams = yaml.load(sys.stdin)
total = 0
for tname, team in teams.iteritems():
for dname, deliverable in team['deliverables'].iteritems():
total += len(deliverable.get('repos'))
print total
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment