wolfsoftware.pushover

A package for sending messages via the Pushover API.

https://github.com/notificationstoolbox/pushover-package

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (10.3%) to scientific vocabulary

Keywords

notifications pushover pushover-api wolfsoftware
Last synced: 6 months ago · JSON representation ·

Repository

A package for sending messages via the Pushover API.

Basic Info
  • Host: GitHub
  • Owner: NotificationsToolbox
  • License: mit
  • Language: Python
  • Default Branch: master
  • Homepage:
  • Size: 207 KB
Statistics
  • Stars: 2
  • Watchers: 0
  • Forks: 0
  • Open Issues: 4
  • Releases: 3
Topics
notifications pushover pushover-api wolfsoftware
Created over 1 year ago · Last pushed 6 months ago
Metadata Files
Readme Contributing Funding License Code of conduct Citation Codeowners Security

README.md

NotificationsToolbox logo
Github Build Status License Created
Release Released Commits since release

Overview

This project provides a Python interface to the Pushover API, allowing you to send notifications through the Pushover service. The package supports sending messages, emergency messages, and group messages, as well as listing available sounds.

Installation

To install the package, you can use pip:

bash pip install wolfsoftware.pushover

Usage

Here's a basic example of how to use the Pushover package:

```python from wolfsoftware.pushover import Pushover

Initialize the Pushover instance

pushover = Pushover(userkey='youruserkey', apitoken='yourapitoken')

Send a message

try: response = pushover.send_message(message='Hello, this is a test message!') print(response) except PushoverException as e: print(str(e)) ```

API

Pushover Class

The Pushover class provides methods to interact with the Pushover API.

Initialization

python pushover = Pushover(user_key='your_user_key', api_token='your_api_token')

Methods

send_message

Sends a message through Pushover.

```python def sendmessage(message: str, title: Optional[str] = None, url: Optional[str] = None, urltitle: Optional[str] = None, priority: Optional[int] = 0, sound: Optional[str] = None, device: Optional[str] = None, attachment: Optional[str] = None) -> dict: """ Send a message using the Pushover API.

Arguments:
    message (str): The message content.
    title (str, optional): The message title.
    url (str, optional): A supplementary URL to show with the message.
    url_title (str, optional): A title for the supplementary URL.
    priority (int, optional): The priority of the message.
    sound (str, optional): The name of the sound to play with the message.
    device (str, optional): The device name to send the message to.
    attachment (str, optional): Path to an attachment file.

Returns:
    dict: The response from the Pushover API.

Raises:
    PushoverException: If the request to the Pushover API fails.
"""

```

sendemergencymessage

Sends an emergency message through Pushover.

```python def sendemergencymessage(message: str, title: Optional[str] = None, url: Optional[str] = None, url_title: Optional[str] = None, retry: Optional[int] = 30, expire: Optional[int] = 3600, sound: Optional[str] = None, device: Optional[str] = None) -> Dict: """ Send an emergency message using the Pushover API.

Arguments:
    message (str): The message content.
    title (str, optional): The message title.
    url (str, optional): A supplementary URL to show with the message.
    url_title (str, optional): A title for the supplementary URL.
    retry (int, optional): How often (in seconds) to retry the message.
    expire (int, optional): How long (in seconds) before the message expires.
    sound (str, optional): The name of the sound to play with the message.
    device (str, optional): The device name to send the message to.

Returns:
    dict: The response from the Pushover API.

Raises:
    PushoverException: If the request to the Pushover API fails.
"""

```

sendgroupmessage

Sends a message to a group through Pushover.

```python def sendgroupmessage(message: str, groupkey: str, title: Optional[str] = None, url: Optional[str] = None, urltitle: Optional[str] = None, priority: Optional[int] = 0, sound: Optional[str] = None, device: Optional[str] = None, attachment: Optional[str] = None) -> Dict: """ Send a message to a group using the Pushover API.

Arguments:
    message (str): The message content.
    group_key (str): The Pushover group key.
    title (str, optional): The message title.
    url (str, optional): A supplementary URL to show with the message.
    url_title (str, optional): A title for the supplementary URL.
    priority (int, optional): The priority of the message.
    sound (str, optional): The name of the sound to play with the message.
    device (str, optional): The device name to send the message to.
    attachment (str, optional): Path to an attachment file.

Returns:
    dict: The response from the Pushover API.

Raises:
    PushoverException: If the request to the Pushover API fails.
"""

```

