Skip to content

aldifahrezi/domo-python-sdk

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python3 - Domo API SDK (pydomo)

License

Current Release: 0.1.2

About

  • The Domo API SDK is the simplest way to automate your Domo instance
  • The SDK streamlines the API programming experience, allowing you to significantly reduce your written code
  • This has not yet been tested with Python2
  • PyDomo has been published to PyPI, and can be installed via pip3 install pydomo requests jsonpickle

Features:

Setup

  • Install Python3: https://www.python.org/downloads/
    • Linux: 'apt-get install python3'
    • MacOS: 'brew install python3'
    • Windows: direct download, or use Bash on Windows 10
  • Install PyDomo and its dependencies via pip3 install pydomo requests jsonpickle

Updates

  • Update your PyDomo package via pip3 install pydomo --upgrade
  • View the changelog

Usage

  • See examples.py for full usage
  • Create an API Client on the Domo Developer Portal
  • Use your API Client id/secret to instantiate pydomo 'Domo()'
  • Multiple API Clients can be used by instantiating multiple 'Domo()' clients
  • Authentication with the Domo API is handled automatically by the SDK
  • If you encounter a 'Not Allowed' error, this is a permissions issue. Please speak with your Domo Administrator.
import logging
from pydomo import Domo

# Build an SDK configuration
client_id = 'MY_CLIENT_ID'
client_secret = 'MY_CLIENT_SECRET'
api_host = 'api.domo.com'
use_https = True
logger_name = 'foo'
logger_level = logging.INFO

# Create an instance of the SDK Client
domo = Domo(client_id, client_secret, api_host, use_https, logger_name, logger_level)

# Manage DataSets
domo.datasets.create()

# Manage Streams
domo.streams.create()

# Manage Users
domo.users.create()

# Manage User Groups
domo.groups.create()

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.9%
  • Shell 0.1%