@retry(Exception)
def get_ckan_datasets():
    global ckan_group, ckan_client, ckan_host, ckan_key
    
    print "Getting DRCOG datasets from OpenColorado"
    
    # Initialize the CKAN client  
    ckan_client = ckanclient.CkanClient(base_location=ckan_host,api_key=ckan_key)
                                        
    results = ckan_client.package_search(None, search_options={'groups': ckan_group, 'all_fields': 1, 'limit': 5000})
        
    datasets = list(results["results"])
    
    print str(len(datasets)) + " datasets found"
    
    return datasets
Gets the current DCROG datasets on OpenColorado
dataset/ETHPy150Open opencolorado/OpenColorado-Tools-and-Utilities/Scripts/Harvest/Drcog/DrcogSync.py/get_ckan_datasets