{"id":13585679,"url":"https://github.com/Akshay090/colab-cli","last_synced_at":"2025-04-07T10:31:28.707Z","repository":{"id":62563458,"uuid":"251038872","full_name":"Akshay090/colab-cli","owner":"Akshay090","description":"✨Experience better workflow with google colab, local jupyter notebooks and git","archived":false,"fork":false,"pushed_at":"2020-04-27T08:14:32.000Z","size":2281,"stargazers_count":127,"open_issues_count":2,"forks_count":14,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-05-06T01:22:17.300Z","etag":null,"topics":["cli-app","colab-notebook","colaboratory","git","python3"],"latest_commit_sha":null,"homepage":"","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/Akshay090.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-29T13:29:48.000Z","updated_at":"2024-01-23T03:12:38.000Z","dependencies_parsed_at":"2022-11-03T15:45:26.587Z","dependency_job_id":null,"html_url":"https://github.com/Akshay090/colab-cli","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/Akshay090%2Fcolab-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Akshay090%2Fcolab-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Akshay090%2Fcolab-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Akshay090%2Fcolab-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Akshay090","download_url":"https://codeload.github.com/Akshay090/colab-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247636364,"owners_count":20970915,"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":["cli-app","colab-notebook","colaboratory","git","python3"],"created_at":"2024-08-01T15:05:04.916Z","updated_at":"2025-04-07T10:31:28.276Z","avatar_url":"https://github.com/Akshay090.png","language":"Python","readme":"\u003ch4 align=\"center\"\u003e\n    \u003ca href=\"https://github.com/Akshay090/colab-cli\"\u003e\n        \u003cimg src=\"https://raw.githubusercontent.com/Akshay090/colab-cli/master/.github/banner.png\" alt=\"bingoset\" /\u003e\n    \u003c/a\u003e\n    \u003cbr\u003e\n    \u003cbr\u003e\n     Experience better workflow with google colab, local jupyter notebooks and git\n\n[![Downloads](https://pepy.tech/badge/colab-cli)](https://pepy.tech/project/colab-cli)\n![PyPI - License](https://img.shields.io/pypi/l/colab-cli?style=plastic)\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/colab-cli)\n![Twitter Follow](https://img.shields.io/twitter/follow/aks2899?style=social) \n\n\u003c/h4\u003e\n\n# Welcome to colab-cli 👋\n\nYou can now easily manage working with jupyter notebooks \nand google colab from cli. \n\n# Features \n* 🤠 Upload local jupyter notebook to gdrive from cli\n* 😮 Quick access to jupyter notebooks in gdrive from your cli\n* 🚀 Keeps jupyter notebooks organized in gdrive by creating local file structure in gdrive\n* 🤯 Sync local work on notebooks with gdrive\n* 🥂 Git friendly, pull changes from gdrive and commit to git\n\n### ✨ Demo\n[![demo](https://asciinema.org/a/314749.svg)](https://asciinema.org/a/314749?autoplay=1)\n\n## Install\n\n```sh\npip3 install colab-cli\n```\n\n## Set-up\n\nSTEP-1: \n \nFirst we need to get your client_secrets.json file for \nOAuth2.0 authentication for Drive API,\n\n1. Go to [APIs Console](https://console.developers.google.com/iam-admin/projects) \nand make your own project.\n2. Search for ‘Google Drive API’, select the entry, and click ‘Enable’.\n3. Select ‘Credentials’ from the left menu, click ‘Create Credentials’, select ‘OAuth client ID’.\n4. Now, the product name and consent screen need to be set -\u003e click ‘Configure consent screen’ and follow the instructions. Once finished:\n    \n    a. Select ‘Application type’ to be Web application.\n    \n    b. Enter an appropriate name.\n    \n    c. Input http://localhost:8080 for ‘Authorized JavaScript origins’.\n    \n    d. Input http://localhost:8080/ for ‘Authorized redirect URIs’.\n    \n    e. Click ‘Save’.\n    \n5. Click ‘Download JSON’ on the right side of Client ID to \ndownload client_secret_\\\u003creally long ID\u003e.json.\n\n6. Rename the file to “client_secrets.json” and place it in any directory.\n\nSTEP-2: \n\n Go to the local directory with client_secrets.json\n  ```sh\n  colab-cli set-config client_secrets.json\n  ```\nSTEP-3:\n \nNow we need to set the google account user id, goto your browser and see how many google logins you have,\n the count start from zero\n \n for eg. I have 3 login and I use the second one for coding work, so my user id is 1\n  ```sh\n  colab-cli set-auth-user 1\n  ```\n \n🙌 Now You're all set to go\n## Usage\n\n```sh\ncolab-cli --help\n``` \n* List local ipynb\n```sh\ncolab-cli list-nb\n``` \nNOTE : Please work with git repo initialized, else below \ncommands will not work\n\n* Open local ipynb file in google colab for first time\n\u003e Note: It opens the copy of file in gdrive from second time onwards.\n```sh\ncolab-cli open-nb lesson1-pets.ipynb\n``` \n* If you need to get modified ipynb from gdrive local directory use \n```sh\ncolab-cli pull-nb lesson1-pets.ipynb\n``` \n* Made some changes to ipynb locally, push it to gdrive\n```sh\ncolab-cli push-nb lesson1-pets.ipynb\n``` \n* To make a new notebook, you can use\n```sh\ncolab-cli new-nb my_nb.ipynb\n``` \n\n\n## Author\n\n👤 **Akshay Ashok**\n\n* Twitter: [@aks2899](https://twitter.com/aks2899)\n* Github: [@Akshay090](https://github.com/Akshay090)\n* LinkedIn: [@akshay-a](https://linkedin.com/in/akshay-a)\n\n## 🤝 Contributing\n\nContributions, issues and feature requests are welcome!\n\nFeel free to check [issues page](https://github.com/Akshay090/colab-cli/issues). You can also take a look at the [contributing guide](https://github.com/Akshay090/colab-cli/blob/master/CONTRIBUTING.md).\n\n## Show your support\n\nGive a 🌟 if this project helped you!\n\n## 📝 License\n\nCopyright © 2020 [Akshay Ashok](https://github.com/Akshay090).\n\nThis project is [MIT](https://choosealicense.com/licenses/mit/) licensed.\n\n***\n_This README was generated with ❤ by [readme-md-generator](https://github.com/kefranabg/readme-md-generator)_\n","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAkshay090%2Fcolab-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAkshay090%2Fcolab-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAkshay090%2Fcolab-cli/lists"}