Python module for sending sms with Sinch
----------------------------------------
Deprecation Warning!
~~~~~~~~~~~~~~~~~~~~
This package will be deprecated and removed from PyPi by the end of January 2024.
For the new Sinch Python SDK go to - https://pypi.org/project/sinch or https://github.com/sinch/sinch-sdk-python
Installation
~~~~~~~~~~~~
.. code:: bash
pip install sinchsms
Usage example
~~~~~~~~~~~~~
.. code:: python
import time
from sinchsms import SinchSMS
number = '+46000000001'
message = 'Hello from Sinch!'
client = SinchSMS(your_app_key, your_app_secret)
print("Sending '%s' to %s" % (message, number))
response = client.send_message(number, message)
message_id = response['messageId']
response = client.check_status(message_id)
while response['status'] != 'Successful':
print(response['status'])
time.sleep(1)
response = client.check_status(message_id)
print(response['status'])
.. note::
You will need a Sinch account for getting your application key and secret. Visit www.sinch.com to get started.
Using as command line script
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. code:: bash
./sinchsms.py
usage: sinchsms.py <application key> <application secret> send <number> <message> <from_number>
sinchsms.py <application key> <application secret> status <message_id>
Raw data
{
"_id": null,
"home_page": "https://github.com/sinch/python-sinch-sms.git",
"name": "sinchsms",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "sms,sinch",
"author": "Slava Savitskiy",
"author_email": "slava@sinch.com",
"download_url": "https://files.pythonhosted.org/packages/cd/54/86a2dfbfcd40371ab2d2701848ad6dac8b3f33176314e3b466df6dc2baba/sinchsms-1.0.6.tar.gz",
"platform": null,
"description": "Python module for sending sms with Sinch\n----------------------------------------\n\nDeprecation Warning!\n~~~~~~~~~~~~~~~~~~~~\nThis package will be deprecated and removed from PyPi by the end of January 2024.\nFor the new Sinch Python SDK go to - https://pypi.org/project/sinch or https://github.com/sinch/sinch-sdk-python\n\n\nInstallation\n~~~~~~~~~~~~\n\n.. code:: bash\n\n pip install sinchsms\n\nUsage example\n~~~~~~~~~~~~~\n\n.. code:: python\n\n import time\n from sinchsms import SinchSMS\n\n number = '+46000000001'\n message = 'Hello from Sinch!'\n\n client = SinchSMS(your_app_key, your_app_secret)\n\n print(\"Sending '%s' to %s\" % (message, number))\n response = client.send_message(number, message)\n message_id = response['messageId']\n\n response = client.check_status(message_id)\n while response['status'] != 'Successful':\n print(response['status'])\n time.sleep(1)\n response = client.check_status(message_id)\n print(response['status'])\n\n.. note::\n\n You will need a Sinch account for getting your application key and secret. Visit www.sinch.com to get started.\n\nUsing as command line script\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n.. code:: bash\n\n ./sinchsms.py\n usage: sinchsms.py <application key> <application secret> send <number> <message> <from_number>\n sinchsms.py <application key> <application secret> status <message_id>\n\n",
"bugtrack_url": null,
"license": "",
"summary": "A module to send sms using the Sinch REST apis, www.sinch.com",
"version": "1.0.6",
"project_urls": {
"Homepage": "https://github.com/sinch/python-sinch-sms.git"
},
"split_keywords": [
"sms",
"sinch"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "d493cc884209d911e2b2df87700a3a2e6f4fe2665a1a855a63d2a77259dad32d",
"md5": "de70ddf48b5228cf5dab93dd842f552f",
"sha256": "bc7183fe92b15334bc9f32a4eb93ad9aa428fd4ed73767e6c4aa7951f998f428"
},
"downloads": -1,
"filename": "sinchsms-1.0.6-py3-none-any.whl",
"has_sig": false,
"md5_digest": "de70ddf48b5228cf5dab93dd842f552f",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 7820,
"upload_time": "2024-01-11T17:17:52",
"upload_time_iso_8601": "2024-01-11T17:17:52.592727Z",
"url": "https://files.pythonhosted.org/packages/d4/93/cc884209d911e2b2df87700a3a2e6f4fe2665a1a855a63d2a77259dad32d/sinchsms-1.0.6-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "cd5486a2dfbfcd40371ab2d2701848ad6dac8b3f33176314e3b466df6dc2baba",
"md5": "624aaabb2459a2ca5b119bed6eae09b3",
"sha256": "5b160b52593e4769426634cee626d66264504c9a7bc5a60b2363414b5511c5ff"
},
"downloads": -1,
"filename": "sinchsms-1.0.6.tar.gz",
"has_sig": false,
"md5_digest": "624aaabb2459a2ca5b119bed6eae09b3",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 7394,
"upload_time": "2024-01-11T17:17:54",
"upload_time_iso_8601": "2024-01-11T17:17:54.137641Z",
"url": "https://files.pythonhosted.org/packages/cd/54/86a2dfbfcd40371ab2d2701848ad6dac8b3f33176314e3b466df6dc2baba/sinchsms-1.0.6.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-01-11 17:17:54",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "sinch",
"github_project": "python-sinch-sms",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "sinchsms"
}