Skip to content

Instantly share code, notes, and snippets.

View jmartinter's full-sized avatar

Javier Martin jmartinter

View GitHub Profile
import cloudstorage as gcs
input = 'geo_shapes/cities.geojson'
output = '/geo-shapes/cities.geojson'
with open(input, 'r') as f_in:
with gcs.open(output, mode='w', content_type='application/json') as f_out:
for line in f_in:
f_out.write(line + '\n')