Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Developing Python Apps on Windows Azure

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers. →

Developing Python Apps on Windows Azure

How to put your Python apps on Windows Azure

Eric Shangkuan

June 10, 2012

Transcript

20 slides
  1. NCTU 2000 ~ 2004 上官林傑 (Eric) Technical Evangelist, MS NTU

    2004 ~ 2006 CHT 2007 ~ 2011 Taipei GTUG 2009 ~ 2010 Microsoft 2011 ~ ?
  2. # init an azure table service instance from azure import

    storage ts = storage.TableService(account_name='<STORAGE_NAME>', account_key='<STORAGE_KEY>') # create table ts.create_table('MY_TABLE_NAME') # add an entity ts.insert_entity('MY_TABLE_NAME', { 'PartitionKey': 'hello1234', 'RowKey': '20120610', 'name': 'Eric', 'say': 'PyCon Taiwan rocks!' }) # list entities... entities = ts.query_entities('MY_TABLE_NAME', '', 'name,say') for entity in entities: print '%s: %s' % (entity.name, entity.say)

More Decks by Eric Shangkuan

Other Decks in Programming