slackstyler
slackstyler is a Python package that converts Markdown text into Slack message formatting. The motivation for creating this package is to allow Python developers to prepare and send richly-formatted messages to Slack in a way that's familiar and easy to use.
slackstyler was inspired by JavaScript's slackify-markdown library and also based on mistune, a markdown parser in pure Python.
Features
- Converts Markdown text into Slack message formatting.
- Supports various Markdown syntaxes:
- Bold text
- Italic text
- Link
- and more...
Installation
Install slackstyler with pip:
pip install slackstyler
Usage
Here is a quick example of how to use slackstyler:
from slackstyler import SlackStyler
# Create a styler instance
styler = SlackStyler()
# Convert markdown text to slack message text
markdown_text = "Hello, **Slack**!"
slack_message = styler.convert(markdown_text)
print(slack_message)
When you run this code, you will see:
Hello, *Slack*!
Acknowledgments
This project was inspired by slackify-markdown, a similar library written in JavaScript.
License
slackstyler is licensed under the MIT License.
Metadata
Release files for slackstyler 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| slackstyler-0.0.3.tar.gz | 3.0 kB | Without provenance | Details for slackstyler-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| slackstyler-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for slackstyler-0.0.3-py3-none-any.whl |
Total release size: 6.7 kB
Release files / slackstyler-0.0.3.tar.gz
| Download URL | slackstyler-0.0.3.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4e7b76f0857b43664e02a8fb6e06458bd56e14c10fa3d0a7461fab1106b2b24c
|
|
BLAKE2b-256 checksum How to use checksums |
0e0b2fbb995b6b41ba8e548594823d3b8b0f3439910e1dd4b3591ce4693c13bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.4 Darwin/23.1.0
|
Release files / slackstyler-0.0.3-py3-none-any.whl
| Download URL | slackstyler-0.0.3-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7090fe720b9e3aa75cefe7c32ed0fb97f957a699dd45925b8d50f6324a03d8e1
|
|
BLAKE2b-256 checksum How to use checksums |
17af3e8c78c0c7dbb40a9fbf279548712e2a4d58bed745fb7a09d5fcc0887ce6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.4 Darwin/23.1.0
|
Security for slackstyler 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.