Package to send Statistics over a Slack Incoming Webhook
Project description
slackistics
Package to send Statistics over a Slack Incoming Webhook
Free software: MIT license
Features
TODO
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
Usage
from slacktastic.client import SlackClient
from slacktastic.template import Attachment, PieChart, Message
client = SlackClient(webhook_url='YOUR WEBHOOK URL')
attachment = Attachment(
title='Cool block title',
title_link='https://labela.nl',
text='Some awesome text')
chart = PieChart(
title="Test data",
labels=['Ride', 'Reservation'],
values=[22, 55]
)
another_chart = BarChart(
"Test data", labels=['Jan', 'Feb', 'Mar', 'Apr', 'May'],
data={
'Test 1': [1, 2, 4, 8, 16],
'Test 2': [7, 3, 45, 1, 12],
}
)
message = Message(
text="I want to show you some *magic* :sparkles:",
attachments=[attachment, chart]
)
client.send_message(message)
History
0.2.1 (2019-07-30)
Removed invalid documentation link
0.2.1 (2019-07-30)
Added support for Donut, Bar, Line and Radar charts
Updated documentation
0.1.0 (2019-07-25)
First release on PyPI.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
slacktastic-0.2.2.tar.gz
(5.4 kB
view hashes)
Built Distribution
Close
Hashes for slacktastic-0.2.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5dba6defd9fdba4e98ce58b5e4ec39d3b02dacdb8a849d65d2febcaae7d5ac1d |
|
MD5 | 61cf655539d81906991bc226922e5fec |
|
BLAKE2b-256 | baeaa741d4c831c58a77dd08e91e2d31c5eb59b44bc82ca20b81c9b28cf5a163 |