Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A python API wrapper that enables posting audio to Huffduffer.
Python
Branch: master
Pull request Compare This branch is 5 commits ahead of GloryFish:master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
README.mdown
puff.py

README.mdown

Puffer

A python API wrapper that enables posting audio to Huffduffer.

Can also be used as a simple command-line client.

Bear in mind that this sends yuor username/password via http, there isn't any https protected Huffduffer login page AFAIK -- J.

Usage

Command line

puff.py http://example.com/audio.mp3

Module

You can specify a username and password directly to the Puffer() constructor, or create a puff.ini file with the following format in the same directory as puff.py:

[huffduffer]
username = YOURUSERNAME
password = YOURPASSWORD

Then in your code:

import puff
puffer = puff.Puffer()
puffer.post('http://example.com/audio.mp3')

Requirements

Python 2.x Mechanize (pip install mechanize)

Something went wrong with that request. Please try again.