Skip to main content

HSP SMS API

API Integration of HSPSMS

Contributors: WE'RE LOOKING FOR SOMEONE WHO CAN CONTRIBUTE IN DOCS

  • Civil Machines Technologies Private Limited: For providing me platform and funds for research work. This project is hosted currently with CMT only.
  • Himanshu Shankar: Himanshu Shankar has initiated this project and worked on this project to collect useful functions and classes that are being used in various projects.

Installation

  • Download and Install via pip
pip install hspsms

or
Download and Install via easy_install

easy_install hspsms

Send SMS

Following is a simple example

from hspsms import HSPConnector

hspconn = HSPConnector(username="", apikey="", sender="", smstype="")
hspconn.send_sms(recipient=[], message="", sendername="", smstype="", scheduled="")
Using with Django
Using django-sendsms
  • Install django-sendsms: pip install django-sendsms

  • Specify configuration for HSP API in settings.py

HSPSMS = {
    "USER": "",
    "APIKEY": "",
    "SENDER": "",
    "DEFAULT_SMSTYPE": ""
}
  • Specify default django-sendsms backend in settings.py
SENDSMS_BACKEND = 'hspsms.backends.DjangoSendSMSBackend'
Using with DRF Addons
  • Install drfaddons: pip install drfaddons
  • DRF Addons use django-sendsms to send sms. Follow steps for django-sendsms.
  • Use send_message function of drfaddons
from drfaddons.utils import send_message

send_message(message="message", subject="Fallback Email Subject", "recip": [...mobile_numbers...],
             "recip_email": [...respective_fallback_email_addresses...],
             "html_message": "fallback_html_message")

Metadata

Release files for hspsms 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hspsms 0.0.3
File Size Uploaded Provenance
hspsms-0.0.3.tar.gz 3.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for hspsms 0.0.3
File Interpreter ABI Platform
hspsms-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 20.1 kB

Release files / hspsms-0.0.3.tar.gz

Download URL hspsms-0.0.3.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
04d88f2a626492fab168cf26b547f36e9e50defe5631308f95476de5e117a587
BLAKE2b-256 checksum
How to use checksums
98bebe8d636fe166e0b8455aa340fac513b2b832b09c1ea8272130bb62ce9132
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

Release files / hspsms-0.0.3-py3-none-any.whl

Download URL hspsms-0.0.3-py3-none-any.whl
Size 16.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9d5d7d83d5da0bd8771b450588b275995c465c4052da4441c9f8e266ceede386
BLAKE2b-256 checksum
How to use checksums
232baa63e36b46ef7b576670b7fa938e603d6d00d77074edd65bc0a259023d59
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

Security for hspsms 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page