wolfsoftware.pushover
A package for sending messages via the Pushover API.
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
Repository
A package for sending messages via the Pushover API.
Basic Info
Statistics
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 4
- Releases: 3
Topics
Metadata Files
README.md
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
- Website: https://wolfsoftware.com
- Twitter: wolfsoftware
- Repositories: 4
- Profile: https://github.com/NotificationsToolbox
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
Pull Request Labels
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.
- Homepage: https://github.com/NotificationsToolbox/pushover-package
- Documentation: https://github.com/NotificationsToolbox/pushover-package
- License: MIT
-
Latest release: 0.1.1
published over 1 year ago
Rankings
Maintainers (1)
Dependencies
- ActionsToolbox/get-language-versions-action 446919617fd774095b5dd3ed71c39dd3fd0d8f4f composite
- actions/checkout a5ac7e51b41094c92402da3b24376905380afc29 composite
- actions/setup-python 82c7e631bb3cdc910f68e0081d67478d79c6982d composite
- ActionsToolbox/get-language-versions-action 446919617fd774095b5dd3ed71c39dd3fd0d8f4f composite
- actions/checkout a5ac7e51b41094c92402da3b24376905380afc29 composite
- citation-file-format/cffconvert-github-action 4cf11baa70a673bfdf9dad0acc7ee33b3f4b6084 composite
- ruby/setup-ruby d5fb7a202fc07872cb44f00ba8e6197b70cb0c55 composite
- 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
- 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
- Gamesight/slack-workflow-status 68bf00d0dbdbcb206c278399aa1ef6c14f74347a composite
- Mattraks/delete-workflow-runs 39f0bbed25d76b34de5594dceab824811479e5de composite
- dependabot/fetch-metadata 5e5f99653a5b510e8555840e80cbf1514ad4af38 composite
- ActionsToolbox/get-language-versions-action 446919617fd774095b5dd3ed71c39dd3fd0d8f4f composite
- actions/checkout a5ac7e51b41094c92402da3b24376905380afc29 composite
- actions/setup-node 60edb5dd545a775178f52524783378180af0d1f8 composite
- ruby/setup-ruby d5fb7a202fc07872cb44f00ba8e6197b70cb0c55 composite
- 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
- 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
- actions/first-interaction 34f15e814fe48ac9312ccf29db4e74fa767cbab7 composite
- Gamesight/slack-workflow-status 68bf00d0dbdbcb206c278399aa1ef6c14f74347a composite
- otto-de/purge-deprecated-workflow-runs 31a4e821d43e9a354cbd65845922c76e4b4b3633 composite
- ActionsToolbox/get-language-versions-action 446919617fd774095b5dd3ed71c39dd3fd0d8f4f composite
- actions/checkout a5ac7e51b41094c92402da3b24376905380afc29 composite
- actions/setup-go cdcb36043654635271a94b9a6d1392de5bb323a7 composite
- actions/setup-python 82c7e631bb3cdc910f68e0081d67478d79c6982d composite
- actions/checkout a5ac7e51b41094c92402da3b24376905380afc29 composite
- zgosalvez/github-actions-ensure-sha-pinned-actions 2f2ebc6d914ab515939dc13f570f91baeb2c194c composite
- Gamesight/slack-workflow-status 68bf00d0dbdbcb206c278399aa1ef6c14f74347a composite
- actions/stale 28ca1036281a5e5922ead5184a1bbf96e5fc984e composite
- pytest ==8.2.2
- requests ==2.32.2
- setuptools ==70.0.0