Metadata-Version: 1.1
Name: sparkpost
Version: 1.0.0.dev1
Summary: SparkPost Python API client
Home-page: https://github.com/SparkPost/python-sparkpost
Author: Message Systems
Author-email: appteam@messagesystems.com
License: Apache 2.0
Description: SparkPost Python API client
        ===========================
        
        The super-mega-official Python package for using the SparkPost API.
        
        
        Installation
        ------------
        
        Install from PyPI using `pip`_:
        
        .. code-block:: bash
        
            $ pip install sparkpost
        
        .. _pip: http://www.pip-installer.org/en/latest/
        
        
        Get a key
        ---------
        
        Go to `API & SMTP`_ in the SparkPost app and create an API key. We recommend using the ``SPARKPOST_API_KEY`` environment variable:
        
        .. code-block:: python
        
            from sparkpost import SparkPost
            sp = SparkPost() # uses environment variable
        
        Alternatively, you can pass the API key to the SparkPost class:
        
        .. code-block:: python
        
            from sparkpost import SparkPost
            sp = SparkPost('YOUR API KEY')
            
        .. _API & SMTP: https://app.sparkpost.com/#/configuration/credentials
        
        
        Send a message
        --------------
        
        Here at SparkPost, our messages are known as transmissions. Let's use the underlying `transmissions API`_ to send a friendly test message:
        
        .. code-block:: python
        
            from sparkpost import SparkPost
            
            sp = SparkPost()
            
            response = sp.transmission.send(
                recipients=['someone@somedomain.com'],
                html='<p>Hello world</p>',
                from_email='test@sparkpostbox.com',
                subject='Hello from python-sparkpost'
            )
            
            print response
            # outputs {u'total_accepted_recipients': 1, u'id': u'47960765679942446', u'total_rejected_recipients': 0}
        
        .. _transmissions API: http://www.sparkpost.com/docs/transmissions-api
        
        
        Documentation
        -------------
        
        * Documentation for `python-sparkpost`_ 
        * `SparkPost API Reference`_ 
        
        .. _python-sparkpost: http://readthedocs.org/docs/python-sparkpost
        .. _SparkPost API Reference: https://www.sparkpost.com/docs/introduction
        
        
        Contribute
        ----------
        
        #. Check for open issues or open a fresh issue to start a discussion around a feature idea or a bug.
        #. Fork `the repository`_ on GitHub and make your changes in a branch on your fork
        #. Write a test which shows that the bug was fixed or that the feature works as expected.
        #. Send a pull request. Make sure to add yourself to AUTHORS_.
        
        .. _`the repository`: http://github.com/richleland/python-sparkpost
        .. _AUTHORS: https://github.com/richleland/python-sparkpost/blob/master/AUTHORS.rst
        
Platform: UNKNOWN
Classifier: Development Status :: 1 - Planning
Classifier: Intended Audience :: Developers
Classifier: Topic :: Communications :: Email
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
