Skip to main content

PushX

One-Stop Python Push Solution.

Introduction

Python-based Aggregate Push Module

Supported Push Providers

  • Ntfy
  • ServerChan3
  • ServerChanTurbo
  • And more...

Install

pip install pushx

Usage

The docs is here, you can also refer to the Examples below.

Examples

Example 1

from pushx import Notifier, providers

n = Notifier(providers.ServerChan3, sendkey="666",uid=2233)
n.notify(title="test title",desp="test content")
# content/message=("content") is also fine

Example 2

from pushx import Notifier, providers

n = Notifier(providers.Ntfy, topic="233233233")
p = providers.Ntfy.NotifyParams(
    title="test title",
    message=("test message"), # content=("test message") is also fine
    tags=["tag1", "tag2"],
    priority=5,
    markdown=True,
    actions=[
        {
            "action": "view",
            "label": "Open portal",
            "url": "https://home.nest.com/",
            "clear": True,
        },
        {
            "action": "http",
            "label": "Turn down",
            "url": "https://api.nest.com/",
            "body": '{"temperature": 65}',
        },
    ],
    click="https://illustar0.com",
)
n.notify(p)

Metadata

Release files for pushx 0.4.0

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

Source distribution (sdist)

Source distribution for pushx 0.4.0
File Size Uploaded
pushx-0.4.0.tar.gz 4.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pushx 0.4.0
File Interpreter ABI Platform
pushx-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 12.9 kB

Release files / pushx-0.4.0.tar.gz

Download URL pushx-0.4.0.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
e15b61772c69ce3f62deaf45c12f24463ef98fdac0ef065f82ba427566cf76ea
BLAKE2b-256 checksum
How to use checksums
f17eada0064f05472c4fdf14085145f82416b4fe34cc28a014270b16084f3205
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.0.1 CPython/3.12.3 Linux/6.8.0-1020-azure

Release files / pushx-0.4.0-py3-none-any.whl

Download URL pushx-0.4.0-py3-none-any.whl
Size 8.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c90a870aab9116f4a6357b17f0cdd77eac99bdde455af7d9704e0452220b67cb
BLAKE2b-256 checksum
How to use checksums
fdc1595d5030b8513e4dec85edd4b055326a9f8bf2ba836c1f68f4b5b5f98ecf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.0.1 CPython/3.12.3 Linux/6.8.0-1020-azure

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

0.3.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.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