Skip to content

diffgram/python-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SDK for Diffgram

This is the SDK for Diffgram
and Diffgram.com

SDK Install

Quickstart Install SDK

pip install diffgram

On linux pip3 install diffgram

Credentials Guide
Get Credentials from Diffgram.com (or your Private Deploy)

The starting point for most useful work is to get a project:

from diffgram import Project

project = Project(host = "https://diffgram.com",
		  project_string_id = "replace_with_project_string",
		  client_id = "replace_with_client_id",
		  client_secret = "replace_with_client_secret")

Replace host with your URL for Open Core installs.

Beta

Note the API/SDK is in beta and is undergoing rapid improvement. There may be breaking changes. Please see the API docs for the latest canonical reference and be sure to upgrade to latest ie: pip install diffgram --upgrade. We will attempt to keep the SDK up to date with the API.

Help articles for Diffgram.com See below for some examples.

Requires Python >=3.5

The default install through pip will install dependencies for local prediction (tensorflow opencv) as listed in requirements.txt. The only requirement needed for majority of functions is requests. If you are looking for a minimal size install and already have requests use the --no-dependencies flag ie pip install diffgram --no-dependencies