juzam / Puff

A python API wrapper that enables posting audio to Huffduffer.

Home Page:http://gloryfish.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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)

About

A python API wrapper that enables posting audio to Huffduffer.

http://gloryfish.org


Languages

Language:Python 100.0%