{ "info": { "author": "Ali Nikneshan", "author_email": "ali@nikneshan.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT 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": "Soroush Messenger Bot Python SDK\n================================\n\nSoroush Messenger Bot Wrapper for Python |shiled| |travis| |badge|\n|Documentation Status| |Updates|\n\nDependencies\n------------\n\n- Python 2.7+\n- requests\n- sseclient-py\n\nInstallation\n------------\n\n.. code:: bash\n\n pip install soroush-python-sdk\n\nRun the below commands\n\n.. code:: bash\n\n git clone https://github.com/soroush-app/bot-python-sdk\n cd bot-python-sdk\n pip install -r requirements.txt\n\nUsage\n-----\n\n.. code:: python\n\n from soroush_python_sdk import Client\n\n bot_token = 'your bot token'\n\n bot = Client(bot_token)\n\n try:\n to = 'user chat_id'\n\n [error, success] = bot.send_text(to, 'Your text')\n\n if success:\n print('Message sent successfully')\n else:\n print('Sending message failed: {}' .format(error))\n\n except Exception as e:\n print(e.args[0])\n\n\u201cto\u201d value in above example is chat_id of a bot user. You can find it in\nfront of \u2018from\u2019 key in a message that user has sent to your bot. You can\nsee more examples in the `examples`_ directory.\n\n## Contribute ## Contributions to the package are always welcome! -\nReport any idea, bugs or issues you find on the `issue tracker`_. - You\ncan grab the source code at the package\u2019s `Git repository`_.\n\n.. _examples: https://github.com/soroush-app/bot-python-sdk/tree/master/examples\n.. _issue tracker: https://github.com/soroush-app/bot-python-sdk/issues\n.. _Git repository: https://github.com/soroush-app/bot-python-sdk.git\n\n.. |shiled| image:: https://img.shields.io/pypi/v/soroush_python_sdk.svg\n.. |travis| image:: https://img.shields.io/travis/alinik/soroush_python_sdk.svg\n.. |badge| image:: https://readthedocs.org/projects/soroush-python-sdk/badge/?version=latest\n.. |Documentation Status| image:: https://readthedocs.org/projects/bot-python-sdk/badge/?version=latest\n :target: https://bot-python-sdk.readthedocs.io/en/latest/?badge=latest\n.. |Updates| image:: https://pyup.io/repos/github/alinik/bot-python-sdk/shield.svg\n :target: https://pyup.io/repos/github/alinik/bot-python-sdk/\n\n\n=======\nHistory\n=======\n\n0.1.0 (2018-10-25)\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/alinik/soroush_python_sdk", "keywords": "soroush_python_sdk", "license": "MIT license", "maintainer": "", "maintainer_email": "", "name": "soroush-python-sdk", "package_url": "https://pypi.org/project/soroush-python-sdk/", "platform": "", "project_url": "https://pypi.org/project/soroush-python-sdk/", "project_urls": { "Homepage": "https://github.com/alinik/soroush_python_sdk" }, "release_url": "https://pypi.org/project/soroush-python-sdk/0.2.4/", "requires_dist": null, "requires_python": "", "summary": "api to access soroush social network sdk", "version": "0.2.4" }, "last_serial": 4414987, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "356143bad33fe31a5d10f53480ed2d11", "sha256": "3ac38a6212926f11827485dbab39683e8bcb5076966f22b0cc3e25d04e6465a2" }, "downloads": -1, "filename": "soroush_python_sdk-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "356143bad33fe31a5d10f53480ed2d11", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5560, "upload_time": "2018-10-25T09:39:12", "url": "https://files.pythonhosted.org/packages/60/03/71dd575d8654ad6c039d48f09c59b5b3e17bc13e84012b747add00bb5002/soroush_python_sdk-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c9ef1aab922309b5e66e8185a423b3d9", "sha256": "fdd6e1ceefe927ce9558f59b60a5ce81c9fbf83b36fbccc5a1ed94bd26a9660d" }, "downloads": -1, "filename": "soroush_python_sdk-0.1.0.tar.gz", "has_sig": false, "md5_digest": "c9ef1aab922309b5e66e8185a423b3d9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10161, "upload_time": "2018-10-25T09:39:13", "url": "https://files.pythonhosted.org/packages/da/ad/be22e51f0f41d52c44f26216ed098ce1ac5b61fb29c52447e2be2f3263f0/soroush_python_sdk-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "a00016129ce19d7ce671e5487bfe85e1", "sha256": "ff5f83e8bd37bea35cab20810b63f8d31130e0ee06d3d0636040a95c0ca74dce" }, "downloads": -1, "filename": "soroush_python_sdk-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a00016129ce19d7ce671e5487bfe85e1", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5576, "upload_time": "2018-10-25T09:57:45", "url": "https://files.pythonhosted.org/packages/7e/49/2563012bccc7d715c4822bcc90971ef6e8181db5c26b723e0100f806562f/soroush_python_sdk-0.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9d88f95e910a810d50d3a437bf5c8c7d", "sha256": "c507af83210f5227df485ff090668fd074f5336d42f5009c92573cf31ec4369d" }, "downloads": -1, "filename": "soroush_python_sdk-0.2.0.tar.gz", "has_sig": false, "md5_digest": "9d88f95e910a810d50d3a437bf5c8c7d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15268, "upload_time": "2018-10-25T09:57:47", "url": "https://files.pythonhosted.org/packages/be/12/5901d5181ce699f5d7ec283ef2d145887c5b786324f57e976dee4c3c980b/soroush_python_sdk-0.2.0.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "b6fc5c7f48510ec6d36d50ab3a2b8f0a", "sha256": "1ff25fb1e8bc3db7888e896481db83d92ee6c4c4f6aee991a17663e3c2e0eac2" }, "downloads": -1, "filename": "soroush_python_sdk-0.2.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b6fc5c7f48510ec6d36d50ab3a2b8f0a", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6073, "upload_time": "2018-10-25T10:45:10", "url": "https://files.pythonhosted.org/packages/e6/b6/2d2c29c94d76ce0e2bbe043ead741ddc3b8fbee20e963cc4e086d17e41bb/soroush_python_sdk-0.2.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "41ab18d26fb19164178f2ac7f8684a5a", "sha256": "351d94cf0179712fd94df241f83b7877b608d68f7adf001a9bf2ace79ee079e8" }, "downloads": -1, "filename": "soroush_python_sdk-0.2.3.tar.gz", "has_sig": false, "md5_digest": "41ab18d26fb19164178f2ac7f8684a5a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10887, "upload_time": "2018-10-25T10:45:12", "url": "https://files.pythonhosted.org/packages/2f/81/2f5bcbb9432d8b48a5949d5513c35c1f15512e1d99bc8bc4c9b172eea62b/soroush_python_sdk-0.2.3.tar.gz" } ], "0.2.4": [ { "comment_text": "", "digests": { "md5": "df37152db1daf36270d363d5b33398f1", "sha256": "01ac7f290088d6a8303b775f43f18db29dd18d858ee802154b6960c7c0d27ba9" }, "downloads": -1, "filename": "soroush_python_sdk-0.2.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "df37152db1daf36270d363d5b33398f1", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6173, "upload_time": "2018-10-25T12:37:26", "url": "https://files.pythonhosted.org/packages/da/4b/9f0d642ed5dfdcd68d1218fc220238236adf8591007d190d405d5c08e70d/soroush_python_sdk-0.2.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "455b9dc7f06d1911a4bca784c2382303", "sha256": "46630e531a75ff8c13c4afcfa959379a8d462a7952e628448010c7d45ff50909" }, "downloads": -1, "filename": "soroush_python_sdk-0.2.4.tar.gz", "has_sig": false, "md5_digest": "455b9dc7f06d1911a4bca784c2382303", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15956, "upload_time": "2018-10-25T12:37:29", "url": "https://files.pythonhosted.org/packages/85/5b/08aa1d539a9adb2c9e6032de8af0406f93bf3a5252488a0b85382f1b0195/soroush_python_sdk-0.2.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "df37152db1daf36270d363d5b33398f1", "sha256": "01ac7f290088d6a8303b775f43f18db29dd18d858ee802154b6960c7c0d27ba9" }, "downloads": -1, "filename": "soroush_python_sdk-0.2.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "df37152db1daf36270d363d5b33398f1", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6173, "upload_time": "2018-10-25T12:37:26", "url": "https://files.pythonhosted.org/packages/da/4b/9f0d642ed5dfdcd68d1218fc220238236adf8591007d190d405d5c08e70d/soroush_python_sdk-0.2.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "455b9dc7f06d1911a4bca784c2382303", "sha256": "46630e531a75ff8c13c4afcfa959379a8d462a7952e628448010c7d45ff50909" }, "downloads": -1, "filename": "soroush_python_sdk-0.2.4.tar.gz", "has_sig": false, "md5_digest": "455b9dc7f06d1911a4bca784c2382303", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15956, "upload_time": "2018-10-25T12:37:29", "url": "https://files.pythonhosted.org/packages/85/5b/08aa1d539a9adb2c9e6032de8af0406f93bf3a5252488a0b85382f1b0195/soroush_python_sdk-0.2.4.tar.gz" } ] }