clearbit-slack-python-0.1.1
توضیحات
Push Clearbit Person and Company data into a Slack channel
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | clearbit-slack-python-0.1.1 |
| نام | clearbit-slack-python |
| نسخه کتابخانه | 0.1.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Paul Logston |
| ایمیل نویسنده | code@logston.me |
| آدرس صفحه اصلی | https://github.com/15five/clearbit-slack-python |
| آدرس اینترنتی | https://pypi.org/project/clearbit-slack-python/ |
| مجوز | The MIT License (MIT) Copyright (c) 2015 Paul Logston Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
clearbit-slack-python
=====================
Clean beautiful customer data. Now in Slack.
.. image:: https://raw.githubusercontent.com/15five/clearbit-slack-python/master/docs/_static/img/example.png
Installation
------------
Add to your application's requirements.txt file...
::
clearbit-slack-python
Or pip install...
::
$ pip install clearbit-slack-python
Configuration
-------------
To use, instantiate a **Notifier**
object with your Slack token, channel, and data **dict** built
from part of the body of the POST request sent by Clearbit.
::
import json
from clearbit_slack import Notifier
slack_token = 'xoxp-1234567890-6789012345-5432109876-12ab34'
slack_channel = '#signups'
body_data = json.loads(request_body)
attrs = body_data.get('body', {})
notifier = Notifier(slack_token, slack_channel, attrs=attrs)
notifier.notify()
Contributing
------------
1. Fork it (https://github.com/15five/clearbit-slack-python/fork)
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request
نحوه نصب
نصب پکیج whl clearbit-slack-python-0.1.1:
pip install clearbit-slack-python-0.1.1.whl
نصب پکیج tar.gz clearbit-slack-python-0.1.1:
pip install clearbit-slack-python-0.1.1.tar.gz