A command-line utility for efficient management of text snippets and keys, designed to simplify the storage, retrieval, and organization of frequently used text and commands
Project description
Clip
This is a simple command-line utility for managing a clipboard storage system. It allows users to add, retrieve, list, remove, and clear text entries stored in a JSON file. This utility supports both indexed and key-value storage, making it versatile for various use cases.
Features
- Add Entries: Add text entries with or without a key.
- Get Entries: Retrieve entries by their index or key.
- List Entries: Display all entries, or filter by indexed or key-based entries.
- Remove Entries: Delete entries by their index or key.
- Clear Storage: Completely clear the storage or selectively by indexed or key-based entries.
Commands and Options
Add
Add a new entry to the storage. Entries can be added to indexed storage or associated with a specific key.
- Syntax:
add [-k key] value - Options:
-k,--key: Specify a key for the entry (for key-value storage).
- Examples:
- Add to indexed storage:
clip add "Sample text" - Add to key-value storage:
clip add -k sample "Sample text"
- Add to indexed storage:
Get
Retrieve and display an entry from the storage.
- Syntax:
get [-k key] index - Options:
-k,--key: Specify that the retrieval should use a key (for key-value storage).
- Examples:
- Get from indexed storage:
clip get 0 - Get from key-value storage:
clip get -k sample
- Get from indexed storage:
List (ls)
List entries stored in the clipboard.
- Syntax:
ls [-a | -k] - Options:
-a,--all: List all entries (both indexed and key-value).-k,--key: List only key-value entries.
- Examples:
- List indexed entries:
clip ls - List all entries:
clip ls -a - List key-value entries:
clip ls -k
- List indexed entries:
Remove (rm)
Remove an entry from the storage.
- Syntax:
rm [-k key] index - Options:
-k,--key: Specify that the removal should use a key (for key-value storage).
- Examples:
- Remove from indexed storage:
clip rm 0 - Remove from key-value storage:
clip rm -k sample
- Remove from indexed storage:
Clear
Clear all entries from the storage or selectively clear indexed or key-value storage.
- Syntax:
clear [-i | -k] - Options:
-i,--index: Clear only the indexed storage.-k,--key: Clear only the key-value storage.
- Examples:
- Clear all storage:
clip clear - Clear indexed storage:
clip clear -i - Clear key-value storage:
clip clear -k
- Clear all storage:
Help
Display help information about all commands and options.
- Syntax:
help - Example:
clip help
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file json-clip-1.0.2.tar.gz.
File metadata
- Download URL: json-clip-1.0.2.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa38db36bd7bb2ab13202abf1e27ec4a02622377342322f941d8e9dfc818412c
|
|
| MD5 |
eb92156746c0e8993c3d1f050cedfec8
|
|
| BLAKE2b-256 |
325af0ea80634270f34251d4145c2a6953559a38dd70453eb2385b7700bee2b5
|
File details
Details for the file json_clip-1.0.2-py3-none-any.whl.
File metadata
- Download URL: json_clip-1.0.2-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e79636120cdf3911df3d2b21c1ccb72d0a9266143d05658de6b3247fecfef630
|
|
| MD5 |
78334191514d2f32cce386f240ef6644
|
|
| BLAKE2b-256 |
ddce21350249cb27f84fb1d5568fe184c3a271d9c2d996b3dce76ff944ee882c
|