A Python module that helps to save data into csv file locally
Project description
saveToCsvfile
saveToCsvfile is a Python module that helps to save data into CSV file locally.
Basic Steps to use this module are as follows
- Ensure that you have created "data.csv" in the directory of the file you use the module.
- Ensure that you have installed the package successfully.
- 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-
- 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])
print(ins)
- fetchAll: Use this function to fetch all the results present inside a file i.e "data.csv".
data = fetchAll()
print(data)
- 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)
print(topTwo)
Project details
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for saveToCsvfile-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 003a8be5bed0efc6d2870aca57add2f52bf58534065e97087eeb2cd62b596dec |
|
MD5 | 1d6370237f2fd73e0e05e239c043a01e |
|
BLAKE2b-256 | 0f481177007e4ce21cb663d73b3f85768d3ab5169759b9a2530f7574f3005164 |