Msewage::Importer
Command line tool to import a CSV file into mSewage (msewage.org). It is able to import one kind of source at a time.
Installation
$ gem install msewage-importer
Usage
$ msewage-importer --type [source_type] --source [source.json]
Currently, the following source types are supported:
- open_defecation_site
- toilet
- latrine
- septic_tank
- sewage_outflow
- manure
- industrial_waste
- open_sewage
Help
$ msewage-importer --help
Type of data supported
At this moment, only JSON data sources are supported. These sources should conform to the following format mSewage API
{
"sources": [
{
"name": "optional",
"description": "optional",
"location": "location string. Required."
},
...
]
}
The data might come from a script like this one.
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request