achembarpu / pockyt

Automate & manage your Pocket.com collection.
GNU General Public License v3.0
503 stars 34 forks source link
command-line-tool getpocket python

====== pockyt

A simple, yet powerful, commandline client for your Pocket <https://getpocket.com/>_ collection.

.. image:: http://img.shields.io/pypi/v/pockyt.svg?style=flat :target: https://pypi.python.org/pypi/pockyt

.. image:: http://img.shields.io/pypi/l/pockyt.svg?style=flat :target: https://pypi.python.org/pypi/pockyt

Links

About

Pocket <https://getpocket.com/>_ is an application for managing a reading list of articles from the Internet.

pockyt is a commandline client that interfaces the pocket API and provides a way to interact with your Pocket collection. Using simple command sequences, routine tasks can be automated and reusable scripts can be created.

Privacy

pockyt does NOT track, store, or monitor your usage and/or data. Moreover, pockyt interacts with the pocket API using local credentials and does not attempt to communicate with any other services.

Installation

pockyt supports Python 2.7+ & 3.4+ on Windows, macOS, & GNU/Linux platforms.

  1. Install pockyt: :code:pip install -U pockyt
  2. Connect Pocket account: :code:pockyt reg
  3. Refer the Examples & Documentation below.

Examples

Contribute

Feel free to contribute features, bugfixes, improvements, and usage ideas.

  1. Fork <https://github.com/achembarpu/pockyt/fork>_ pockyt.

  2. Work on the source code.

    .. code::

    git clone git@github.com:<username>/pockyt.git
    cd pockyt
    
    # runtime dependencies
    pip install -e .
    # devel dependencies
    pip install -r requirements.txt
    
    # do stuff
    git checkout -b new-feature
    
    # format files
    yapf -i -r .
    
    git add .
    git commit -am 'commit msg'
    git push origin new-feature
  3. Submit a pull request <https://github.com/achembarpu/pockyt/compare>_.

License

This project uses the GNU GPLv3 License <https://github.com/achembarpu/pockyt/blob/master/LICENSE.txt>_.

Documentation

pockyt help/-h/--help :

help show pockyt usage help reg connect a pocket account get get pocket collection, with useful item info put add to pocket collection, using links mod modify pocket collection, using item ids

pockyt reg -h :

-h, --help show this help message and exit --no-browser use without browser i.e. print to console

pockyt get -h :

-h, --help show this help message and exit -c , --content content type : : {all, [article, video, image]} -s , --state collection state : : {all, [unread, archive]} -r , --sort item sorting : : {newest, [oldest, title, site]} -n , --count number of items : : {-1: all, [n: amount]} -q , --query search query : : {None} -t

pockyt put -h :

-h, --help show this help message and exit -f , --format unformat input : : {'{link}', [id, title, link, excerpt, tags]} -i

pockyt mod -h :

-h, --help show this help message and exit -f , --format unformat input : : {'{id}', [id, title, link, excerpt, tags]} -i