Developing Python Apps on Windows Azure

5,571 views

Published on

by 上官林傑 (ericsk)

Published in: Technology
  • Be the first to comment

Developing Python Apps on Windows Azure

  1. 1. http://www.windowsazure.com/zh-tw/
  2. 2. Azure
  3. 3. Azure
  4. 4. Azure
  5. 5. How Python Runs
  6. 6. 1. Create Project 3. Publish 2. Add Azure Cloud Service Project
  7. 7. pip install azure
  8. 8. # init an azure table service instancefrom azure import storagets = storage.TableService(account_name=<STORAGE_NAME>, account_key=<STORAGE_KEY>)# create tablets.create_table(MY_TABLE_NAME)# add an entityts.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)
  9. 9. http://www.windowsazure.com/zh-tw/http://www.windowsazure.com/en-us/develop/python/https://github.com/WindowsAzurehttps://github.com/WindowsAzure/azure-sdk-for-python

×