Skip to main content

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

Metadata

Release files for pockette 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pockette 0.0.1
File Size Uploaded
pockette-0.0.1.tar.gz 11.6 kB Details

Release files / pockette-0.0.1.tar.gz

Download URL pockette-0.0.1.tar.gz
Size 11.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d722977f79af69743ed832514dc6f7178702532427a652d233b493258da638aa
BLAKE2b-256 checksum
How to use checksums
63b30ab4488bfbcc52370bd053cd8207f7b8ce583daf4ac8ef1fc696e5f91b7b
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page