Installation is Easy
********************
/**
Recommendation to use Virtual Environment
**/
1 ) Download from::
http://scm.sparrowsms.com/sparrow/sparrowsdk.git
2) cd SparrowSDK
OR
sparrowsdk
3) Installing in Virtual Environment
$: mkvirtualenv sparrow
(sparrow)$:python setup.py install
else
$:python setup.py install
Note :: You may require root access if installing in system
Sparrow Python SDK
This client library is designed to support the Sparrow sms Api and the official SparrowSmsSDK, which is the canonical way to implement Sparrow sms Outgoing api. You can read more about the API by accessing its official documentation.
Send SMS:
*******************************
from sparrow import PushClient
pushclient = PushClient(client_id='client_id', username='username', password='password')
push_queue = pushclient.enqueue(destination='destination list, tuple or string seperated by commas', message='message')
push_resp = pushclient.send()
*******************************
Simulate Send SMS:
*******************************
from sparrow import PushClient
pushclient = PushClient(client_id='client_id', username='username', password='password')
push_queue = pushclient.enqueue(destination='destination list, tuple or string seperated by commas', message='message')
push_resp = pushclient.simulate()
*******************************
Check Credit Status:
*******************************
from sparrow import PushClient
pushclient = PushClient(client_id='client_id', username='username', password='password')
push_resp = pushclient.credit_status()
*******************************
Request for Credit Topup:
*******************************
from sparrow import PushClient
pushclient = PushClient(client_id='client_id', username='username', password='password')
push_resp = pushclient.topup(amount='credit_amount')
*******************************
Having trouble with Pages? we’ll help you sort it out. developers@sparrowsms.com
Metadata
Release files for SparrowSDK 1.0.1
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 |
|---|---|---|---|---|
| SparrowSDK-1.0.1.tar.gz | 5.1 kB | Without provenance | Details for SparrowSDK-1.0.1.tar.gz |
Release files / SparrowSDK-1.0.1.tar.gz
| Download URL | SparrowSDK-1.0.1.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a78f2d065b24690448db505f4a7d8dfc23896129a8240197b0e56826af78fc46
|
|
BLAKE2b-256 checksum How to use checksums |
a0ebbab2d9caff6ba6ffac0cbdb1cff23b42f4937f848a71ded3bc7319ab5fd2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for SparrowSDK 1.0.1
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.