Skip to main content

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

Release files for excel-db-connector 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for excel-db-connector 0.3.0
File Size Uploaded
excel-db-connector-0.3.0.tar.gz 3.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for excel-db-connector 0.3.0
File Interpreter ABI Platform
excel_db_connector-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.4 kB

Release files / excel-db-connector-0.3.0.tar.gz

Download URL excel-db-connector-0.3.0.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d1717e9492adf467ecbe18404100dc90f6bcbdce8359b72ceadc053af5d4ea6d
BLAKE2b-256 checksum
How to use checksums
aac4af5566ec70b0cb9f06dc1116f5e3bf5cc4998aaf80703df9db3d8354ed4c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

Release files / excel_db_connector-0.3.0-py3-none-any.whl

Download URL excel_db_connector-0.3.0-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fccbca7e9316efe8cbe687caf0c105a154fa57ea0648f60fa513d0b1a4aa0c02
BLAKE2b-256 checksum
How to use checksums
0dcbdd620f74bf179afb43c1fd9dee1a36cbf1dc67cab8c30b7ae45952f5796c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page