Skip to main content

sqlDataframe

SQL To Pandas is a tool you can use to connect with your database, somme of the basic Functionalities are:

  • Can convert your database table into pandas dataframe
  • You can insert a pandas dataframe as a new table into your database

Usage pattern is different for both linux and windows.

Linux

Quickstart

Installing dependencies first:

$ import pandas as pd
$ from sqlDataframe import sqlCred, read_sql, to_sql

Establishing connection and importing data from mssql server into Pandas dataframe:

$ creds = sqlCred(database='database_name', username='username', password='pass', OS='Linux')
$ dataframe = read_sql(creds,'table_name')

Establishing connection and importing data Pandas dataframe into mssql server:

$ creds = to_sql(database='database_name', username='username', password='pass', OS='Linux')
$ to_sql(creds, dataframe, 'table_name')

Once connection is establised, you can use creds for both read_sql and to_sql.

Windows

Quickstart

Installing dependencies first:

$ import pandas as pd
$ from sqltopandas import sqlCred, to_sql, read_sql

Establishing connection and importing data from mssql server into Pandas dataframe:

$ creds = sqlCred('database='database_name', server='server_name', OS='Windows')
$ dataframe = read_sql(creds,'table_name')

Establishing connection and importing data Pandas dataframe into mssql server:

$ creds = sqlCred('database='database_name', server='server_name', OS='Windows')
$ to_sql(creds, dataframe, 'table_name')

Once connection is establised, you can use creds for both read_sql and to_sql. Note: This is only accessible using Microsoft Sql Server windows authentication.

Upcommings

Its a start of our journey and every journey begins with some simple steps. So we have enlisted some more features to be the part of sqltopandas in future updates.

  • Integration with multiple database platforms
  • Load specific data into dataframe from databasse by using custom queries
  • Server name will automatically be fetched from the system (Windows only)
  • Will provide access through sql server authentication (windows only)

Limitations

Yes we do have some limitations and we are working over it:

  • Support with sql server authentication is not available right now (windows only)
  • Only SELECT and INSERT querrying is working at the backend.
  • User's custom queries will be entetained.
  • Sql server instance name have to be provided as a parameter to build connection, in future we will fetch it by ourself.

Metadata

Release files for sqlDataframe 1.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 sqlDataframe 1.0
File Size Uploaded Provenance Actions
sqlDataframe-1.0.tar.gz 4.0 kB Without provenance Details for sqlDataframe-1.0.tar.gz

Release files / sqlDataframe-1.0.tar.gz

Download URL sqlDataframe-1.0.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
e70d25de990d8a3dd3a69fc7407a62c7cc4e6f8d747873ffe3a8e47763c1d315
BLAKE2b-256 checksum
How to use checksums
b2dc551f0854f768f880c81d8a1cfd515bd5b20627b1d8f8dfa75646dec5291a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.44.0 CPython/3.6.9

Security for sqlDataframe 1.0

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.

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