Skip to content

Instantly share code, notes, and snippets.

View fwump38's full-sized avatar

fwump38 fwump38

View GitHub Profile
@fwump38
fwump38 / SlackBlocks.py
Last active August 11, 2020 06:58
Several classes representing all of the available components to Slack Blockkit messages to make working with them easier
import re
import json
import logging
logger = logging.getLogger(__name__)
# See the very bottom of this gist for an example on how to use as well as what the script would output
def clean(obj):
'''Parses out all _Block objects into dicts and removes Nonetypes in order to convert to JSON'''