Skip to main content

pipeline status coverage report PyPI version

Python PostX

PostX is a package that provides a simple interface for posting messages to multiple platforms. The user has the ability to send the same message to multiple services or to an indivdual service. The same message is translated to the appropriate calls for the each platform.

Full Docs: Here

Getting Started

Installing via pip

pip install python-postx

Quick Start

from postx import Broker
from postx.message import Message

# Create the broker
broker = Broker()

# You can register as many endpoints as you wish of any combination
broker.register('slack', 'your slack webhook url')
broker.register('teams', 'your teams webhook url')

# Make your message
message = Message()
message.title('My Awesome Update')
message.sub_title('This is an awesome update')
message.text('The update is for all people to see and affects everything')
message.list_unordered(['item 1', 'item 2'])
message.link('Read More Here', 'link to more information')

# Or a shorter way
message = Message()
message.title('My Awesome Update') \
    .sub_title('This is an awesome update') \
    .text('The update is for all people to see and affects everything') \
    .list_unordered(['item 1', 'item 2']) \
    .link('Read More Here', 'link to more information')

# Or even shorter
message = Message()
message.title('My Awesome Update') \
    .sub('This is an awesome update') \
    .text('The update is for all people to see and affects everything') \
    .ul(['item 1', 'item 2']) \
    .link('Read More Here', 'link to more information')

# Send the message to all
broker.send(message)

# Send the message to slack only
broker.send_single_service(message, 'slack')

# Send the message to a single endpoint
broker.send_single_link(message, 'your registered endpoint url')

Supported targets

  • Microsoft Teams
  • Slack

Meta

Kyle Mason - Mediatech15 - Gitlab

Distributed under the MIT license. See LICENSE for more information.

Release files for python-postx 1.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-postx 1.0.4
File Size Uploaded
python-postx-1.0.4.tar.gz 15.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for python-postx 1.0.4
File Interpreter ABI Platform
python_postx-1.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 32.1 kB

Release files / python-postx-1.0.4.tar.gz

Download URL python-postx-1.0.4.tar.gz
Size 15.8 kB
Tags Source
SHA-256 checksum
How to use checksums
8f4307c2ab672170419eba304a50230d3fe8f1d6a413a102e95331272cbbf93b
BLAKE2b-256 checksum
How to use checksums
6a49bea9aa162d0042a8fbfa5f4c6960150b741c2476562f5bfd6ce85c79961f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

Release files / python_postx-1.0.4-py3-none-any.whl

Download URL python_postx-1.0.4-py3-none-any.whl
Size 16.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a6731bb1b6f55a986b2f9382b2acf8388da30515b74842c223a486f642fad957
BLAKE2b-256 checksum
How to use checksums
20ec8098c0a2c2b1f0af4d9c5d584d76125ab6572e44ceb3372d3607caa71c66
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

Release history Release notifications | RSS feed

This release

1.0.4 This release

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page