{ "info": { "author": "manifoldco", "author_email": "dom@manifold.co", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "======\npytill\n======\n\n\n.. image:: https://img.shields.io/pypi/v/pytill.svg\n :target: https://pypi.python.org/pypi/pytill\n\n.. image:: https://img.shields.io/travis/manifoldco/pytill.svg\n :target: https://travis-ci.org/manifoldco/pytill\n\n.. image:: https://readthedocs.org/projects/pytill/badge/?version=latest\n :target: https://pytill.readthedocs.io/en/latest/?badge=latest\n :alt: Documentation Status\n\n\nPython package for using Till Mobile brought to you by manifold.co\n\n\n* Free software: BSD license\n* Documentation: https://pytill.readthedocs.io.\n\n\nHow to use\n--------\n\nSet up a plan for till and retrieve till username and api key. This packages expects the username and api key are injected as env vars ``USERNAME`` and ``API_KEY``.\n\nYou can do this simply through manifold:\n\n.. code-block:: bash\n\n manifold create -p till-project --product till --plan free # provision a free till resource\n manifold run -p till-project -- python # inject vars\n\n\n.. code-block:: python\n\n import pytill # or from pytill import pytill\n\n # send a message\n pytill.send_message(['19024880000'], 'I am sending a till message isnt that cool!')\n\n # ask a question\n # note that asking a question is how we open two-way communicate in Till\n # so this is also how you intiate listening to responses to a sms number with Till\n question = pytill.make_question('How cool is Till mobile?', 'my-question', 'my.webhook/listens/here')\n pytill.send_question(['19024441111', '16139094888'], [question], 'my-project')\n\n # retrieve result\n print(pytill.get_results(question_tag='my-question'))\n\n # example output\n\n # {'meta': {'limit': 20, 'next': None, 'offset': 0, 'previous': None, 'total_count': 1}, 'objects': [{'created': '2018-08-27T19:07:35.423855', 'guid': '252cd98f-5969-44c9-a955-7bb54e6f0d19', 'origin_phone_number': '+16508668969', 'participant_guid': '883c8f57-74b9-43cb-bb72-c7634b97651a', 'participant_phone_number': '+19024000158', 'project_launch_guid': '80262aea-a77e-4a0c-911f-23b959aea6da', 'project_launch_participant_guid': '8a23ee27-4841-4f2b-83d5-2a59a05825b8', 'project_tag': 'my-project', 'question_display_order': '0', 'question_guid': '8c8c168f-87d5-454d-8bae-09781312c097', 'question_tag': 'my-question', 'question_text': 'How cool is Till mobile?', 'result_answer': 'really cool!', 'result_guid': '252cd98f-5969-44c9-a955-7bb54e6f0d19', 'result_response': 'really cool!', 'result_timestamp': '2018-08-27T19:07:35.423855', 'updated': '2018-08-27T19:07:35.423884'}]}\n\n # retrive stats about till usage\n print(pytill.get_stats())\n\n\n=======\nHistory\n=======\n\n1.0.0 (2018-08-31)\n------------------\n\n* Release full package.\n\n0.1.0 (2018-08-27)\n------------------\n\n* First release on PyPI.\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/manifoldco/pytill", "keywords": "pytill", "license": "BSD license", "maintainer": "", "maintainer_email": "", "name": "pytill", "package_url": "https://pypi.org/project/pytill/", "platform": "", "project_url": "https://pypi.org/project/pytill/", "project_urls": { "Homepage": "https://github.com/manifoldco/pytill" }, "release_url": "https://pypi.org/project/pytill/1.0.0/", "requires_dist": null, "requires_python": "", "summary": "Python package for using Till Mobile", "version": "1.0.0" }, "last_serial": 4226545, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "d5f40ced06d165d0b92533d783c912a2", "sha256": "a51e57f3417113e413e2255650b16e6c1738ca86f9b864eb0c858eb56ea18c41" }, "downloads": -1, "filename": "pytill-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d5f40ced06d165d0b92533d783c912a2", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4803, "upload_time": "2018-08-28T01:52:21", "url": "https://files.pythonhosted.org/packages/19/3d/c2877de723c799181eb42b8381b747d31a2860683657ba424a9e62f06938/pytill-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3259b868108ee65bc8e45b224222eb5a", "sha256": "c4ce4a71cc2b118fe012c8bee3c5b83537e460b20c09802803bcf16abb4ac01a" }, "downloads": -1, "filename": "pytill-0.1.0.tar.gz", "has_sig": false, "md5_digest": "3259b868108ee65bc8e45b224222eb5a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15076, "upload_time": "2018-08-28T01:52:23", "url": "https://files.pythonhosted.org/packages/d9/e2/76f7c5eb7bdb0678865badc987e29b369624f5cf43508bfa49dcbe6cf39c/pytill-0.1.0.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "a9fc0da2e07dd84c50a0de7983c9bda7", "sha256": "118e79a14b9b706a9e14c158db31b48d81615bb843dba816c86b0ad954183caf" }, "downloads": -1, "filename": "pytill-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a9fc0da2e07dd84c50a0de7983c9bda7", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5026, "upload_time": "2018-08-31T14:25:41", "url": "https://files.pythonhosted.org/packages/75/e5/7059a2f7592b5218f5cd2f76efe8f42553efd65c52e1ad9986908cc4a00c/pytill-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "84692791893c8eeff35dd119eb88a75e", "sha256": "d8e475a952e1f689e121052af69bc402aad24b41d3640329fbfb577bea8e1bc7" }, "downloads": -1, "filename": "pytill-1.0.0.tar.gz", "has_sig": false, "md5_digest": "84692791893c8eeff35dd119eb88a75e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11327, "upload_time": "2018-08-31T14:25:42", "url": "https://files.pythonhosted.org/packages/33/7e/6cedc353184fcf1b414b00d959d8da6303171f01b6fef9690980722c4a7d/pytill-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a9fc0da2e07dd84c50a0de7983c9bda7", "sha256": "118e79a14b9b706a9e14c158db31b48d81615bb843dba816c86b0ad954183caf" }, "downloads": -1, "filename": "pytill-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a9fc0da2e07dd84c50a0de7983c9bda7", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5026, "upload_time": "2018-08-31T14:25:41", "url": "https://files.pythonhosted.org/packages/75/e5/7059a2f7592b5218f5cd2f76efe8f42553efd65c52e1ad9986908cc4a00c/pytill-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "84692791893c8eeff35dd119eb88a75e", "sha256": "d8e475a952e1f689e121052af69bc402aad24b41d3640329fbfb577bea8e1bc7" }, "downloads": -1, "filename": "pytill-1.0.0.tar.gz", "has_sig": false, "md5_digest": "84692791893c8eeff35dd119eb88a75e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11327, "upload_time": "2018-08-31T14:25:42", "url": "https://files.pythonhosted.org/packages/33/7e/6cedc353184fcf1b414b00d959d8da6303171f01b6fef9690980722c4a7d/pytill-1.0.0.tar.gz" } ] }