excel-db-connector-0.3.0
توضیحات
Connects Excel to a database connector to transfer information to and fro.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | excel-db-connector-0.3.0 |
| نام | excel-db-connector |
| نسخه کتابخانه | 0.3.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Shwetabh Kumar |
| ایمیل نویسنده | shwetabh.kumar@fyle.in |
| آدرس صفحه اصلی | https://github.com/fylein/fyle-db-connector |
| آدرس اینترنتی | https://pypi.org/project/excel-db-connector/ |
| مجوز | MIT |
# Excel Database Connector
Connects Excel to a database connector to transfer information to and fro. [Fyle](https://www.fylehq.com/) is an expense management system.
## Installation
This project requires [Python 3+](https://www.python.org/downloads/).
1. Download this project and use it (copy it in your project, etc).
2. Install it from [pip](https://pypi.org).
$ 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.
```python
import sqlite3
from excel_db_connector import ExcelConnector
dbconn = sqlite3.connect('/tmp/temp.db')
excel_connector = ExcelConnector(dbconn)
```
2. After that you'll be able to extract data from excel and store it in the db
```python
# 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 -
```bash
#!/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](LICENSE) file for details
نیازمندی
| مقدار | نام |
|---|---|
| ==3.7.4.1 | typing |
| ==0.25.2 | pandas |
| ==1.4 | logger |
| ==3.0.1 | openpyxl |
نحوه نصب
نصب پکیج whl excel-db-connector-0.3.0:
pip install excel-db-connector-0.3.0.whl
نصب پکیج tar.gz excel-db-connector-0.3.0:
pip install excel-db-connector-0.3.0.tar.gz