Skip to main content

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"

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

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

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

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

Help

Display help information about all commands and options.

  • Syntax: help
  • Example: clip help

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

json-clip-1.0.2.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

json_clip-1.0.2-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

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

Hashes for json-clip-1.0.2.tar.gz
Algorithm Hash digest
SHA256 aa38db36bd7bb2ab13202abf1e27ec4a02622377342322f941d8e9dfc818412c
MD5 eb92156746c0e8993c3d1f050cedfec8
BLAKE2b-256 325af0ea80634270f34251d4145c2a6953559a38dd70453eb2385b7700bee2b5

See more details on using hashes here.

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

Hashes for json_clip-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e79636120cdf3911df3d2b21c1ccb72d0a9266143d05658de6b3247fecfef630
MD5 78334191514d2f32cce386f240ef6644
BLAKE2b-256 ddce21350249cb27f84fb1d5568fe184c3a271d9c2d996b3dce76ff944ee882c

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