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 Provenance Actions
smsit-1.2.0.tar.gz 7.1 kB Without provenance Details for smsit-1.2.0.tar.gz

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

Security for smsit 1.2.0

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.

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