Skip to main content

sms91-sms-otp

This a tiny library for sending sms and otp using sms91.

Basic usage

You could simply send a message, OTP and verify otp.

from sms91.sendsms import SMSClient
cli = SMSClient()
#initializing app

# get this key from https://msg91.com
key = "31*****************P1" 
# sender can be of anything in the length of 6. in inbox it will be "AX-TESTIN".
sender = "TESTIN" 
# [optional] no.of char in otp. minimum 4 char  
otp_size = 6
cli.initialize(key,sender,otp_size)

#send sms
#phno list should have 10 digit indian numbers.
phno = ["98XXXXXXX0,'77XXXXXXXX5"]
message = "hi! this is a test message"
cli.sendMessgae(message,phno) 

#send otp
phno = ["98XXXXXXX0,'77XXXXXXXX5"]
cli.sendOtp(phno) 

Yes, it is as simple as this.

Metadata

Release files for msg91-sms-otp 0.0.4

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

Source distribution (sdist)

Source distribution for msg91-sms-otp 0.0.4
File Size Uploaded Provenance
msg91-sms-otp-0.0.4.tar.gz 1.7 kB Without provenance Details

Release files / msg91-sms-otp-0.0.4.tar.gz

Download URL msg91-sms-otp-0.0.4.tar.gz
Size 1.7 kB
Tags Source
SHA-256 checksum
How to use checksums
c7b830bc5da33414d9f9ce598f7e6a633d9ae83355e4074a1fd9606ae6276425
BLAKE2b-256 checksum
How to use checksums
027ad587f8ddba4a718a6968c6045fa646a1e7edf1447decde0feffa8de53701
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.1 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.9

Security for msg91-sms-otp 0.0.4

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.4 This release

1 release file No provenance

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