Skip to content

Instantly share code, notes, and snippets.

@andrewdoss-bit
Created September 9, 2021 19:22
Show Gist options
  • Save andrewdoss-bit/98ca415c9e0ef774816edfd3eeb58ba6 to your computer and use it in GitHub Desktop.
Save andrewdoss-bit/98ca415c9e0ef774816edfd3eeb58ba6 to your computer and use it in GitHub Desktop.
create repo
# Create a repo
import bitdotio
# Connect to bit.io
b = bitdotio.bitdotio(<YOUR_BITIO_KEY>)
# Construct a repo object
r = bitdotio.model.repo.Repo(name='my_new_repo',
description='My new repository.',
is_private=True)
# Create the repo
b.create_repo(repo=r)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment