Skip to main content

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)

Source distribution for smsit 1.2.0
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

Release history Release notifications | RSS feed

This release

1.2.0 This release

1 release file

1.1.0

1 release file

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.2.0

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

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