Metadata-Version: 2.1
Name: colab-preamble
Version: 0.1.1
Summary: Prepare google colabpratory by one line of command
Home-page: https://github.com/kota7/colab-preamble
Author: Kota Mori
Author-email: kmori05@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Description-Content-Type: text/markdown
License-File: LICENSE

# COLAB PREAMPLE
Prepare google colaboratory by one line of command

## Installation

```python
# from pypi
$ pip install colab-preample

# alternatively, from github
$ git clone https://github.com/kota7/colab-preample --depth 1
$ pip install -U ./colab-preample
```


## Usage

```python
import colab_preample

colab_preample_run(google_cloud_project="<project-id>", mount_drive=True)
# If no need to access google cloud services, no need to provide set google_cloud_project=None
# If no need to mount google drive, set mount_drive=False
```

## Effect

When `google_cloud_project` is given,

- Set the default project ID
    - Run `gcloud config set ...`
    - Set `GOOGLE_CLOUD_PROJECT` env variable
- Open the authentication prompt
- Introduce bigquery magic command `bq`


When `mount_drive` is true,

- Google drive is mounted at '/content/drive'


