Skip to main content

simplify functions from other libraries functions in 1-2 lines

Project description

py_topping, a topping on some already great libraries

I create this library to simplify and standardize my friends' projects

This library focus on "simplify" (& lazy) not performance

PyPi Project Page : (https://pypi.org/project/py-topping)

To Install a Stable Version

pip install py-topping


To Install a Newest Version

pip install git+https://github.com/chanon-kr/Shared_Function.git

This library will *NOT auto install dependencies for you but you could see the list of dependencies below

You could see samples of how to use this library inside the samples folder in github
(https://github.com/chanon-kr/Shared_Function)

database

  • Original to Work with SQL Server, MySQL, PostGreSQL and SQLite
  • Since 0.3.5, It can work with GCP's BigQuery, still need more test on Cloud
  • To read view, table or store procedure as pandas dataframe
  • To insert pandas dataframe into SQL with option for existing row :
    • Replace same key(s) with new from dataframe with option to use ">" or "<" condition
    • Add Only row with non-existing key(s)
    • Replace whole table
  • Can parallel insert by using dask's delayed (not recommend)
  • Can't read Store Procedure in PostGreSQL will solve this in later version
  • Will working with Oracle Database in later version
  • Dependencies for this library as listed ;
    sqlalchemy pandas dask toolz
  • Additional dependencies for GCP's BigQuery as listed ;
    pybigquery pandas-gbq google-cloud-bigquery google-cloud-bigquery-storage
  • Sample of use => https://github.com/chanon-kr/Shared_Function/blob/main/samples/database.ipynb

sharepoint


gcp

  • to download file from GCP's bucket Storage
  • upload file from GCP's bucket Storage
  • Dependencies for this library as listed ; ...
  • Sample of use => Add Later

data_preparation


general_use


run_pipeline

Project details


Download files

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

Source Distribution

py_topping-0.3.5.tar.gz (134.5 kB view hashes)

Uploaded Source

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