<filename>examples/load_a_few_projects.py
#!/usr/bin/env python
# encoding: utf-8

import django
import gitlab

django.setup()
from pygipo.models import Dump

dump = Dump.create()

gl = gitlab.Gitlab.from_config()

for p in gl.projects.list(owned=True):
    print('.', end='')
    dump.add('project', p.attributes)
print()

<filename>examples/load_a_few_projects.py
#!/usr/bin/env python
# encoding: utf-8

import django
import gitlab

django.setup()
from pygipo.models import Dump

dump = Dump.create()

gl = gitlab.Gitlab.from_config()

for p in gl.projects.list(owned=True):
    print('.', end='')
    dump.add('project', p.attributes)
print()

#!/usr/bin/env python # encoding: utf-8