#!/usr/bin/env python
from sdss_access import Access, AccessError
access = Access(label='mangamap',verbose=True)

#works if you have the sdss username in your ~/.netrc (or you will be prompted)
access.remote()
#the alternative to setting the password in ~/.netrc is not recommended!
#access.remote(username='sdss',password='***-******')

access.add('drpall', drpver='v1_5_1')
access.set_stream()
access.commit()
