Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython

flixpy is unavailable in PyPM, because there aren't any builds for it in the package repositories. Click the linked icons to find out why.

 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
Windows (64-bit)
Mac OS X (10.5+)
Linux (32-bit)
0.1 Failed View build log
Linux (64-bit)
0.1 Failed View build log
 
Links
Dependencies
Lastest release
version 0.1 on Nov 28th, 2012

About

This code is desgined to make working with netflix's streaming API easy. We take the pure json output of the netflix API and wrap it in a format that is easy to consume in python.

This code started out as a branch of [pyflix] (http://code.google.com/p/pyflix/)

This is a work in progress.

install

pip install flixpy

setup

First you'll need to get a key and secret from netflix. you can do that by registering here: http://developer.netflix.com/member/register

Once you have those (and have registered an app with them) you can get started. At the most basic level you can access general netflix resources using just the data provided above:

``` python

System Message: WARNING/2 (<string>, line 28); backlink

Inline literal start-string without end-string.

from netflix import NetflixClient

APP_NAME = '<your app name>' API_KEY = '<your key>' API_SECRET = '<your secret>'

netflix = NetflixClient(APP_NAME, API_KEY, API_SECRET)

System Message: WARNING/2 (<string>, line 30)

Definition list ends without a blank line; unexpected unindent.

```

System Message: WARNING/2 (<string>, line 30); backlink

Inline literal start-string without end-string.

System Message: WARNING/2 (<string>, line 30); backlink

Inline interpreted text or phrase reference start-string without end-string.

You can then do anything that dosn't require a netflix user. An example is autocomplete:

``` python

System Message: WARNING/2 (<string>, line 34); backlink

Inline literal start-string without end-string.

results = netflix.catalog.autocomplete('batman')

print results

[u'Batman: The Animated Series',
u'Batman Beyond', u'Batman: The Brave and The Bold', ...

```

System Message: WARNING/2 (<string>, line 45); backlink

Inline literal start-string without end-string.

System Message: WARNING/2 (<string>, line 45); backlink

Inline interpreted text or phrase reference start-string without end-string.

Note that autocomplete only returns title strings. You can then use these in search to get exact matches with more data.

Subscribe to package updates

Last updated Nov 28th, 2012

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.