Export CSV files to Google Spreadsheets
Project description
Import/Export CSV files to Google Spreadsheets
Simple CSV import/export wrapper for gspread package.
Installation
PIP
You can install the latest stable package running this command:
$ pip install csv_export_gsheets
Also you can install the development version running this command:
$ pip install git+http://github.com/dlancer/csv_export_gsheets.git@dev
Usage
Before you start you should:
Create Google Service Account key (use JSON format):
Create new spreadsheet in the Google Spreadsheets.
Share this spreadsheet with email from created service account file.
From command line:
$ csv2gsheets --help
From python code:
from csv_export_gsheets.gsheet import import_csv
# src - path to source CSV file or StringIO object
# url - destination sheet url
# cell - destination sheet cell (can include tab name: 'MyTab!A1')
# credentials - path to service account credentials or dict
# config - path to config file or dict
import_csv(source=src, url=url, cell=cell, credentials=credentials, config=config)
Please note: destination sheet will be cleared before import.
TODO
export from google spreadsheet to CSV
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
csv-export-gsheets-0.0.13.tar.gz
(15.9 kB
view hashes)
Built Distribution
Close
Hashes for csv-export-gsheets-0.0.13.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 967326fddda1efc34628ee66394f6080fee031c48d1fa1c7afb9f427b96ee833 |
|
MD5 | 88954638213e56f00c386fb5aa7a91b2 |
|
BLAKE2b-256 | 317422ba148624fdb8ec7fb3aadf8f3d222f2a71a4f263f700ac558983ed7bb7 |
Close
Hashes for csv_export_gsheets-0.0.13-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab1bd277f498eadcf5ed82ae468e2bd248e2cd909d8124d844d121eb6e8561c5 |
|
MD5 | 3ef7f130c073d0da761299392fd94250 |
|
BLAKE2b-256 | 308f08b58890779c1751be5d3d949469ce2f4d816255b636a75912c99e39d3f3 |