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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file saveToCsvfile-1.0.0.tar.gz.
File metadata
- Download URL: saveToCsvfile-1.0.0.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34f78686c0c8af1c42b932a9f722341bb063d03294f4968539ab5b70aa822bda
|
|
| MD5 |
c055f7ac27466a2734783c1714ac0b4f
|
|
| BLAKE2b-256 |
505fd2c1f640cdac730531ce4c97503a09b043bf1e429cd16c34d5c72e788a0f
|
File details
Details for the file saveToCsvfile-1.0.0-py3-none-any.whl.
File metadata
- Download URL: saveToCsvfile-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
003a8be5bed0efc6d2870aca57add2f52bf58534065e97087eeb2cd62b596dec
|
|
| MD5 |
1d6370237f2fd73e0e05e239c043a01e
|
|
| BLAKE2b-256 |
0f481177007e4ce21cb663d73b3f85768d3ab5169759b9a2530f7574f3005164
|