awendt, I'm not quite familiar with private quotas, but authenticated users receive a Plan object when the API returns the call to /user
. This will tell you what plan you have and will tell you how many private_repos
you're allowed. With that information and the information from /user
which tells you how many private repos you currently have, you should be able to figure it out.
Then again, you could use github3.py
and you'd have the User object, with the plan attribute and could use those two together as described above.
Disclaimer I'm github3.py's author.