oursms py:
a oursms Library in python
Installation:
Get the project useing pip
pip3 install oursms_py
Usage/Examples:
First you must import the lib
from oursms_py import *
then you create a client with your api credentials
client = Client(<USER-ID>, <API-KEY>)
Then you can send messages as follows
Normal Message:
msg=client.send_msg(<MOBILE-NUMBER, <MESSAGE-TEXT>)
if type(msg)==nan:
print("cant send")
#store message id to check status later if you want
OTP Message:
Here you send the otp as an integer and the api takes care of appending it to a message body
msg=client.send_otp(<MOBILE-NUMBER, <OTP_NUMBER>)
if type(msg)==nan:
print("cant send")
Message Status:
messageStatus = client.msg_status(<MESSAGE-ID>)
#This json List typically contains only one element
Metadata
Release files for oursms-py 0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| oursms_py-0.9.tar.gz | 14.6 kB | Without provenance | Details for oursms_py-0.9.tar.gz |
Release files / oursms_py-0.9.tar.gz
| Download URL | oursms_py-0.9.tar.gz |
|---|---|
| Size | 14.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
60860a5de52ef4294ecb22967837d488bac0cfa6384eeb5847f6252524dd1673
|
|
BLAKE2b-256 checksum How to use checksums |
7312d9eb1b065dc6b70cf55ec63e569db63198cbf06bebada4a5585b12d95d92
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5
|
Security for oursms-py 0.9
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.