Skip to main content

One-Stop Python Push Solution

Project description

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pushx-0.4.0.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pushx-0.4.0-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file pushx-0.4.0.tar.gz.

File metadata

  • Download URL: pushx-0.4.0.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.12.3 Linux/6.8.0-1020-azure

File hashes

Hashes for pushx-0.4.0.tar.gz
Algorithm Hash digest
SHA256 e15b61772c69ce3f62deaf45c12f24463ef98fdac0ef065f82ba427566cf76ea
MD5 4f182ada7be1c88d2d3dd0842e04c1b5
BLAKE2b-256 f17eada0064f05472c4fdf14085145f82416b4fe34cc28a014270b16084f3205

See more details on using hashes here.

File details

Details for the file pushx-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: pushx-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.12.3 Linux/6.8.0-1020-azure

File hashes

Hashes for pushx-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c90a870aab9116f4a6357b17f0cdd77eac99bdde455af7d9704e0452220b67cb
MD5 964b1a5901b0956b0107fb6de661baa0
BLAKE2b-256 fdc1595d5030b8513e4dec85edd4b055326a9f8bf2ba836c1f68f4b5b5f98ecf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page