https://github.com/sukhbinder/pbpaste-win
A tiny cli app to mimic `pbpaste` in windows
https://github.com/sukhbinder/pbpaste-win
cli pbpaste utilility windows
Last synced: 5 months ago
JSON representation
A tiny cli app to mimic `pbpaste` in windows
- Host: GitHub
- URL: https://github.com/sukhbinder/pbpaste-win
- Owner: sukhbinder
- Created: 2024-06-18T02:46:18.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-02T14:29:44.000Z (almost 2 years ago)
- Last Synced: 2025-03-23T17:20:37.315Z (about 1 year ago)
- Topics: cli, pbpaste, utilility, windows
- Language: Python
- Homepage:
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pbpaste-win: Small utility to mimic pbpaste in windows
[](https://pypi.org/project/pbpaste-win/)
[](https://github.com/sukhbinder/pbpaste-win/releases)
[](https://github.com/sukhbinder/pbpaste-win/actions?query=workflow%3ATest)
[](https://github.com/sukhbinder/pbpaste-win/blob/main/LICENSE)
Simple command-line tool that mimics pbpaste in windows.
**Installation and Usage**
You can install this package using pip:
```
pip install pbpaste-win
```
Once installed, you can use it as a command-line tool by running:
```
pbpaste
```
This will print the current clipboard contents to the console.
**How it works**
1. The script creates a hidden tkinter window.
2. It retrieves the current clipboard contents using `root.clipboard_get()`.
3. The retrieved text is then printed to the console.