Metadata-Version: 2.1
Name: smsit
Version: 1.0.2
Summary: A simple wrapper to send SMS through available gateways.
Home-page: UNKNOWN
Author: Meyti
Author-email: UNKNOWN
License: MIT License
Platform: UNKNOWN
Classifier: Environment :: Console
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: Development Status :: 3 - Alpha
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Topic :: Software Development
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Dist: requests

SMSit
=====

A simple wrapper to send SMS through available gateways.


Gateways
--------

- `SMSMagic <https://sms-magic.com/>`_
- `NikSMS <https://niksms.com>`_


Install
-------

.. code-block:: bash

    pip install smsit

Usage
-----

Basic:

.. code-block:: python

    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:

.. code-block:: python

    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)


