Skip to main content

A simple API for linking Google Colab Notebooks to Gitlab using SSH

Project description

colab_gitlab_setup

A simple pythion package-based API that supports a workflow for integrating Google Colab notebooks with Gitlab repositories, using SSH token authentication.

synopsis

This package simplifies the process of linking a Google Colaboratory Notebook to Gitlab using SSH key authentication. The use of SSH keys removes the need to enter passwords or insert keys in the notebook, both of which would represent security risks.

The setup process can be broken down into the following steps:

  1. Generate an SSH key pair and SSH config file and create a tarball file on your local machine.
  2. Upload a copy of the public key to your chosen Gitlab repository as a Deploy Key.
  3. Upload the SSH key tarball to the Colab environment.
  4. Install the SSH keys and set up the necessary SSH config files in the Colab file system.
  5. Start an SSH Agent and Provide it with your Private SSH key.
  6. Mount your GDrive and create a folder for cloning to.
  7. Clone your gitlab repository to a chosen Google Drive folder.

You will still need to do steps 1 & 2 yourself (instructions to follow shortly). This python package automates the process for steps 3-6. It also provides a simple API to perform step 7 as proof that the integration has worked.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ColabGitlabSetup-0.0.2.tar.gz (3.9 kB view details)

Uploaded Source

File details

Details for the file ColabGitlabSetup-0.0.2.tar.gz.

File metadata

  • Download URL: ColabGitlabSetup-0.0.2.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.7.3

File hashes

Hashes for ColabGitlabSetup-0.0.2.tar.gz
Algorithm Hash digest
SHA256 f6592a2d926f33ee278ff4f1d9ee26370bdbd93f82cadd1afb390ba1a22b93c2
MD5 0876cc7735b5cde53803f92d658d35fe
BLAKE2b-256 3943d66a23cb5c983ba4c4f4cfca15c5a11ce2405d7fd2a5a72359b4d1c94789

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page