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+.
-
Download this project and use it (copy it in your project, etc).
-
Install it from pip.
$ pip install excel-db-connector
Usage
This connector is very easy to use.
- 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)
- 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
- Create a file
License
This project is licensed under the MIT License - see the LICENSE file for details
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file excel-db-connector-0.3.0.tar.gz
.
File metadata
- Download URL: excel-db-connector-0.3.0.tar.gz
- Upload date:
- Size: 3.1 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.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1717e9492adf467ecbe18404100dc90f6bcbdce8359b72ceadc053af5d4ea6d |
|
MD5 | 82c85c15ed721bdf3f371aaa4987702b |
|
BLAKE2b-256 | aac4af5566ec70b0cb9f06dc1116f5e3bf5cc4998aaf80703df9db3d8354ed4c |
File details
Details for the file excel_db_connector-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: excel_db_connector-0.3.0-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fccbca7e9316efe8cbe687caf0c105a154fa57ea0648f60fa513d0b1a4aa0c02 |
|
MD5 | f27e6edd63e46079579b53b2959297e1 |
|
BLAKE2b-256 | 0dcbdd620f74bf179afb43c1fd9dee1a36cbf1dc67cab8c30b7ae45952f5796c |