{ "info": { "author": "Netlandish Inc.", "author_email": "hello@netlandish.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Intended Audience :: Developers", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": ".. |nlshield| image:: https://img.shields.io/badge/100%25-Netlandish-blue.svg?style=square-flat\n :target: http://www.netlandish.com\n\n==============================\nsendypy |nlshield|\n==============================\n:Info: Simple module to interface with the Sendy API (https://sendy.co/api)\n:Version: 0.1.5b\n:Author: Peter Sanchez (http://www.petersanchez.com) - (http://www.netlandish.com)\n\nDependencies\n============\n\n* It was written for Python 2.7+ and Python 3.6+\n* Depends on the requests module\n\n**NOTE:**\n\n* **Version 1.3b** adds the new \"title\" variable to the ``create_campaign`` API call. It effects the default ordering of variables in the call. If you're upgrading from a previous version please ensure that you account for the new ordering of variables. This new variable was added in Sendy v2.1.2.6\n\nInstallation\n============\n\nPIP::\n\n pip install sendypy\n\nBasic Manual Install::\n\n $ python setup.py build\n $ sudo python setup.py install\n\nAlternative Install (Manually):\n\nPlace sendy directory in your Python path. Either in your Python installs site-packages directory or set your $PYTHONPATH environment variable to include a directory where the impersonate directory lives.\n\n\nUse\n===\nAll the variables and response values are described in the `Sendy API docs `_\n\nUsage is simple ::\n\n from sendy.api import SendyAPI\n api = SendyAPI(host='https://your-sendy-install.com/sendy/', api_key='YOUR_API_KEY')\n\nYou don't need to set the api_key variable if you're using the\nsubscribe or unsubscribe methods. You can also provide the optional\n\"debug\" variable (defaults to False). This will print debug into to\nstdout when sending a request to your Sendy install.\n\n**Subscribe** ::\n\n api.subscribe('list_id_here', 'email@address.com', 'optional first name', custom_field_1='value', custom_field_2='value', ...)\n\n*Optional fields*\n\n- `country`: User's 2 letter country code.\n- `ipaddress`: User's IP address.\n- `referrer`: The URL where the user signed up from.\n- `gdpr`: If you're signing up EU users in a GDPR compliant manner.\n- `hp`: Include this 'honeypot' field to prevent spambots.\n\n data = {\"gdpr\": True, \"ipaddress\": \"127.0.0.1\", \"country\": \"US\"}\n\n api.subscribe(list_id, email, **data)\n\n**Unsubscribe** ::\n\n api.unsubscribe('list_id_here', 'email@address.com')\n\n**Delete** ::\n\n api.delete('list_id_here', 'email@address.com')\n\n**Subscription Status** ::\n\n api.subscription_status('list_id_here', 'email@address.com')\n\n**Subscriber Count** ::\n\n api.subscriber_count('list_id_here')\n\n**Create Campaign** ::\n\n api.create_campaign(\n from_name='Your Name',\n from_email='Your Sender Email',\n reply_to='Your Reply-to Email',\n title='Your Email Title',\n subject='Your Email Subject',\n plain_text='Plain Text Email Body',\n html_text='HTML Email Body',\n list_ids='list_id_1,list_id_2,list_id_3',\n brand_id='your brand id',\n query_string='Your query string',\n send_campaign=0, #default's to 0, use 1 to send email right away\n )\n\n\nCopyright & Warranty\n====================\nAll documentation, libraries, and sample code are\nCopyright 2016 Netlandish Inc., Peter Sanchez . The library\nand sample code are made available to you under the terms of the BSD license\nwhich is contained in the included file, BSD-LICENSE.\n\n\n==================\nCommercial Support\n==================\n\nThis software, and lots of other software like it, has been built in support of many of\nNetlandish's own projects, and the projects of our clients. We would love to help you\non your next project so get in touch by dropping us a note at hello@netlandish.com.\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://bitbucket.org/netlandish/sendypy/", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "sendypy", "package_url": "https://pypi.org/project/sendypy/", "platform": "any", "project_url": "https://pypi.org/project/sendypy/", "project_urls": { "Homepage": "https://bitbucket.org/netlandish/sendypy/" }, "release_url": "https://pypi.org/project/sendypy/0.1.5b0/", "requires_dist": [ "requests (>=2.19.1)" ], "requires_python": "", "summary": "Python Interface for the Sendy API", "version": "0.1.5b0" }, "last_serial": 4433392, "releases": { "0.1.1b0": [ { "comment_text": "", "digests": { "md5": "647610f4d81ac602b2a9f0447914b844", "sha256": "d4c1bf956c98b5fec227cf5993fe406782183d2e43ea768314b6d674b960cd7a" }, "downloads": -1, "filename": "sendypy-0.1.1b0.tar.gz", "has_sig": false, "md5_digest": "647610f4d81ac602b2a9f0447914b844", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4325, "upload_time": "2016-10-18T15:42:30", "url": "https://files.pythonhosted.org/packages/1a/e6/a8275feefbc57b61bf693c962c97c2b60c9eacd1267bf1485b7e281611c8/sendypy-0.1.1b0.tar.gz" } ], "0.1.2b0": [ { "comment_text": "", "digests": { "md5": "5134a9c8b2e79b936f3be455a68b01c1", "sha256": "a9ee5e035a7cb4a2741347a449319a80198aec3431b541c1017a45261e0c79f6" }, "downloads": -1, "filename": "sendypy-0.1.2b0.tar.gz", "has_sig": false, "md5_digest": "5134a9c8b2e79b936f3be455a68b01c1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4314, "upload_time": "2016-11-09T02:50:59", "url": "https://files.pythonhosted.org/packages/55/d9/29e3cb6e2370549a54087f568074467acc8d3bec5c06731daf2d2c20b182/sendypy-0.1.2b0.tar.gz" } ], "0.1.3b0": [ { "comment_text": "", "digests": { "md5": "0ab6dd2b9c9b5f63603a50c5dd12a087", "sha256": "0d33ee63689c80207ea702d77ff0b01479b9de97734dd44ba5f2a33f82a5def5" }, "downloads": -1, "filename": "sendypy-0.1.3b0.tar.gz", "has_sig": false, "md5_digest": "0ab6dd2b9c9b5f63603a50c5dd12a087", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4478, "upload_time": "2017-02-03T19:38:25", "url": "https://files.pythonhosted.org/packages/f5/95/f53f6a3fecea98b48eebcfeb3f85c8fd64079d7d516d391743022effe418/sendypy-0.1.3b0.tar.gz" } ], "0.1.4b0": [ { "comment_text": "", "digests": { "md5": "73502d7320e34ab418f5da047aaad998", "sha256": "1238a082fd1c88683de02ce15a06f73abf29a5684e03e2a6a5dbc636c7e2acca" }, "downloads": -1, "filename": "sendypy-0.1.4b0.tar.gz", "has_sig": false, "md5_digest": "73502d7320e34ab418f5da047aaad998", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4812, "upload_time": "2017-08-26T01:10:00", "url": "https://files.pythonhosted.org/packages/1f/d1/448762412a8000232f6b66a64dc5070c5e2a45f0f9cf74f270fa8807ae38/sendypy-0.1.4b0.tar.gz" } ], "0.1.5b0": [ { "comment_text": "", "digests": { "md5": "34c6167bd87f5ea2b13aa905a246d36b", "sha256": "acccefba0edf1d6a11fd8652929e0606ccf543ca14e3c0b72072fa56b47f169e" }, "downloads": -1, "filename": "sendypy-0.1.5b0-py3-none-any.whl", "has_sig": false, "md5_digest": "34c6167bd87f5ea2b13aa905a246d36b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5619, "upload_time": "2018-10-30T21:59:21", "url": "https://files.pythonhosted.org/packages/d2/1d/5b19d30ec9b4df9f659d5e14fd9feecaef8e9135a5d8ff5b93362be5cc6b/sendypy-0.1.5b0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2773d7bee9ff4ef2638ef51fc6e4668e", "sha256": "aa8cac3fd69994cf3e81a686e2a034090c4e7a56b54f37caa91df8a15e9726c7" }, "downloads": -1, "filename": "sendypy-0.1.5b0.tar.gz", "has_sig": false, "md5_digest": "2773d7bee9ff4ef2638ef51fc6e4668e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5069, "upload_time": "2018-10-30T21:59:23", "url": "https://files.pythonhosted.org/packages/4a/de/698b7e2d16dcee79c0d29571ef726332639b365c9b537b4e7258b628ed60/sendypy-0.1.5b0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "34c6167bd87f5ea2b13aa905a246d36b", "sha256": "acccefba0edf1d6a11fd8652929e0606ccf543ca14e3c0b72072fa56b47f169e" }, "downloads": -1, "filename": "sendypy-0.1.5b0-py3-none-any.whl", "has_sig": false, "md5_digest": "34c6167bd87f5ea2b13aa905a246d36b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5619, "upload_time": "2018-10-30T21:59:21", "url": "https://files.pythonhosted.org/packages/d2/1d/5b19d30ec9b4df9f659d5e14fd9feecaef8e9135a5d8ff5b93362be5cc6b/sendypy-0.1.5b0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2773d7bee9ff4ef2638ef51fc6e4668e", "sha256": "aa8cac3fd69994cf3e81a686e2a034090c4e7a56b54f37caa91df8a15e9726c7" }, "downloads": -1, "filename": "sendypy-0.1.5b0.tar.gz", "has_sig": false, "md5_digest": "2773d7bee9ff4ef2638ef51fc6e4668e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5069, "upload_time": "2018-10-30T21:59:23", "url": "https://files.pythonhosted.org/packages/4a/de/698b7e2d16dcee79c0d29571ef726332639b365c9b537b4e7258b628ed60/sendypy-0.1.5b0.tar.gz" } ] }