SharePy

Upload your files to Nokia Share On Ovi from your Internet Tablet

 

Tutorial

 
Coming soon.

ShareOnOvi python library

 
ShareOnOvi is a Python module for interacting with Nokia's "Share on Ovi".
Actually the published version is 1.0, September 2008.
It isn't a standalone library else it comes included with SharePy.
You can see the code of the ShareOnOvi library.
It has a GPL license; either version 2 of the License, or (at your option) any later version.

This python library is based in the PHP class written by Peter Rukavina.

Upload a file
import share_on_ovi
shareonovi = share_on_ovi.ShareOnOvi(username, password)
shareonovi.upload(filename, title, summary, channel, tags, filetype)

Where:
filename: the complete path to the file to upload. '/home/user/photo.jpg'
title: title for the file uploaded, works like in Share on Ovi service.
summary: summary for the file uploaded, works like in Share on Ovi service.
channel: 'mymedia' for the private channel, 'public' for the public one. You can pass a created channel getting the channel list with the getChannels function.
tags: tag list for the file uploaded. ['tag1', 'tag2', 'tag3']
filetype: file type for the file uploaded. 'image/jpeg'

channel and filetype are obligatory parameters. Others are optional.

Get channel list
import share_on_ovi
shareonovi = share_on_ovi.ShareOnOvi(username, password)
shareonovi.getChannels()

it return a list similar to ['public', 'mymedia', 'channel1'] with all the channels from Share On Ovi.