Skip to main content

Command line tools for working with Pocket

Project description

pockette: Pocket command-line interface

Command line tools for working with Pocket data.

Requirements

  • Python 3.7
  • Pocket API credentials

Setup

Dependencies

pip install pockette

Configuration

Set the POCKET_CONSUMER_KEY and POCKET_ACCESS_TOKEN environment variables. Use the pockette setup command for help.

Usage

Commands

pockette setup

Create a Pocket application and authorize it to read your data.

pockette setup

pockette report

Create an overview report of all data.

pockette report

pockette search

Search for specific links.

pockette search

pockette read

Search for links and open them in a browser.

pockette read

Options

--help

Show the help messages for each command.

--count

The number of links to select.

--offset

Offset the links selection by this count.

--random

Randomize the links selection.

--sort time/site

Sort links by chronological (default) or alphabetical order.

--reverse

Sort links in the reverse order.

--include

Include links with these keyword(s) (comma-separated).

--exclude

Exclude links with these keyword(s) (comma-separated).

--start YYYY-MM-DD

Show links after this date.

--end YYYY-MM-DD

Show links before this date.

--length short/long

Show only short (<4 minutes) or long (>10 minutes) links.

--all

Show all unread links. Overrides all other search options.

Development

Install development dependencies.

pip install -e .[dev]

Tests

make test

Lint checks

make lint

Type checks

make typecheck

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pockette-0.0.1.tar.gz (11.6 kB view details)

Uploaded Source

File details

Details for the file pockette-0.0.1.tar.gz.

File metadata

  • Download URL: pockette-0.0.1.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7

File hashes

Hashes for pockette-0.0.1.tar.gz
Algorithm Hash digest
SHA256 d722977f79af69743ed832514dc6f7178702532427a652d233b493258da638aa
MD5 1c1de6b56c28977f8b7599482752f3f8
BLAKE2b-256 63b30ab4488bfbcc52370bd053cd8207f7b8ce583daf4ac8ef1fc696e5f91b7b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page