Skip to content

Instantly share code, notes, and snippets.

@jlgeering
jlgeering / gitlab-registry-stats.py
Last active March 24, 2017 08:46 — forked from pbabics/gitlab-registry-stats.py
Prints statistics per project in gitlab registry (usefull for debugging purposes)
#!/usr/bin/env python2.7
import os
import json
import argparse
import math
def convert_size(size_bytes):
if (size_bytes == 0):
return '0B'