项目作者: pandemicsyn

项目描述 :
Python Asana API绑定
高级语言: Python
项目地址: git://github.com/pandemicsyn/asana.git
创建时间: 2012-05-04T06:13:56Z
项目社区:https://github.com/pandemicsyn/asana

开源协议:Apache License 2.0

下载


" class="reference-link">Asana python api - unmaintained

Asana now has official python bindings its also important to note that Asana took over the “asana” pypi name.

python wrapper for the Asana API

Documentation is available at: AsanaAPI

This project is a work in progress. Here’s what’s currently available:

  • add_project_task
  • add_story
  • add_tag_task
  • create_project
  • create_tag
  • create_task
  • add_parent
  • create_subtask
  • get_basic_auth
  • get_project
  • get_project_tasks
  • get_story
  • get_subtasks
  • get_tag_tasks
  • rm_tag_task
  • get_task_tags
  • get_tags
  • get_task
  • list_projects
  • list_stories
  • list_tasks
  • list_users
  • list_workspaces
  • rm_project_task
  • update_project
  • delete_project
  • update_task
  • update_workspace
  • user_info

Todo:

  • All the things!
  • unittests
  • Better error handling

Sample:

  1. from asana import asana
  2. asana_api = asana.AsanaAPI('YourAsanaAPIKey', debug=True)
  3. # see your workspaces
  4. myspaces = asana_api.list_workspaces() #Result: [{u'id': 123456789, u'name': u'asanapy'}]
  5. # create a new project
  6. asana_api.create_project('test project', myspaces[0]['id'])
  7. # create a new task
  8. asana_api.create_task('yetanotherapitest', myspaces[0]['id'], assignee_status='later', notes='some notes')
  9. # add a story to task
  10. asana_api.add_story(mytask, 'omgwtfbbq')