Skip to content

Instantly share code, notes, and snippets.

View doodyparizada's full-sized avatar

Doody Parizada doodyparizada

View GitHub Profile
@doodyparizada
doodyparizada / couchbase_export_views.py
Last active March 21, 2016 13:33 — forked from lord-otori/couchbase_export_views.php
A script to export all views in a Couchbase server to files.
#!/usr/bin/env python
import requests
import sys
from collections import namedtuple
Bucket = namedtuple('Bucket', ('name', 'type', 'ddocs_uri'))
View = namedtuple('View', ('name', 'map', 'reduce'))
DDoc = namedtuple('DDoc', ('name', 'views'))