The package is used for work with the Google Sheet spreadsheets using their URL.
Project description
A package for downloading data from Google Sheets with spreadsheet URL.
pip install google-sheets-tools - install the module
import google_sheets_tools - import the module to your project
class SheetsDownloader:
obj = SheetsDownloader(sheet_url, extension='csv') - create a constructor
- sheet_url - url of the Google sheet
- extension - extension of the downloaded file ('xlsx', 'ods', 'pdf', 'html', 'csv', 'tsv')
obj.download_file(folder_name='sheets') - download a sheet
- folder_name - to what folder download a spreadsheet; default value='sheets'
get_downloaded_file_name() - get a name of your downloaded spreadsheet
get_extension() - get the extension constructor works with
class CsvParser:
download_csv_sheet(path='csv_files') - download the spreadsheet as a csv file
- path - path to downloaded spreadsheet, can be structural '1\2\3'; default value='csv_files'
get_csv_data(sheet_type='list') - returns a data from the csv file
- sheet_type - type of the returned data, can be ('list', 'json'); default value='list'
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
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 google_sheets_tools-0.0.2.tar.gz.
File metadata
- Download URL: google_sheets_tools-0.0.2.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.14 CPython/3.10.5 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b27ff04fdbfc6bed852bfa9b7f19bd9bf7a55e255ac533488b515143703c2f9a
|
|
| MD5 |
cbab961384240a08329918272b45b8bc
|
|
| BLAKE2b-256 |
dbed52475f81c4a7756d1ee72d6cef04995c8a32601d1a83a2068a3d0eae7d45
|
File details
Details for the file google_sheets_tools-0.0.2-py3-none-any.whl.
File metadata
- Download URL: google_sheets_tools-0.0.2-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.14 CPython/3.10.5 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7584e77fd0152f71bfbd3169b639710d607f5643f6214159c7e94768066d5792
|
|
| MD5 |
de9facd273838d14c3545b1de3e928f3
|
|
| BLAKE2b-256 |
51a407d8d21168319ad61c6c05acb680ebb3ded5c35e60c7fe8c159e8350bc3a
|