Skip to main content

Saves and loads pices of text to the clipboard, via a database in a .db file

Project description

Multiclipboard

Saves and loads pices of text to the clipboard, via a database in a .db file

Install

$ pip install multiclipboard

How to use

# Import pakage
from multiclipboard import multiclipboard

# Folder to save the .db file
bd_file = "c:\\user\\my_files"

# Make an intance reading the clipboard
my_multiclipboard = multiclipboard.Multiclipboard(bd_file)


# Save text from clipboard to the database, and associate this text with a keyword
my_multiclipboard.save_text ("key4")

# Save specific text  clipboard to the database, and associate this text with a keyword
my_multiclipboard.save_text ("key2", text="Example text to save")

# Return specific text with keyword
text = my_multiclipboard.get_text ("key2")
print (text)

# Copy to clipboard specific text with keyword
my_multiclipboard.copy_text ("key4")

# Delete specific keywords and the keyword text
my_multiclipboard.delete_keyword (1)

# Delete all keywords from the file
my_multiclipboard.delete_all()

# Print all keywords from the file
my_multiclipboard.list_keywords()

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

multiclipboard-1.0.0.tar.gz (3.1 kB view hashes)

Uploaded Source

Supported by

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