Giter VIP home page Giter VIP logo

pushbullet-cli's Introduction

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

pushbullet-cli's People

Contributors

ahalekelly avatar aldur avatar brookst avatar cbeck527 avatar dependabot-preview[bot] avatar dependabot-support avatar dependabot[bot] avatar evanhahn avatar gustavokatel avatar isseu avatar mergify[bot] avatar r-darwish avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pushbullet-cli's Issues

error

Traceback (most recent call last):
File "/usr/bin/pb", line 6, in
from pkg_resources import load_entry_point
File "/usr/lib/python3.6/site-packages/pkg_resources/init.py", line 3036, in
@_call_aside
File "/usr/lib/python3.6/site-packages/pkg_resources/init.py", line 3020, in _call_aside
f(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/pkg_resources/init.py", line 3049, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/lib/python3.6/site-packages/pkg_resources/init.py", line 654, in _build_master
ws.require(requires)
File "/usr/lib/python3.6/site-packages/pkg_resources/init.py", line 968, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python3.6/site-packages/pkg_resources/init.py", line 854, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'python-magic' distribution was not found and is required by pushbullet.py

I am already installed 'python-magic'

Feature request: E2E

E2E encryption support for pushes could make this a super useful tool for pushing alerts/notifications to yourself.

error unknow

hi guys !
I have this error when i want use pushbullet-cli ...

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pkg_resources.py", line 449, in _build_master
ws.require(requires)
File "/usr/lib/python3/dist-packages/pkg_resources.py", line 745, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python3/dist-packages/pkg_resources.py", line 644, in resolve
raise VersionConflict(dist, req)
pkg_resources.VersionConflict: (setuptools 5.5.1 (/usr/lib/python3/dist-packages), Requirement.parse('setuptools>=11.3'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/bin/pb", line 5, in
from pkg_resources import load_entry_point
File "/usr/lib/python3/dist-packages/pkg_resources.py", line 2876, in
working_set = WorkingSet._build_master()
File "/usr/lib/python3/dist-packages/pkg_resources.py", line 451, in _build_master
return cls._build_from_requirements(requires)
File "/usr/lib/python3/dist-packages/pkg_resources.py", line 464, in _build_from_requirements
dists = ws.resolve(reqs, Environment())
File "/usr/lib/python3/dist-packages/pkg_resources.py", line 639, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: setuptools>=11.3

any idea ?? thank you

Can't seem to push any text/link/file

I am using pushbullet-cli v 0.7.6 on Ubuntu 18.04 / python 3.5

I can use pb to send a text message (sms) but cannot use it to push simple text/link or a file. It throws an error shown below:

`johenkel@localhost:~$ pb list-devices
0. Chrome

  1. Motorola XT1585

johenkel@localhost:~$ pb push "test"
Traceback (most recent call last):
File "/usr/local/bin/pb", line 11, in
sys.exit(main())
File "/usr/local/lib/python3.5/site-packages/click/core.py", line 764, in call
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.5/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.5/site-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.5/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.5/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
TypeError: push() got an unexpected keyword argument 'file'`

Not sure where to start to figure the problem. Any help would be appreciated.

install error

excuse me everyone,
how to deal with this error message when install the pushbullet-cli

WARNING: The script keyring is installed in '/home/apple/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.

WARNING: The script pb is installed in '/home/apple/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.

Successfully installed SecretStorage-3.3.1 click-7.1.2 jeepney-0.6.0 keyring-21.4.0 keyrings-alt pushbullet-cli-1.2 pushbullet-py python-magic-0.4.18 websocket-client-0.57.0

way to repair pushbullet.errors.InvalidKeyError

I get an InvalidLeyError. The ~/.pushbulletkey file looks OK (I had to manually edit as the first time using the echo "hello"| pb example, "hello" got saved into this file...

But now with just 1-line containing my key, the error still occurs. might be handy to add some trouble shooting advice rather than the traceback in this case?

me:~ tim$ pb test
Traceback (most recent call last):
File "/usr/local/bin/pb", line 9, in
load_entry_point('Pushbullet-CLI==0.1', 'console_scripts', 'pb')()
File "build/bdist.macosx-10.10-intel/egg/pushbullet_cli/app.py", line 111, in main
File "build/bdist.macosx-10.10-intel/egg/pushbullet/pushbullet.py", line 29, in init
File "build/bdist.macosx-10.10-intel/egg/pushbullet/pushbullet.py", line 267, in refresh
File "build/bdist.macosx-10.10-intel/egg/pushbullet/pushbullet.py", line 42, in _load_devices
File "build/bdist.macosx-10.10-intel/egg/pushbullet/pushbullet.py", line 35, in _get_data
pushbullet.errors.InvalidKeyError
me:~ tim$

Set-key command

Hi, the error message telling you to use the set_key command should actually be telling you to use the set-key command. I figured it out quickly, but some people might get stumped by this.
image

pb set-key hanging forever

When trying to "pb set-key" - it hangs forever after input (ie no reaction for input).

pip3 show pushbullet-cli
Name: pushbullet-cli
Version: 1.0

python3 --version
Python 3.5.3

Any ideas whats wrong?

Characters like "æ","ø",å","ë","é","ä" breaks "pb list" (but not list-devices or push)

Hello! The picture shows the problem. The characters mentioned is probably not an exhaustive list of characters with this problem, just the ones i tested right now.
pberror

As shown, "list-devices" has no trouble.

The input device doesn't matter - i pushed an "æ" from both Chrome, Android and PB CLI with the same result.

The biggest problem (for me) is probably that it not only breaks the specific push, but makes it impossible for "pb list" to retrieve any pushes, if they're pushed earlier than a push with one of these characters.

Pushbullet CLI Version 0.7.6
Python 2.7.12/3.5.2
Ubuntu 16.04 LTS

I won't mind trying to solve it on my own but i'll probably need a hint on what to do.

pb push fails when no message is given.

Hello,
I really loved this tool. I played with it for a while. This is what I encountered.

  • The tool doesn't send the message after reading one or multiple lines of input. I have attached a screenshot of the problem I faced.
    image
  • Also, echo "Hello" | pb push sends an empty push with title "Note" and empty body.
    I might be wrong. @r-darwish Could you please take a look at it?
    Also, I would love to contribute. In case if this is a legitimate issue, may I work on this?

Thank you.

Impossible to send title with a note

with

pb push "I love burritos"

It's not possible to send title, it's just the body

I found in the API to push a note we can do send title and body

  • title : The note's title.
  • body : The note's message.

I need to send the title too

Como desativo o keyring

Tenho um servidor que tem que mandar uma mensagem assim que disparar uma contagem, pois o keyring impede de ele enviar

Issue with formatting foreign characters

Hi,

When I do pb list-devices I get the following error:

Traceback (most recent call last):
  File "/usr/local/bin/pb", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python2.7/site-packages/click/core.py", line 716, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/click/core.py", line 696, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python2.7/site-packages/click/core.py", line 889, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python2.7/site-packages/click/core.py", line 534, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/pushbullet_cli/app.py", line 97, in list_devices
    print("{0}. {1}".format(i, device.nickname))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe4' in position 15: ordinal not in range(128)

And I guess it is related to the fact that i have the Swedish Ä in one device name.

pb with crontab

Hello,
it's possible to use it in crontab ?

I have every time this error : sh: 1: pb: not found
thank you

pushing file: not JSON serializable

Hi,

If I try to send a file ($ pb -a test) I get the following error:

Traceback (most recent call last):
File "/usr/bin/pb", line 9, in
load_entry_point('pushbullet-cli==0.1', 'console_scripts', 'pb')()
File "/usr/lib/python3.4/site-packages/pushbullet_cli-0.1-py3.4.egg/pushbullet_cli/app.py", line 144, in main
File "/usr/lib/python3.4/site-packages/pushbullet_cli-0.1-py3.4.egg/pushbullet_cli/app.py", line 81, in _push
File "/usr/lib/python3.4/site-packages/pushbullet.py-0.8.1-py3.4.egg/pushbullet/pushbullet.py", line 190, in upload_file
File "/usr/lib/python3.4/json/init.py", line 230, in dumps
return _default_encoder.encode(obj)
File "/usr/lib/python3.4/json/encoder.py", line 192, in encode
chunks = self.iterencode(o, _one_shot=True)
File "/usr/lib/python3.4/json/encoder.py", line 250, in iterencode
return _iterencode(o, 0)
File "/usr/lib/python3.4/json/encoder.py", line 173, in default
raise TypeError(repr(o) + " is not JSON serializable")
TypeError: b'text/plain' is not JSON serializable

I found this:
http://stackoverflow.com/questions/25849850/weird-typeerror-from-json-dumps

Thank you very much for this nice client.

Jurn

keyring.errors.KeyringLocked: Failed to unlock the collection!

Hi,

I seem to be unable to pb set-key as I keep getting this error message:

johannes@cicer:~$ pb set-key
Enter your security token from https://www.pushbullet.com/account:
Traceback (most recent call last):
  File "/home/johannes/.local/bin/pb", line 8, in <module>
    sys.exit(main())
  File "/home/johannes/.local/lib/python3.8/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/home/johannes/.local/lib/python3.8/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/home/johannes/.local/lib/python3.8/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/johannes/.local/lib/python3.8/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/johannes/.local/lib/python3.8/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/home/johannes/.local/lib/python3.8/site-packages/pushbullet_cli/app.py", line 126, in set_key
    keyring.set_password("pushbullet", "cli", key)
  File "/home/johannes/.local/lib/python3.8/site-packages/keyring/core.py", line 60, in set_password
    get_keyring().set_password(service_name, username, password)
  File "/home/johannes/.local/lib/python3.8/site-packages/keyring/backends/chainer.py", line 58, in set_password
    return keyring.set_password(service, username, password)
  File "/home/johannes/.local/lib/python3.8/site-packages/keyring/backends/SecretService.py", line 87, in set_password
    collection = self.get_preferred_collection()
  File "/home/johannes/.local/lib/python3.8/site-packages/keyring/backends/SecretService.py", line 67, in get_preferred_collection
    raise KeyringLocked("Failed to unlock the collection!")
keyring.errors.KeyringLocked: Failed to unlock the collection!

Any idea what to do here?

I'm on Ubuntu 20.04.6 LTS and Python 3.8.10

Cheers

The latest version of the keyring module breaks the application

Traceback (most recent call last):
  File "/Users/roeyd/src/pushbullet-cli/.env/bin/pb", line 9, in <module>
    load_entry_point('pushbullet-cli==0.7.1', 'console_scripts', 'pb')()
  File "/Users/roeyd/src/pushbullet-cli/.env/lib/python3.4/site-packages/click/core.py", line 664, in __call__
    return self.main(*args, **kwargs)
  File "/Users/roeyd/src/pushbullet-cli/.env/lib/python3.4/site-packages/click/core.py", line 644, in main
    rv = self.invoke(ctx)
  File "/Users/roeyd/src/pushbullet-cli/.env/lib/python3.4/site-packages/click/core.py", line 988, in invoke
    Command.invoke(self, ctx)
  File "/Users/roeyd/src/pushbullet-cli/.env/lib/python3.4/site-packages/click/core.py", line 837, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/roeyd/src/pushbullet-cli/.env/lib/python3.4/site-packages/click/core.py", line 464, in invoke
    return callback(*args, **kwargs)
  File "/Users/roeyd/src/pushbullet-cli/pushbullet_cli/app.py", line 75, in main
    if isinstance(keyring.get_keyring(), keyring.backends.file.EncryptedKeyring):
AttributeError: 'module' object has no attribute 'file'

Windows compatability

is this app compatable with windows?
i gave it a go, but all i get at the prompt is this (either as admin or standard user)
File "C:\Python34\lib\site-packages\pushbullet_cli-0.1-py3.4.egg\pushbullet_cli\app.py", line 19 oldmask = os.umask(077)

Is it possible to remove the "Note" prefix on pushes?

When I push things with pb push, URLs for example, there is always a pesky "Note " before the content:

Note
http://sheldonbrown.com/

I would very much like to remove this entirely, as I currently remove it manually.

Encrypted keyring

Hi there;
I was using the original release and have upgraded just now.
I've noticed that the script now asks "Please enter password for encrypted keyring:" with every push.
Is this the normal behaviour? as I do not want to be asked for the password every time.
Thanks

Feature request: Pull support

On the website and Firefox extension, I can access notifications, SMS messages, etc. from other devices. Is it possible to support that here?

error: name 'Raw_Input' is not defined

followinf a fresh install of python 3.4 and cygwin 32 bit, the pb command now returns this error:
$ pb -a test What's your API key? Find it at <https://www.pushbullet.com/account>. Traceback (most recent call last): File "C:\Apps\Python34\Scripts\pb-script.py", line 9, in <module> load_entry_point('Pushbullet-CLI==0.1', 'console_scripts', 'pb')() File "C:\Apps\Python34\lib\site-packages\pushbullet_cli-0.1-py3.4.egg\pushbullet_cli\app.py", line 117, in main File "C:\Apps\Python34\lib\site-packages\pushbullet_cli-0.1-py3.4.egg\pushbullet_cli\app.py", line 62, in _get_api_key NameError: name 'raw_input' is not defined

this is an issue with python 3 when "raw_input()" was changed to just "input()"

AttributeError: module 'keyrings.alt' has no attribute 'file'

Traceback (most recent call last):
  File "/usr/bin/pb", line 8, in <module>
    sys.exit(main())
  File "/usr/lib/python3.9/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python3.9/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python3.9/site-packages/click/core.py", line 1256, in invoke
    Command.invoke(self, ctx)
  File "/usr/lib/python3.9/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python3.9/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/usr/lib/python3.9/site-packages/pushbullet_cli/app.py", line 94, in main
    if isinstance(keyring.get_keyring(), keyrings.alt.file.EncryptedKeyring):
AttributeError: module 'keyrings.alt' has no attribute 'file'

I found that pb app.py has to explicitly import keyrings.alt.file because neither keyrings.alt nor keyrings.alt.file would be accessible if it simply import keyrings alone.

  • OS: arch linux
  • Python 3.9.1
  • keyring==21.4.0
  • keyrings.alt==4.0.2

error on push file

jojo-> pb version
PushBullet CLI, version 0.7.5

jojo-> pb push --file ~/.ssh/id_rsa.pub 
Traceback (most recent call last):
  File "/home/jojo/sources/pb/bin/pb", line 11, in <module>
    sys.exit(main())
  File "/home/jojo/sources/pb/lib/python3.5/site-packages/click/core.py", line 716, in __call__
    return self.main(*args, **kwargs)
  File "/home/jojo/sources/pb/lib/python3.5/site-packages/click/core.py", line 696, in main
    rv = self.invoke(ctx)
  File "/home/jojo/sources/pb/lib/python3.5/site-packages/click/core.py", line 1060, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/jojo/sources/pb/lib/python3.5/site-packages/click/core.py", line 889, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/jojo/sources/pb/lib/python3.5/site-packages/click/core.py", line 534, in invoke
    return callback(*args, **kwargs)
  File "/home/jojo/sources/pb/lib/python3.5/site-packages/pushbullet_cli/app.py", line 166, in push
    _push(**kwargs)
  File "/home/jojo/sources/pb/lib/python3.5/site-packages/pushbullet_cli/app.py", line 56, in _push
    file_data = pb.upload_file(f, os.path.basename(file_path))
  File "/home/jojo/sources/pb/lib/python3.5/site-packages/pushbullet/pushbullet.py", line 203, in upload_file
    file_type = get_file_type(f, file_name)
  File "/home/jojo/sources/pb/lib/python3.5/site-packages/pushbullet/filetype.py", line 4, in _magic_get_file_type
    return file_type.decode('utf-8')
AttributeError: 'str' object has no attribute 'decode'

I saw your response to a similar error was commit 517e092 - that was back in version 0.6

Setup.py install fail

Pushbullet-cli works wonderful on my laptop running Peppermint 5, but I'm having some trouble getting it installed on a slightly older distro (Peppermint 3). I'm getting the following output when I run ./setup.py install. I have requests and the other dependencies installed, afaik (not sure if they are the correct versions, though).

Running pushbullet.py-0.8.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-f4YZmD/pushbullet.py-0.8.1/egg-dist-tmp-k7qdLg
Traceback (most recent call last):
File "./setup.py", line 10, in
'console_scripts': ['pb = pushbullet_cli.app:main']
File "/usr/lib/python2.7/distutils/core.py", line 152, in setup
dist.run_commands()
File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/lib/python2.7/dist-packages/setuptools/command/install.py", line 73, in run
self.do_egg_install()
File "/usr/lib/python2.7/dist-packages/setuptools/command/install.py", line 101, in do_egg_install
cmd.run()
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 368, in run
self.easy_install(spec, not self.no_deps)
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 588, in easy_install
return self.install_item(None, spec, tmpdir, deps, True)
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 640, in install_item
self.process_distribution(spec, dist, deps)
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 692, in process_distribution
[requirement], self.local_index, self.easy_install
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 576, in resolve
dist = best[req.key] = env.best_match(req, self, installer)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 821, in best_match
return self.obtain(req, installer) # try and download/install
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 833, in obtain
return installer(requirement)
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 608, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 638, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 828, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1105, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1094, in run_setup
run_setup(setup_script, args)
File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 30, in run_setup
lambda: execfile(
File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 72, in run
return func()
File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 32, in
{'file':setup_script, 'name':'main'}
File "setup.py", line 15, in

TypeError: parse_requirements() got an unexpected keyword argument 'session'

Upload the app to PyPI

I would be great if you upload the app to PyPI. Since you're the author then you should be the one doing it.

Segmentation Fault when installing

I tried to install using the pip install pushbullet-cli (also pip3 install pushbullet-cli)

It appears to have done what it's supposed to do, but when running
pb set-key, it results in -bash: pb: command not found.

I run the install command again, and I get an output like this:
https://pastebin.com/SaKvcxHg

I probably am doing something stupid or another, if you need more details for anything lmk.

Initial Update

The bot created this issue to inform you that pyup.io has been set up on this repo.
Once you have closed it, the bot will open pull requests for updates as soon as they are available.

Error when trying to push file

I get the following error when I try to push a file:

Traceback (most recent call last):
  File "/usr/local/bin/pb", line 9, in <module>
    load_entry_point('pushbullet-cli==0.6.0', 'console_scripts', 'pb')()
  File "/usr/local/lib/python2.7/site-packages/click-5.1-py2.7.egg/click/core.py", line 700, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/click-5.1-py2.7.egg/click/core.py", line 680, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python2.7/site-packages/click-5.1-py2.7.egg/click/core.py", line 1027, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python2.7/site-packages/click-5.1-py2.7.egg/click/core.py", line 873, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python2.7/site-packages/click-5.1-py2.7.egg/click/core.py", line 508, in invoke
    return callback(*args, **kwargs)
  File "build/bdist.macosx-10.11-x86_64/egg/pushbullet_cli/app.py", line 159, in push
  File "build/bdist.macosx-10.11-x86_64/egg/pushbullet_cli/app.py", line 65, in _push
  File "build/bdist.macosx-10.11-x86_64/egg/pushbullet/pushbullet.py", line 185, in upload_file
  File "build/bdist.macosx-10.11-x86_64/egg/pushbullet_cli/app.py", line 17, in wrapper
AttributeError: 'NoneType' object has no attribute 'decode'

i'm also getting same error . when i'm trying to execute the code then it shows the same issue . please give me some advise how can i come out from this error.

/usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Traceback (most recent call last):
File "/usr/local/bin/pb", line 9, in
load_entry_point('Pushbullet-CLI==0.1', 'console_scripts', 'pb')()
File "/usr/local/lib/python2.7/dist-packages/Pushbullet_CLI-0.1-py2.7.egg/pushbullet_cli/app.py", line 111, in main
pb = PushBullet(api_key)
File "/usr/local/lib/python2.7/dist-packages/pushbullet.py-0.8.1-py2.7.egg/pushbullet/pushbullet.py", line 29, in init
self.refresh()
File "/usr/local/lib/python2.7/dist-packages/pushbullet.py-0.8.1-py2.7.egg/pushbullet/pushbullet.py", line 267, in refresh
self._load_devices()
File "/usr/local/lib/python2.7/dist-packages/pushbullet.py-0.8.1-py2.7.egg/pushbullet/pushbullet.py", line 42, in _load_devices
resp_dict = self._get_data(self.DEVICES_URL)
File "/usr/local/lib/python2.7/dist-packages/pushbullet.py-0.8.1-py2.7.egg/pushbullet/pushbullet.py", line 35, in _get_data
raise InvalidKeyError()
pushbullet.errors.InvalidKeyError

Originally posted by @andyforceno in #14 (comment)

Bump keyring version

pypi has keyring 21.2.1 now, while setup.py has

'pushbullet.py~=0.11.0', 'click~=7.0', 'keyring~=19.0.2',

It also seems that the version 1.1 in the changelog was actually not released (not tagged here, and not on pypi), so you get this:

pushbullet-cli 1.0 has requirement keyring~=16.0.2, but you have keyring 21.2.1.

Thanks for the useful CLI!

Newline not possible

I tried \n and \\nand none arrived as newline. Is it possible to send a linefeed in a note?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.