EasyColab: Easy access to the most used methods on Google Colab


Keywords
easycolab
License
MIT
Install
pip install easycolab==0.1b29

Documentation

EasyColab

Easy access to the most useful commands of Google Colab. This Python package is like an API for simplifying some commands that have to be used all the time when initializing Colab sections such as mounting Google drive folders, download of big files and zip/unzip files.

How to install

  1. Open a Google Colab Session.
  2. On a new cell, type:
!pip install easycolab
  1. Try importing easycolab to check if the installation worked:
import easycolab as ec

Updates

  • ec.mount() will now automatically open the folder 'My Drive'
  • New method called tkmount(TOKEN=...) which accepts a token as input. However it seems that each token can be used only once, so at this moment, this method does not seem useful).

Implemented Features

Open the following link on Playground mode in order to test the implemented features: https://colab.research.google.com/drive/1hJYJpy4TtKUy2i7IK7YnIwk3kHhXe-WV

  • Mount on Google Drive and open folder My Drive
>>> ec.mount()
  • Unzip File
>>> import easycolab as ec
>>> ec.unzip(path)
  • Download large files
>>> url = "https://raw.githubusercontent.com/mlampros/DataSets/master/cifar_10.zip"
>>> ec.download_large_file(url, target_path='cifar.zip')

Licence

MIT