Code Monkey home page Code Monkey logo

udacity-api-python's Introduction

Unofficial Udacity API (for Python)

by Ty-Lucas Kelley

build-status version downloads


##  ##   #####     ####     #####   ######   ######   ##  ##
##  ##   ##   #   ##  ##   ##         ##       ##     ##  ##
##  ##   ##   #   ######   ##         ##       ##      ####
##  ##   ##   #   ##  ##   ##         ##       ##       ##
 ####    #####    ##  ##    #####   ######     ##       ##

This is an unofficial client library for interacting with Udacity courses and users. It is made up of two parts:

  • Catalog
  • User
    • Log into your Udacity account, see user info, and check course progress

Warning

Note that this is not an official Udacity product. They are allowed to change their internal API at any time, and I will try my best to make sure this library gets updated as well.

In the end, be sure to use this only for personal purposes, not any serious application with a lot of users.

Installation

It's on pip! Install it from the terminal, with Python 2 or 3:

$ pip install udacity

You can then include it in your application:

import udacity

User

The User class is used to view a user's account info and see their progress in courses. It includes a lot of convenience functions.

Run pydoc udacity.User for information about each method and what it returns.

Example usage:

import udacity

user = udacity.User('[email protected]', 'password123')
name = user.name()

# print out quiz completion rate in each course
for course in user.enrollments():
    prog = user.progress(course)
    print('Course: ' + prog['title'])
    print('\t' + str(prog['quizzes_completed']) + '/'
            + str(prog['quiz_count']) + ' quizzes completed')

Catalog

The Catalog class can be used to filter data from Udacity's Catalog API. It has plenty of convenience functions.

Run pydoc udacity.Catalog for information about each method and what it returns.

Example usage:

import udacity

c = udacity.Catalog()

tracks = c.tracks()

track_names = [t['name'] for t in tracks]
web_dev_teachers = c.instructors('cs253')
nd001_description = c.degree('nd001')['expected_learning']

udacity-api-python's People

Contributors

ueg1990 avatar

Watchers

James Cloos avatar Jose Galvez avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.