Git Product home page Git Product logo

gkeep's Introduction

https://raw.githubusercontent.com/Nekmo/gkeep/master/logo.jpg


pip-rating badge Latest PyPI version Python versions Github stars

DEVELOPMENT BRANCH: The current branch is a development version. Go to the stable release by clicking on the master branch.

Google Keep Cli

Work with Google Keep on your terminal. To install this module (more options in the documentation):

$ pip install -U gkeep

To get the available options use the --help parameter or see the documentation:

$ gkeep --help

For example to search for notes:

$ gkeep notes search "Shopping list"

Gkeep allows you to use Google Keep in your scripts. For example to remember to buy milk:

$ gkeep items edit --uncheck 150ad84b557.97eb8e3bffcb03e1 "Milk"

Thanks

This module is a command-line interface of the module gkeepapi. Thanks to Kiwiz for maintaining the module.

This module does not use an official Google API to work with Google Keep. As this module does not use an official API, its operation is not guaranteed for a production environment.

gkeep's People

Contributors

nekmo 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

gkeep's Issues

Error: Missing command

I am trying to set up gkeep for the first time and I have created an auth.txt, but I get the following error issue:

INPUT:
gkeep --auth /home/trevor/gkeep/auth.txt

OUTPUT:

Usage: gkeep [OPTIONS] COMMAND [ARGS]...

Error: Missing command.

gkeepapi.exception.APIException Global Forbidden 403

I have tried with two GMail accounts; and one works while the other does not.

Initially, the non-working account did have Two-Factor and I was using an App Password. Since, I have disabled 2FA, and even set password to same as the working account. I have tried with and without Less Secure Apps enabled (the working account does not have it enabled).

Regardless, I receive:

Traceback (most recent call last):
  File "/home/matthewddunlap/gkeep/bin/gkeep", line 7, in <module>
    catch(cli)()
  File "/home/matthewddunlap/gkeep/lib/python3.7/site-packages/google_keep_tasks/exceptions.py", line 44, in wrap
    fn(*args, **kwargs)
  File "/home/matthewddunlap/gkeep/lib/python3.7/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/home/matthewddunlap/gkeep/lib/python3.7/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/home/matthewddunlap/gkeep/lib/python3.7/site-packages/click/core.py", line 1256, in invoke
    Command.invoke(self, ctx)
  File "/home/matthewddunlap/gkeep/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/matthewddunlap/gkeep/lib/python3.7/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/home/matthewddunlap/gkeep/lib/python3.7/site-packages/click/decorators.py", line 21, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/matthewddunlap/gkeep/lib/python3.7/site-packages/google_keep_tasks/management.py", line 16, in cli
    google_keep.login_or_input()
  File "/home/matthewddunlap/gkeep/lib/python3.7/site-packages/google_keep_tasks/auth.py", line 70, in login_or_input
    self.keep.login(username, password)
  File "/home/matthewddunlap/gkeep/lib/python3.7/site-packages/gkeepapi/__init__.py", line 695, in login
    self.load(auth, state, sync)
  File "/home/matthewddunlap/gkeep/lib/python3.7/site-packages/gkeepapi/__init__.py", line 741, in load
    self.sync(True)
  File "/home/matthewddunlap/gkeep/lib/python3.7/site-packages/gkeepapi/__init__.py", line 996, in sync
    changes = self._reminders_api.list()
  File "/home/matthewddunlap/gkeep/lib/python3.7/site-packages/gkeepapi/__init__.py", line 595, in list
    json=params
  File "/home/matthewddunlap/gkeep/lib/python3.7/site-packages/gkeepapi/__init__.py", line 229, in send
    raise exception.APIException(error['code'], error)
gkeepapi.exception.APIException: {'errors': [{'domain': 'global', 'reason': 'forbidden', 'message': 'Forbidden'}], 'code': 403, 'message': 'Forbidden'}

I am using Python 3.7.7

command not found!

hello, i installed trough pip but when i run it i got command not found error

Authentication Issues

It seems like gkeep has stopped working over the last few days because of kiwiz/gkeepapi#123

I don't think there's much that can be done until that's resolved, but just mentioning it here in case anyone else is curious why their scripts stopped working!

idea: gkeep list > print with raspberrypi to thermal printer

Hi together

i have since a while an idea in my mind.

my wife and I use gkeep for shared shopping lists etc.

it would be an awesome thing, to print out a keep with a thermal paper printer.

my programming skills are quite limited, but im a passionate maker...

do you have an idea how i could solve that?

thanks for an idea

Delete Checked Items Action

Hello, is there a way to replicate the "Delete Checked Items" action using gkeep?

Screenshot 2021-01-19 084545

I use gkeep all the time, I have a little receipt printer on my desk, and run gkeep notes get ... | lpr to print todo lists, grocery lists, addresses, etc. ๐Ÿ˜ƒ

Avoid clear text password

It would be great if the clear text password could be replaced by a (scoped?) access token. I don't feel comfortable saving my Google password in a text file on disk.

How to install gkeep ( gkeep --auth ~/.gkeepauth FAILS)

