OK, the story so far:
import gdata
import gdata.auth
import gdata.gauth
import gdata.docs.service
import OpenSSL.crypto
tokenfile = "privatekey.p12"
#f = open(tokenfile, 'r')
#blob = f.read()
#f.close()
#if blob:
p12 = OpenSSL.crypto.load_pkcs12(file(tokenfile, 'rb').read(), 'notasecret')
print
OK, maybe the p12 file is useful after all (?) I've got the following code:
import gdata
tokenfile = "my-privatekey.p12"
f = open(tokenfile, 'r')
blob = f.read()
f.close()
token = gdata.gauth.token_from_blob(blob)
When I run that I get:
Traceback (most recent call last):
File "/home/mcarter/wa
On Sep 2, 7:13 pm, [EMAIL PROTECTED] (Alex Martelli) wrote:
> iapain <[EMAIL PROTECTED]> wrote:
> > On Aug 31, 5:40 pm, Michele Simionato <[EMAIL PROTECTED]>
> > wrote:
> > > I would like to upload a tab-separated file to a Google spreadsheet
> > > from Python. Does anybody
> > > have a recipe hand
iapain <[EMAIL PROTECTED]> wrote:
> On Aug 31, 5:40 pm, Michele Simionato <[EMAIL PROTECTED]>
> wrote:
> > I would like to upload a tab-separated file to a Google spreadsheet
> > from Python. Does anybody
> > have a recipe handy? TIA,
> >
> > Michele Simionato
>
> Probably its irrelevant to p
On Aug 31, 5:40 pm, Michele Simionato <[EMAIL PROTECTED]>
wrote:
> I would like to upload a tab-separated file to a Google spreadsheet
> from Python. Does anybody
> have a recipe handy? TIA,
>
> Michele Simionato
Probably its irrelevant to python. Use should see Google Spreadsheet
API and use