Skip to main content

Connects Excel to a database connector to transfer information to and fro.

Project description

Excel Database Connector

Connects Excel to a database connector 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 excel-db-connector
    

Usage

This connector is very easy to use.

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

from excel_db_connector import ExcelConnector

dbconn = sqlite3.connect('/tmp/temp.db')


excel_connector = ExcelConnector(dbconn)
  1. After that you'll be able to extract data from excel and store it in the db
# Create the tables to for all objects
excel_connector.create_tables('/tmp/create_tables.sql')

excel_connector.extract('excel.xlsx', 'table_name')

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.

Source Distribution

excel-db-connector-0.2.0.tar.gz (3.1 kB view hashes)

Uploaded source

Built Distribution

excel_db_connector-0.2.0-py3-none-any.whl (4.3 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page