I like the idea of using google keep from the terminal.
I installed the gkeep using miniconda.

pip install gkeep
which gkeep # gkeep is /Users/poudel/miniconda3/bin/gkeep

Now, I created authentication file ~/.gkeepauth and used the command

gkeep --auth ~/.gkeepauth   # failed
gkeep --auth "/Users/poudel/.gkeepauth"  # failed

$ gkeep --auth auth.txt
Usage: gkeep [OPTIONS] COMMAND [ARGS]...

Error: Missing command.

I also created auth.txt at source directory

echo "myusername mypasswd" > /Users/poudel/miniconda3/bin/auth.txt

Trying to use gkeep gives following error.

Bhishan at BpMacpro in ~/Temp
$ gkeep add-item 75e4202b0c1.9fc0b868a7b34952 "Chip cookies" --check
Traceback (most recent call last):
  File "/Users/poudel/miniconda2/bin/gkeep", line 7, in <module>
    catch(cli)()
  File "/Users/poudel/miniconda2/lib/python2.7/site-packages/google_keep_tasks/exceptions.py", line 31, in wrap
    fn(*args, **kwargs)
  File "/Users/poudel/miniconda2/lib/python2.7/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/Users/poudel/miniconda2/lib/python2.7/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/Users/poudel/miniconda2/lib/python2.7/site-packages/click/core.py", line 1063, in invoke
    Command.invoke(self, ctx)
  File "/Users/poudel/miniconda2/lib/python2.7/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/poudel/miniconda2/lib/python2.7/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/Users/poudel/miniconda2/lib/python2.7/site-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/Users/poudel/miniconda2/lib/python2.7/site-packages/google_keep_tasks/management.py", line 17, in cli
    except gkeepapi.LoginException:
AttributeError: 'module' object has no attribute 'LoginException'

How can we install gkeep ?

LoginError

I tried adding an item with gkeep --auth auth.txt add-item <note id> "TEST" where auth.txt contains my email and password. However those seem to be invalid:

[Error] GKeep Exception:
LoginError: Check credentials file. The syntax is: <username> <password>.

I am quite sure that my email and password are correct - any idea why it is not working?

Notes commands

  • Create note
  • Update note
  • Delete note
  • Read notes
  • Search notes
  • Get note

Cannot login with password or app password

Hello, so I can't login via my regular gmail password or an app password. Installing with pip3 does not create an auth file (or any file, for that matter) in ~/.config. What is the format of the auth.json file and can I just manually enter my email address and app password into that file?

Execution Issue

When trying to run the script using any of the examples listed I get this error:

Traceback (most recent call last):
File "gkeep", line 7, in
catch(cli)()
File "C:\Users\User\AppData\Local\Programs\Python\Python37\lib\site-packages\google_keep_tasks\exceptions.py", line 31, in wrap
fn(*args, **kwargs)
File "C:\Users\User\AppData\Local\Programs\Python\Python37\lib\site-packages\click\core.py", line 764, in call
return self.main(*args, **kwargs)
File "C:\Users\User\AppData\Local\Programs\Python\Python37\lib\site-packages\click\core.py", line 717, in main
rv = self.invoke(ctx)
File "C:\Users\User\AppData\Local\Programs\Python\Python37\lib\site-packages\click\core.py", line 1134, in invoke
Command.invoke(self, ctx)
File "C:\Users\User\AppData\Local\Programs\Python\Python37\lib\site-packages\click\core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\Users\User\AppData\Local\Programs\Python\Python37\lib\site-packages\click\core.py", line 555, in invoke
return callback(*args, **kwargs)
File "C:\Users\User\AppData\Local\Programs\Python\Python37\lib\site-packages\click\decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "C:\Users\User\AppData\Local\Programs\Python\Python37\lib\site-packages\google_keep_tasks\management.py", line 17, in cli
keep.login(*get_auth(auth))
File "C:\Users\User\AppData\Local\Programs\Python\Python37\lib\site-packages\google_keep_tasks\auth.py", line 4, in get_auth
return [val.rstrip('\n\r') for val in open(file).read().split(' ')]
TypeError: expected str, bytes or os.PathLike object, not NoneType

installation failing python 2.7.10 and pip 10.0.0

Hello there,

I think gkeep is a very cool project, thx!

I am trying to install it but there is an error:

      File "/private/var/folders/y5/0dfhk3_s1k94ql1x_4mm0lhm0000jh/T/pip-install-Yc2fc4/gkeep/setup.py", line 6, in <module>
        from pip.req import parse_requirements
    ImportError: No module named req

After googling, it seems that pip.req was an interal pip module and is not available anymore:

pypa/pip#3240

Software versions in my system:

  • Python 2.7.10
  • pip 10.0.0
โžœ  ~ python --version
Python 2.7.10
โžœ  ~ pip --version
pip 10.0.0 from /Library/Python/2.7/site-packages/pip (python 2.7)
โžœ  ~ python
Python 2.7.10 (default, Feb  7 2017, 00:08:15)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from pip.req import parse_requirements
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named req
>>>

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.