No project description provided
Project description
clipboard-processor
Process clipboard content and show helpful overlays or notifications based on the content, e.g. parse UNIX timestamps, AWS account IDs, VINs, base64 strings and more.
All parsing & decoding is done locally. The clipboard content is not sent to any external service.
Installation
Some features require additional libraries to be installed (see below).
Install with required dependencies only:
pip install clipboard-processor
Install with all optional dependencies (recommended):
pip install clipboard-processor[all]
Usage
clipboard-processor
Show help:
clipboard-processor --help
Run with xclip-primary input mode:
clipboard-processor --input xclip-primary
Functionality
Input
There are different input modes available:
Mode | Description |
---|---|
auto |
Use pyperclip for cross-platform clipboard access. This is the default. |
xclip-primary |
Use the primary selection on linux via xclip . No explicit copy operation is needed – selecting the text is sufficient. Requires xclip command in the search path. |
Plugins
All decoding functionality is provided via plugins. Per default, all available plugins are enabled.
Plugin | Description | External library |
---|---|---|
aws_account_id |
Show AWS account name for given AWS account ID by parsing ~/.aws/config |
- |
base64 |
Decode base64 strings | - |
jwt |
Decode JSON web tokens (JWTs) | PyJWT |
ulid |
Parse ULIDs and show the encoded timestamp | python-ulid |
unixtime |
Parse UNIX timestamps and show the human-readable (ISO 8601) time | - |
vin |
Decode Vehicle Identification Numbers (VINs) | vininfo |
Output
There are different output modes available:
Mode | Description |
---|---|
ui |
Use tkinter overlay near the current mouse position to show the output. This is the default. |
notify |
Use desktop-notifier to show the output in a desktop notification. |
stdout |
Print the result of the processing to the standard output. This is mostly intended for debugging and testing. |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file clipboard_processor-0.1.0.tar.gz
.
File metadata
- Download URL: clipboard_processor-0.1.0.tar.gz
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28c22e0feb972b490996b2e08165121d458731499d805a2f704d968055a6091a |
|
MD5 | 28f223283b6798424121330d29d2a923 |
|
BLAKE2b-256 | d0be6af84ac5ad6053e152155c1290931061c193e3da22c29bf3bc040688c8e4 |
File details
Details for the file clipboard_processor-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: clipboard_processor-0.1.0-py3-none-any.whl
- Upload date:
- Size: 13.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4ecf88fa6859e689cbdbdef0650946e3556727d418a597245ac7ac7d1583c33 |
|
MD5 | efdf26e02521fe707d73138b17c28ccb |
|
BLAKE2b-256 | cfe072dd1a1de5415dea1f859a9355e1c2740b7ea91e60ad92c03a94c37d8ec7 |