Presenting data in a clear and organized manner can be a challenge on the Slack platform, as formatting options are limited.
If you have data stored in JSON, dictionaries, lists, or dataframes that you want to share with your team in a tabular format, it can be frustrating to have code for specific use cases and present the data.
That's where our new library comes in! With our library, you can easily transform your data into a visually appealing table that is easy to read and understand.
Simply input your data and let the library handle the rest – no need to worry about compatibility issues or spend time in writing code to format the output.
Our library makes it easy to present your data in a professional and organized way, improving your team's productivity and collaboration on Slack.
USAGE
pip install formatSlackMessage
example:
#import the installed library
from formatslackmessage import formatslackoutput
import pandas as pd
data=[{"ID":1,"Name":"Alice","Age":25,"Address":{"Street":"123MainStreet","City":"NewYork","State":"NY"}},{"ID":2,"Name":"Bob","Age":30,"Address":{"Street":"456SecondStreet","City":"Chicago","State":"IL"}}]
#convert the list of json to a df
df= pd.json_normalize(data)
#call the function to format your data to a tabular format
formatslackoutput.formatSlackMessage(df)
Output
+----+-------+-----+-----------------+--------------+---------------+
|ID |Name |Age |Address.Street |Address.City |Address.State |
+----+-------+-----+-----------------+--------------+---------------+
|1 |Alice |25 |123MainStreet |NewYork |NY |
|2 |Bob |30 |456SecondStreet |Chicago |IL |
+----+-------+-----+-----------------+--------------+---------------+
Raw data
{
"_id": null,
"home_page": "",
"name": "formatSlackMessage",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "formatmessage,slackoutput,slack,format",
"author": "Bilal Peerzade",
"author_email": "bilalpeerzade@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/5a/79/d741982101e0e31897f6b409f436f09de130fb3416a168c2695aef7a34ae/formatSlackMessage-1.0.4.tar.gz",
"platform": null,
"description": "Presenting data in a clear and organized manner can be a challenge on the Slack platform, as formatting options are limited. \n\nIf you have data stored in JSON, dictionaries, lists, or dataframes that you want to share with your team in a tabular format, it can be frustrating to have code for specific use cases and present the data.\n\nThat's where our new library comes in! With our library, you can easily transform your data into a visually appealing table that is easy to read and understand. \n\nSimply input your data and let the library handle the rest \u2013 no need to worry about compatibility issues or spend time in writing code to format the output. \n\nOur library makes it easy to present your data in a professional and organized way, improving your team's productivity and collaboration on Slack.\n\n\nUSAGE\n\npip install formatSlackMessage \n\nexample:\n\n#import the installed library\n\nfrom formatslackmessage import formatslackoutput\n\nimport pandas as pd\n\ndata=[{\"ID\":1,\"Name\":\"Alice\",\"Age\":25,\"Address\":{\"Street\":\"123MainStreet\",\"City\":\"NewYork\",\"State\":\"NY\"}},{\"ID\":2,\"Name\":\"Bob\",\"Age\":30,\"Address\":{\"Street\":\"456SecondStreet\",\"City\":\"Chicago\",\"State\":\"IL\"}}]\n\n#convert the list of json to a df\n\ndf= pd.json_normalize(data)\n\n#call the function to format your data to a tabular format\n\nformatslackoutput.formatSlackMessage(df)\n\nOutput\n\n+----+-------+-----+-----------------+--------------+---------------+\n|ID |Name |Age |Address.Street |Address.City |Address.State |\n+----+-------+-----+-----------------+--------------+---------------+\n|1 |Alice |25 |123MainStreet |NewYork |NY |\n|2 |Bob |30 |456SecondStreet |Chicago |IL |\n+----+-------+-----+-----------------+--------------+---------------+\n",
"bugtrack_url": null,
"license": "",
"summary": "A project to format the slack messages in a structured way",
"version": "1.0.4",
"split_keywords": [
"formatmessage",
"slackoutput",
"slack",
"format"
],
"urls": [
{
"comment_text": "",
"digests": {
"md5": "c95c5b1e017633dfd3d38693102c8e77",
"sha256": "cc60371d47b12f9daf13b6c1f2e28902bdb152cd193c45a927ba0d5efa3f415c"
},
"downloads": -1,
"filename": "formatSlackMessage-1.0.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "c95c5b1e017633dfd3d38693102c8e77",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 3731,
"upload_time": "2022-12-29T08:52:33",
"upload_time_iso_8601": "2022-12-29T08:52:33.559768Z",
"url": "https://files.pythonhosted.org/packages/5a/50/f3d23fe6414a6771a266f94fe2a0c1510b720917da27792ae4ad71ef665d/formatSlackMessage-1.0.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"md5": "1c3387d0d57205ddf780d1d475c23961",
"sha256": "b4ac48d909f77166acecb3c29ab257bdc98e0f6c8248ed31e9d405dbb7e9c2c9"
},
"downloads": -1,
"filename": "formatSlackMessage-1.0.4.tar.gz",
"has_sig": false,
"md5_digest": "1c3387d0d57205ddf780d1d475c23961",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3191,
"upload_time": "2022-12-29T08:52:34",
"upload_time_iso_8601": "2022-12-29T08:52:34.547903Z",
"url": "https://files.pythonhosted.org/packages/5a/79/d741982101e0e31897f6b409f436f09de130fb3416a168c2695aef7a34ae/formatSlackMessage-1.0.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2022-12-29 08:52:34",
"github": false,
"gitlab": false,
"bitbucket": false,
"lcname": "formatslackmessage"
}