Python with boto3
The dcdcpy (deprecated) page explains how to use the DataCamp Data Connector using a convenient python package created by DataCamp. However, if you cannot install the package, you can also use the opensource (created by aws) boto3 package instead.
The dcdcpy package is actually just a wrapper of the boto3 library custom built to support our Data Model.
This page describes how you can easily use the boto3 library to use Python to analyze the data from the Data Connector.
Before you get started, please make sure your credentials are set up properly. How to do this is explained in the Storing your Credentials article.
Examples
Get a list of all users
This script retrieves a list of all users from the Data Connector and stores it in a pandas dataframe.
Get time spent on courses for a single user
This code will print a dataframe with all course activity for a single user, it lists the course, the amount of time spent (in seconds) and date for all their learning sessions.
More examples?
Reach out to your customer success manager and we are happy to help you get the data you need using our python library or SQL.
Last updated