Skip to main content

Export CSV files to Google Spreadsheets

Project description

Import/Export CSV files to Google Spreadsheets

Simple CSV import/export wrapper for gspread package.

Build status Latest PyPI version Download format License

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:

  1. Create Google Service Account key (use JSON format):

    https://gspread.readthedocs.io/en/latest/oauth2.html

  2. Create new spreadsheet in the Google Spreadsheets.

  3. 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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

csv_export_gsheets-0.0.13-py2.py3-none-any.whl (6.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file csv-export-gsheets-0.0.13.tar.gz.

File metadata

  • Download URL: csv-export-gsheets-0.0.13.tar.gz
  • Upload date:
  • Size: 15.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.7

File hashes

Hashes for csv-export-gsheets-0.0.13.tar.gz
Algorithm Hash digest
SHA256 967326fddda1efc34628ee66394f6080fee031c48d1fa1c7afb9f427b96ee833
MD5 88954638213e56f00c386fb5aa7a91b2
BLAKE2b-256 317422ba148624fdb8ec7fb3aadf8f3d222f2a71a4f263f700ac558983ed7bb7

See more details on using hashes here.

File details

Details for the file csv_export_gsheets-0.0.13-py2.py3-none-any.whl.

File metadata

  • Download URL: csv_export_gsheets-0.0.13-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.7

File hashes

Hashes for csv_export_gsheets-0.0.13-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ab1bd277f498eadcf5ed82ae468e2bd248e2cd909d8124d844d121eb6e8561c5
MD5 3ef7f130c073d0da761299392fd94250
BLAKE2b-256 308f08b58890779c1751be5d3d949469ce2f4d816255b636a75912c99e39d3f3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page