Skip to main content

No project description provided

Project description

Papysql

This Library is an interface between Pandas and sqlite3. It gives the possibility to access sql databases and view the tables as pandas DataFrames.

Installation

The library can be installed through pip:

pip install papysql

Alternatively you can download the scripts from here, the main functions are located in papysql/papysql.py file that you can place in the same folder and import in your workspace..

After importing the library it have to read the database with the command

import papysql as pps

db = pps.read(PathToDb)

You can then access data in the db with functions list_tables and display_table e.g.

pps.display_tables(db)
#It lists all the tables in the database

pps.display_table(NameOfTheTable,db)
#It returns the specific table in format of a Pandas Dataframe Object

Finally the Function ExecuteScriptFromFile is work in progress and serves to execute a SQL script from a text file

Future implementation will be aimed at modify and creating tables

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

papysql-0.2.6-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

Details for the file papysql-0.2.6-py3-none-any.whl.

File metadata

  • Download URL: papysql-0.2.6-py3-none-any.whl
  • Upload date:
  • Size: 14.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for papysql-0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 8f1b1d8c92867be86b88664a4e060007b57101b3ee9839803a92760e6652f80e
MD5 fd708d9374d0ed0535096b5973864dc7
BLAKE2b-256 0c5b2222fa5340a3b51a50449de69ad917a69bdbe527ca547ffdc171580f0ae9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page