Introduction
This package help to convert your excel files (xlsx,xls,csv) to SQL Server database.
Installation
exceltosqlserver can be installed as:
pip install exceltosqlserver
Dependency
👍 pandas
👍 pyodbc
QuickStart
from exceltosqlserver import ExcelToDB, hostname, local_ip
# STEP One, prepare your input pareameters
yourFile = "test01.xls" # available for xlsx, xls,csv
yourUsrID = ""
yourPWD = ""
yourDBname= ""
rename_table = "" # Use your filename as tablename onto SQL Server or user define the table name, e.g. :"test"
# get your local host name
# this will return your local computer name for your sql server database
host_name = hostname
# get your local ip address
# this will return your local ip address (if your sql server can be accessed by DNS)
ip = local_ip
# you need to change your host if needed, dns: local ip address
#yourHostORip = "localhost"
# yourHostORip = host_name
yourHostORip = ip
# STEP Two add your data to sql server
es = ExcelToDB(yourFile, yourHostORip, yourUsrID, yourPWD, yourDBname, rename_table)
es.save2db()
output:
Successfully load excel data...
Sucessfully connected to SQL Server...
Sucessfully saved 'yourtable' to SQL Server...
API Reference
exceltosqlserver.ExcelToDB(filePath,host_ip=False,usrID =False,pwd=False,db_name=False,rename_table)
filePath: str
host_ip: str default: ""
usrID: str default: ""
pwd: str default: ""
db_name: str default: ""
rename_table: str default: "", will auto save your filename as table name to sql server database. If assignmed value, will change table name from your filename to the assigned value.
Metadata
Release files for exceltosqlserver 0.2.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| exceltosqlserver-0.2.5.tar.gz | 12.1 kB | Without provenance | Details for exceltosqlserver-0.2.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| exceltosqlserver-0.2.5-py3-none-any.whl | Python 3 | none | any | Details for exceltosqlserver-0.2.5-py3-none-any.whl |
Total release size: 24.0 kB
Release files / exceltosqlserver-0.2.5.tar.gz
| Download URL | exceltosqlserver-0.2.5.tar.gz |
|---|---|
| Size | 12.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7088f6cfc0b10e10c53d883ee41e698a5fa04b9d19796dccfe924595a09cd12f
|
|
BLAKE2b-256 checksum How to use checksums |
9491080fb88076e70f1c8bf73fa60b7eb2353f9ce7929baf54540f5180c946b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Release files / exceltosqlserver-0.2.5-py3-none-any.whl
| Download URL | exceltosqlserver-0.2.5-py3-none-any.whl |
|---|---|
| Size | 11.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b220404d0368d741303b7842a5e0458a3c36095d98b44bce3866d48baecd8b44
|
|
BLAKE2b-256 checksum How to use checksums |
0777fa413cdc52b8acdbd9947c54803118f9e90331f44732ce628425c515c978
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Security for exceltosqlserver 0.2.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.