{"id":21013413,"url":"https://github.com/heavenshell/py-doco","last_synced_at":"2025-05-15T04:34:20.353Z","repository":{"id":24772478,"uuid":"28185864","full_name":"heavenshell/py-doco","owner":"heavenshell","description":"Client library for docomo API written in Python.","archived":false,"fork":false,"pushed_at":"2023-05-23T02:03:43.000Z","size":47,"stargazers_count":10,"open_issues_count":3,"forks_count":10,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-04-20T14:28:37.451Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/heavenshell.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-12-18T14:05:47.000Z","updated_at":"2021-08-24T10:26:31.000Z","dependencies_parsed_at":"2022-07-25T14:22:07.992Z","dependency_job_id":null,"html_url":"https://github.com/heavenshell/py-doco","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heavenshell%2Fpy-doco","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heavenshell%2Fpy-doco/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heavenshell%2Fpy-doco/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heavenshell%2Fpy-doco/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heavenshell","download_url":"https://codeload.github.com/heavenshell/py-doco/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225328913,"owners_count":17457326,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-19T09:42:19.393Z","updated_at":"2024-11-19T09:42:19.982Z","avatar_url":"https://github.com/heavenshell.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"doco\n====\n\n.. image:: https://github.com/heavenshell/py-doco/workflows/build/badge.svg\n    :target: https://github.com/heavenshell/py-doco/actions\n\nClient library for docomo API written in Python.\n\nhttps://dev.smt.docomo.ne.jp/?p=docs.index\n\nSupported apis\n--------------\n- Dialogue\n\nSample code\n-----------\n\n.. code:: python\n\n  \u003e\u003e\u003e from doco.client import Client\n  \u003e\u003e\u003e c = Client(apikey='YOUR_API_KEY')\n  \u003e\u003e\u003e res = c.send(utt='hello', apiname='Dialogue')\n  \u003e\u003e\u003e print(res)\n  {\"utt\":\"はろー\",\"yomi\":\"はろー\",\"mode\":\"dialog\",\"da\":\"30\",\"context\":\"7DGIKMpQDE0zrQrYFAMqdw\"}\n  \u003e\u003e\u003e print(c.last_response.status_code)\n  200\n  \u003e\u003e\u003e print(c.last_response.headers)\n  {'Content-Length': '99', 'Connection': 'keep-alive', 'Content-Type': 'application/json;charset=UTF-8', 'Date': 'Wed, 17 Dec 2014 05:28:28 GMT', 'asyncServiceInvoke': 'false'}\n\nCli example\n-----------\n\n.. code:: python\n\n  $ export DOCO_API_KEY=\"YOUR API KEY\"\n  $ python examples/dialogue_cli.py -u こんにちは\n  'mode': 'dialog', 'utt': 'どうも', 'context': 'N1liohyhkp6K7M80KS3bwg', 'da': '0', 'yomi': 'どうも'}\n\nInteractive shell mode\n~~~~~~~~~~~~~~~~~~~~~~\n\n.. code:: python\n\n  $ export DOCO_API_KEY=\"YOUR API KEY\"\n  $ python examples/dialogue_cli.py -i\n  Welcome to docomo dialogue cli.\n  ^D to exit.\n  \u003e\u003e\u003e こんにちは\n  はろー\n  \u003e\u003e\u003e\n\nShiritori mode\n~~~~~~~~~~~~~~\n\n.. code:: python\n\n  $ export DOCO_API_KEY=\"YOUR API KEY\"\n  $ python examples/dialogue_cli.py -i -s\n  Welcome to docomo dialogue cli.\n  ^D to exit.\n  \u003e\u003e\u003e しりとり\n  リング\n  \u003e\u003e\u003e グッズ\n  頭痛\n  \u003e\u003e\u003e 海\n  道のり\n  \u003e\u003e\u003e リンゴ\n  ゴリラ\n  \u003e\u003e\u003e ラッパ\n  パスポート\n  \u003e\u003e\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheavenshell%2Fpy-doco","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheavenshell%2Fpy-doco","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheavenshell%2Fpy-doco/lists"}