Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Connects Google sheets to a database connector to transfer information to and fro.

Project description

Google Sheets Connector

Connects Google sheets to a database to transfer information to and fro. Fyle is an expense management system.

Installation

This project requires Python 3+.

  1. Download this project and use it (copy it in your project, etc).

  2. Install it from pip.

     $ pip install gsheets-db-connector
    

Usage

This connector is very easy to use.

First you'll need to create a connection using the main class FyleSDK.

from gsheets_db_connector import GoogleSheetsConnector

config = {
    'gsheets_credentials': '<Credentials>',
    'sheet_name': '<Sheet Name>'
}
gsheets_connector = GoogleSheetsConnector(config, database_connection)

After that you'll be able to extract/load data

gsheets_connector.extract_data()

Contribute

To contribute to this project follow the steps

  • Fork and clone the repository.
  • Run pip install -r requirements.txt
  • Setup pylint precommit hook
    • Create a file .git/hooks/pre-commit
    • Copy and paste the following lines in the file -
      #!/usr/bin/env bash 
      git-pylint-commit-hook
      
    • Run chmod +x .git/hooks/pre-commit

License

This project is licensed under the MIT License - see the LICENSE file for details

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for gsheets-db-connector, version 0.3.0
Filename, size File type Python version Upload date Hashes
Filename, size gsheets_db_connector-0.3.0-py3-none-any.whl (4.4 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size gsheets-db-connector-0.3.0.tar.gz (3.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page