list_sounds

Lists available sounds.

```python def list_sounds(self) -> dict: """ List the available sounds from the Pushover API.

Returns:
    dict: The response from the Pushover API.

Raises:
    PushoverException: If the request to the Pushover API fails.
"""

```


Owner

  • Name: Notifications Toolbox
  • Login: NotificationsToolbox
  • Kind: organization
  • Email: github@wolfsoftware.com
  • Location: United Kingdom

A selection of tools for sending notifications. Created by Wolf Software.

Citation (CITATION.cff)

cff-version: 1.2.0
message: If you use this software, please cite it using these metadata.
title: Pushover
abstract: A package for sending messages via the Pushover API.
type: software
version: 0.1.1
date-released: 2024-06-26
repository-code: https://github.com/NotificationsToolbox/pushover-package
keywords:
  - "Wolf Software"
  - "Software"
license: MIT
authors:
  - family-names: "Wolf"
    orcid: "https://orcid.org/0009-0007-0983-2072"

GitHub Events

Total
  • Watch event: 1
  • Delete event: 78
  • Issue comment event: 167
  • Push event: 133
  • Pull request review event: 120
  • Pull request event: 165
  • Create event: 82
Last Year
  • Watch event: 1
  • Delete event: 78
  • Issue comment event: 167
  • Push event: 133
  • Pull request review event: 120
  • Pull request event: 165
  • Create event: 82

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 0
  • Total pull requests: 63
  • Average time to close issues: N/A
  • Average time to close pull requests: 2 days
  • Total issue authors: 0
  • Total pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 1.76
  • Merged pull requests: 43
  • Bot issues: 0
  • Bot pull requests: 63
Past Year
  • Issues: 0
  • Pull requests: 63
  • Average time to close issues: N/A
  • Average time to close pull requests: 2 days
  • Issue authors: 0
  • Pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 1.76
  • Merged pull requests: 43
  • Bot issues: 0
  • Bot pull requests: 63
Top Authors
Issue Authors
  • dependabot[bot] (1)
Pull Request Authors
  • dependabot[bot] (134)
  • TGWolf (1)
Top Labels
Issue Labels
dependabot: auto approve (1) dependabot: dependencies (1) dependabot: ecosystem : github actions (1)
Pull Request Labels
dependabot: dependencies (134) dependabot: auto approve (104) dependabot: auto merge (102) dependabot: ecosystem : github actions (98) dependabot: ecosystem : python (36) dependabot: manual merge (19)

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 9 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 2
  • Total maintainers: 1
pypi.org: wolfsoftware.pushover

A package for sending messages via Pushover.

  • Versions: 2
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 9 Last month
Rankings
Dependent packages count: 10.8%
Average: 36.0%
Dependent repos count: 61.1%
Maintainers (1)
Last synced: 6 months ago

Dependencies

.github/workflows/cicd.yml actions
  • ActionsToolbox/get-language-versions-action 446919617fd774095b5dd3ed71c39dd3fd0d8f4f composite
  • actions/checkout a5ac7e51b41094c92402da3b24376905380afc29 composite
  • actions/setup-python 82c7e631bb3cdc910f68e0081d67478d79c6982d composite
.github/workflows/citation-validation.yml actions
  • ActionsToolbox/get-language-versions-action 446919617fd774095b5dd3ed71c39dd3fd0d8f4f composite
  • actions/checkout a5ac7e51b41094c92402da3b24376905380afc29 composite
  • citation-file-format/cffconvert-github-action 4cf11baa70a673bfdf9dad0acc7ee33b3f4b6084 composite
  • ruby/setup-ruby d5fb7a202fc07872cb44f00ba8e6197b70cb0c55 composite
.github/workflows/codeql.yml actions
  • Gamesight/slack-workflow-status 68bf00d0dbdbcb206c278399aa1ef6c14f74347a composite
  • actions/checkout a5ac7e51b41094c92402da3b24376905380afc29 composite
  • github/codeql-action/analyze a57c67b89589d2d13d5ac85a9fc4679c7539f94c composite
  • github/codeql-action/autobuild a57c67b89589d2d13d5ac85a9fc4679c7539f94c composite
  • github/codeql-action/init a57c67b89589d2d13d5ac85a9fc4679c7539f94c composite
