Skip to main content

A Python module that helps to save data into csv file locally

Project description


saveToCsvfile is a Python module that helps to save data into CSV file locally.

Basic Steps to use this module are as follows

  1. Ensure that you have created "data.csv" in the directory of the file you use the module.
  2. Ensure that you have installed the package successfully.
  3. If the above two are completed, you are good to go to save the data locally into the backend.

Now, you need to import the package using the following command

from saveToCsvfile import insertTo,fetchAll,fetch_N

Above 3 functions, works as follows-

  1. insertTo: Use this function in case you need to add data into CSV file. Remember, You need to add an array as a parameter and if this return 'Success'. You can paas n number of data, separated by commas into a single array. Check your "data.csv" file, data has been uploaded into the file.
ins = insertTo(['One',2,3.0,True])
  1. fetchAll: Use this function to fetch all the results present inside a file i.e "data.csv".
data = fetchAll()
  1. fetch_N: Use this function to fetch top N number of results present inside a file i.e "data.csv". Here, we need to paas a number as a parameter to fetch records.
topTwo = fetch_N(2)

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

saveToCsvfile-1.0.0.tar.gz (2.6 kB view hashes)

Uploaded source

Built Distribution

saveToCsvfile-1.0.0-py3-none-any.whl (3.1 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page