Metadata-Version: 1.1
Name: doco
Version: 0.0.4
Summary: Client library for docomo API written in Python.
Home-page: http://github.com/heavenshell/py-doco
Author: Shinya Ohyanagi
Author-email: sohyanagi@gmail.com
License: BSD
Description: doco
        ====
        .. image:: https://travis-ci.org/heavenshell/py-doco.svg?branch=master
            :target: https://travis-ci.org/heavenshell/py-doco
        
        Client library for docomo API written in Python.
        
        https://dev.smt.docomo.ne.jp/?p=docs.index
        
        Supported apis
        --------------
        - Dialogue
        
        Sample code
        -----------
        
        .. code:: python
        
          >>> from doco.client import Client
          >>> c = Client(apikey='YOUR_API_KEY')
          >>> res = c.send(utt='hello', apiname='Dialogue')
          >>> print(res)
          {"utt":"はろー","yomi":"はろー","mode":"dialog","da":"30","context":"7DGIKMpQDE0zrQrYFAMqdw"}
          >>> print(c.last_response.status_code)
          200
          >>> print(c.last_response.headers)
          {'Content-Length': '99', 'Connection': 'keep-alive', 'Content-Type': 'application/json;charset=UTF-8', 'Date': 'Wed, 17 Dec 2014 05:28:28 GMT', 'asyncServiceInvoke': 'false'}
        
        Cli example
        -----------
        
        .. code:: python
        
          $ export DOCO_API_KEY="YOUR API KEY"
          $ python examples/dialogue_cli.py -u こんにちは
          'mode': 'dialog', 'utt': 'どうも', 'context': 'N1liohyhkp6K7M80KS3bwg', 'da': '0', 'yomi': 'どうも'}
        
        Interactive shell mode
        ~~~~~~~~~~~~~~~~~~~~~~
        
        .. code:: python
        
          $ export DOCO_API_KEY="YOUR API KEY"
          $ python examples/dialogue_cli.py -i
          Welcome to docomo dialogue cli.
          ^D to exit.
          >>> こんにちは
          はろー
          >>>
        
        Shiritori mode
        ~~~~~~~~~~~~~~
        
        .. code:: python
        
          $ export DOCO_API_KEY="YOUR API KEY"
          $ python examples/dialogue_cli.py -i -s
          Welcome to docomo dialogue cli.
          ^D to exit.
          >>> しりとり
          リング
          >>> グッズ
          頭痛
          >>> 海
          道のり
          >>> リンゴ
          ゴリラ
          >>> ラッパ
          パスポート
          >>>
        
Platform: any
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Topic :: Internet :: WWW/HTTP