.github/workflows/codeql.yml.old actions
  • Gamesight/slack-workflow-status 68bf00d0dbdbcb206c278399aa1ef6c14f74347a composite
  • actions/checkout a5ac7e51b41094c92402da3b24376905380afc29 composite
  • github/codeql-action/analyze a57c67b89589d2d13d5ac85a9fc4679c7539f94c composite
  • github/codeql-action/autobuild a57c67b89589d2d13d5ac85a9fc4679c7539f94c composite
  • github/codeql-action/init a57c67b89589d2d13d5ac85a9fc4679c7539f94c composite
.github/workflows/delete-old-workflow-runs.yml actions
  • Gamesight/slack-workflow-status 68bf00d0dbdbcb206c278399aa1ef6c14f74347a composite
  • Mattraks/delete-workflow-runs 39f0bbed25d76b34de5594dceab824811479e5de composite
.github/workflows/dependabot.yml actions
  • dependabot/fetch-metadata 5e5f99653a5b510e8555840e80cbf1514ad4af38 composite
.github/workflows/document-validation.yml actions
  • ActionsToolbox/get-language-versions-action 446919617fd774095b5dd3ed71c39dd3fd0d8f4f composite
  • actions/checkout a5ac7e51b41094c92402da3b24376905380afc29 composite
  • actions/setup-node 60edb5dd545a775178f52524783378180af0d1f8 composite
  • ruby/setup-ruby d5fb7a202fc07872cb44f00ba8e6197b70cb0c55 composite
.github/workflows/generate-release.yml actions
  • ActionsToolbox/get-language-versions-action 446919617fd774095b5dd3ed71c39dd3fd0d8f4f composite
  • Bullrich/generate-release-changelog 6b60f004b4bf12ff271603dc32dbd261965ad2f2 composite
  • actions/checkout a5ac7e51b41094c92402da3b24376905380afc29 composite
  • actions/setup-python 82c7e631bb3cdc910f68e0081d67478d79c6982d composite
  • softprops/action-gh-release 69320dbe05506a9a39fc8ae11030b214ec2d1f87 composite
.github/workflows/generate-test-release.yml actions
  • ActionsToolbox/get-language-versions-action 446919617fd774095b5dd3ed71c39dd3fd0d8f4f composite
  • Bullrich/generate-release-changelog 6b60f004b4bf12ff271603dc32dbd261965ad2f2 composite
  • actions/checkout a5ac7e51b41094c92402da3b24376905380afc29 composite
  • actions/setup-python 82c7e631bb3cdc910f68e0081d67478d79c6982d composite
  • softprops/action-gh-release 69320dbe05506a9a39fc8ae11030b214ec2d1f87 composite
.github/workflows/greetings.yml actions
  • actions/first-interaction 34f15e814fe48ac9312ccf29db4e74fa767cbab7 composite
.github/workflows/purge-deprecated-workflow-runs.yml actions
  • Gamesight/slack-workflow-status 68bf00d0dbdbcb206c278399aa1ef6c14f74347a composite
  • otto-de/purge-deprecated-workflow-runs 31a4e821d43e9a354cbd65845922c76e4b4b3633 composite
.github/workflows/repository-validation.yml actions
  • ActionsToolbox/get-language-versions-action 446919617fd774095b5dd3ed71c39dd3fd0d8f4f composite
  • actions/checkout a5ac7e51b41094c92402da3b24376905380afc29 composite
  • actions/setup-go cdcb36043654635271a94b9a6d1392de5bb323a7 composite
  • actions/setup-python 82c7e631bb3cdc910f68e0081d67478d79c6982d composite
.github/workflows/security-hardening.yml actions
  • actions/checkout a5ac7e51b41094c92402da3b24376905380afc29 composite
  • zgosalvez/github-actions-ensure-sha-pinned-actions 2f2ebc6d914ab515939dc13f570f91baeb2c194c composite
.github/workflows/stale.yml actions
  • Gamesight/slack-workflow-status 68bf00d0dbdbcb206c278399aa1ef6c14f74347a composite
  • actions/stale 28ca1036281a5e5922ead5184a1bbf96e5fc984e composite
requirements.txt pypi
  • pytest ==8.2.2
  • requests ==2.32.2
  • setuptools ==70.0.0
setup.py pypi