A simple wrapper to send SMS through available gateways.
Gateways
Install
pip install smsit
Usage
Basic:
from smsit import SMS
from smsit.gateways import SMSMagicGateway
config = {
'api_key': '0000',
'sender_id': '1111'
}
sms = SMS(
text='Hi',
receiver='9893311223344'
)
SMSMagicGateway(config).send(sms)
With gateway manager:
from smsit import SMS, SMSGatewayManager
from smsit.gateways import SMSMagicGateway, NikSMSGateway
config = {
'smsmagic': {
'api_key': '0000',
'sender_id': '1111'
},
'niksms': {
'username': '0000',
'password': '0000',
'sender': '0000'
}
}
sms = SMS(
text='Hi',
receiver='9893311223344'
)
manager = SMSGatewayManager()
manager.register('smsmagic', SMSMagicGateway)
manager.register('niksms', NikSMSGateway)
manager.configure(config)
manager.send('smsmagic', sms)
Metadata
Release files for smsit 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| smsit-1.2.0.tar.gz | 7.1 kB | Details |
Release files / smsit-1.2.0.tar.gz
| Download URL | smsit-1.2.0.tar.gz |
|---|---|
| Size | 7.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f05cd19b831b52912256f7d94440edf6e456eab35203f946d222633d531315cf
|
|
BLAKE2b-256 checksum How to use checksums |
37c38ce4b2f5e17c8104f3f6c2b81fbf479ac9c1ad84794b3e23811f2fc36370
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.2
|