Do you have any sample code beside http://bitbucket.org/galaxy/galaxy-central/wiki/DataSources?
There are a dozen or so examples under tools/data_source in the distribution.
You are going to have to be more specific about your questions if you need additional assistance.
Thanks, James