Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gustavokatel/pushbullet-cli
Access Pushbullet from the command line
https://github.com/gustavokatel/pushbullet-cli
cli command-line pushbullet python
Last synced: 4 days ago
JSON representation
Access Pushbullet from the command line
- Host: GitHub
- URL: https://github.com/gustavokatel/pushbullet-cli
- Owner: GustavoKatel
- License: mit
- Created: 2014-04-04T20:53:09.000Z (almost 11 years ago)
- Default Branch: main
- Last Pushed: 2023-07-24T08:25:33.000Z (over 1 year ago)
- Last Synced: 2024-12-27T23:41:19.558Z (11 days ago)
- Topics: cli, command-line, pushbullet, python
- Language: Python
- Homepage:
- Size: 222 KB
- Stars: 286
- Watchers: 11
- Forks: 31
- Open Issues: 8
-
Metadata Files:
- Readme: README.rst
- Contributing: CONTRIBUTING.rst
- Funding: .github/FUNDING.yml
- License: LICENSE.txt
Awesome Lists containing this project
README
Pushbullet CLI interface
========================|Build Status| |Codecov| |PyPI| |license|
Installation
------------::
$ pip install pushbullet-cli
Usage
-----Use `Pushbullet `__ from the command line.
First of all, set your API key by running:
::
$ pb set-key
Then pasting your API key at the prompt.
Push stdin to all devices:
::
$ echo "hello" | pb push
Push text to all devices:
::
$ pb push "I love burritos"
Pick a device to push to:
::
$ pb list-devices
# Find the index of your desired device
$ pb push -d 0 "iPhones cannot eat burritos"Push links:
::
$ pb push --link https://www.pushbullet.com/
Push files:
::
$ pb push --file /path/to/burrito_photo.jpg
Push to all subscribers of channel:
::
$ pb push -c "CHANNEL" "Why burritos are better than tacos"
Send an SMS:
::
$ pb sms -d 0 -n +123456789 "I sense a soul in search of answers"
List your pushes:
::
$ pb list -c 20
To set the API key from within python:
::
import keyring, keyrings.alt
if isinstance(keyring.get_keyring(), keyrings.alt.file.EncryptedKeyring):
keyring.set_keyring(keyrings.alt.file.PlaintextKeyring())
keyring.set_password("pushbullet", "cli", PUSHBULLET_KEY)Changelog
---------
* 1.2.2- Bump dependencies
- Add support for python 3.10* 1.2.1
- Bump dependencies
- Fix #99* 1.2
- Bump dependencies
* 1.1
- Bump keyring version (Security patches)
* 1.0
- Remove Python 2.7 support (`Countdown `__)
- Support to Click 7.0
- Add test cases
- Add CI build
- Add coverage report
* 0.7.6
- List previous pushes (#35)
- Avoid prompt the user when message is piped (#34)
- Removes default title (``Note``) (#36)
Contribution
------------Many thanks to the original author @r-darwish
Pull requests are welcome
Take a look at the `Contributing
guidelines `__.. |Build Status| image:: https://github.com/GustavoKatel/pushbullet-cli/actions/workflows/testing.yml/badge.svg
:target: https://github.com/GustavoKatel/pushbullet-cli/actions/workflows/testing.yml.. |Codecov| image:: https://img.shields.io/codecov/c/github/GustavoKatel/pushbullet-cli.svg
:target: https://codecov.io/gh/GustavoKatel/pushbullet-cli.. |PyPI| image:: https://img.shields.io/pypi/v/pushbullet-cli.svg
:target: https://pypi.python.org/pypi/pushbullet-cli.. |license| image:: https://img.shields.io/github/license/GustavoKatel/pushbullet-cli.svg
:target: https://img.shields.io/github/license/GustavoKatel/pushbullet-cli.svg