{"id":13586348,"url":"https://github.com/kren1/tosheets","last_synced_at":"2025-04-07T15:31:40.226Z","repository":{"id":57476669,"uuid":"110840840","full_name":"kren1/tosheets","owner":"kren1","description":"Send your stdin to google sheets","archived":false,"fork":false,"pushed_at":"2020-07-14T18:50:47.000Z","size":25,"stargazers_count":543,"open_issues_count":3,"forks_count":28,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-03-14T04:17:45.335Z","etag":null,"topics":["command-line","google-sheets","google-spreadsheet","pipe","python","stdin"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kren1.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-15T14:02:04.000Z","updated_at":"2025-02-11T15:49:53.000Z","dependencies_parsed_at":"2022-09-12T15:22:42.176Z","dependency_job_id":null,"html_url":"https://github.com/kren1/tosheets","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kren1%2Ftosheets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kren1%2Ftosheets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kren1%2Ftosheets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kren1%2Ftosheets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kren1","download_url":"https://codeload.github.com/kren1/tosheets/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247679500,"owners_count":20978061,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["command-line","google-sheets","google-spreadsheet","pipe","python","stdin"],"created_at":"2024-08-01T15:05:30.040Z","updated_at":"2025-04-07T15:31:39.945Z","avatar_url":"https://github.com/kren1.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"A simple command line utility that sends your stdin to sheets.\n\nAvailable on pip by `pip install tosheets` (python3+ only)\n\n***NOTE:***  On first use, tosheets will open a browser window to authorize OAuth2 token.\n## Using `tosheets`\nPipe a local file to a new spreadsheet.\n```\ncat data.csv | tosheets -c A1 -d , --new-sheet=\"tosheetsSheet\"\n```\n\nPipe a local file to an existing spreadsheet:\n(Given a URL like `https://docs.google.com/spreadsheets/d/sample-spread-sheet-id-23sdf32543fs/edit#gid=0`)\n```\ncat data.csv | tosheets -c B4 -d , --spreadsheet=sample-spread-sheet-id-23sdf32543fs\n```\n\nSend sequence from 1 to 10 to a column starting at B4:\n```\nseq 1 10 | tosheets -c B4 --spreadsheet=sample-spread-sheet-id-23sdf32543fs\n```\n\nSend a matrix:\n```\n1 2\n3 4\n```\nTo the same location:\n\n```\necho -e '1 2\\n3 4' | tosheets -c B4 --spreadsheet=sample-spread-sheet-id-23sdf32543fs\n```\n\n\nTo sheets has a variety of other options listed:\n```\ntosheets, send stdin to your google sheets\n\nUsage:\n  tosheets -c \u003ccell\u003e [-u] [-k] [-s \u003csheet\u003e] [--spreadsheet=\u003cspreadsheet\u003e] [--new-sheet=\u003cname\u003e] [-d \u003cdelimiter\u003e] [-q \u003cquote char\u003e]\n  tosheets (-h | --help)\n  tosheets --version\n\nOptions:\n  -h --help                     Prints help.\n  --version                     Show version.\n  -i CSV                        Read this CSV instead of stdin\n  -u                            Update CELL(s) instead of appending.\n  -k                            Keep fields as they are (do not try to convert int or float).\n  -c CELL                       Start appending to CELL.\n  -s SHEET                      Use sheet name SHEET, otherwise tries to use\n                                TOSHEETS_SHEET (default: first visible sheet).\n  -d DELIMITER                  Use DELIMITER to split each line (default: whitespace).\n  -q QUOTE_CHAR                 A one-character string used to quote fields containing special characters,\n                                such as the delimiter or quotechar, or which contain new-line characters.\n                                (default: '\"').\n  --spreadsheet=\u003cspreadsheet\u003e   Send to the spreadsheet identified by spreadshetId\n                                (ie. docs.google.com/spreadsheets/d/\u003cspreadsheetId\u003e/...),\n                                if empty uses TOSHEETS_SPREADSHEET enviroment variable.\n  --new-sheet=\u003cname\u003e            Create a new spreadsheet with the chosen name. Prints the\n                                spreadsheetId so it can be piped/stored.\n  --open                        Open a browser with the newly created sheet\n```\n\n### Distribution\n```\npython setup.py sdist bdist_wheel\ntwine upload dist/*\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkren1%2Ftosheets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkren1%2Ftosheets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkren1%2Ftosheets/lists"}