This script reads the content of the clipboard and displays it as a QR code.
Project description
QRClipboard
QRClipboard is a Python package that creates QR codes from the contents of the clipboard.
Installation
To install the package, follow these steps:
-
First, create the package by running the
make buildcommand. This command will generate the source distribution (sdist) and wheel (bdist_wheel) for the package. -
Once the package is built, you can install it using
pipxwith themake installcommand. This command installs the package in an isolated environment to avoid any conflicts with other packages.
Usage
After installing the package, you can execute it using the qrclip command:
qrclip
This command will read the current content of the clipboard, generate a QR code from it, and display the QR code.
Development
To contribute to this project, follow these steps:
- Fork the repository on GitHub.
- Create a new branch for your feature or bug fix:
git checkout -b feature-new-feature
- Make your changes and commit them with a meaningful message:
git commit -m 'Add new feature'
- Push your changes to GitHub:
git push origin feature-new-feature
- Open a pull request on GitHub to merge your changes.
Commands
The project includes a Makefile that simplifies various tasks:
-
To build the package, use
make build. This command runs thesetup.pyscript to create the source distribution and wheel for the package. -
To install the package, use
make install. This command utilizespipxto install the package in an isolated environment. -
To uninstall the package, use
make uninstall. This command removes the package installed bypipx. -
To clean the build directories, use
make clean. This command deletes thebuild,dist, and.egg-infodirectories to ensure a clean state. -
To run unit tests, use
make test. This command executes all unit tests located in thetestsdirectory to verify that the package works as expected. -
To upload the package to PyPI, use
make upload. This command usestwineto upload the built distributions to the Python Package Index (PyPI). This step is optional and requires thetwinemodule to be installed. -
To run the main script of the package, use
make run. This command executes the main function defined in theQRClipboard.mainmodule.
License
This project is licensed under the MIT License. For more details, refer to the LICENSE file.
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 qrclipboard-0.1.1.tar.gz.
File metadata
- Download URL: qrclipboard-0.1.1.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4856c3d17837205a3e1f89ff8d074423b94bdc84a454b84e6f68d5c42a599e9e
|
|
| MD5 |
ce1aa5f140c44041b196cc0f1696e070
|
|
| BLAKE2b-256 |
9d7997d12bac263e4fdf5abcd83875bc225427ca89132143f681be443c1613d4
|
File details
Details for the file QRClipboard-0.1.1-py3-none-any.whl.
File metadata
- Download URL: QRClipboard-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
74255ab95bf4571aa30ff7e7b06fd8a7b039a6b1eb1371508d5180a955a9ab92
|
|
| MD5 |
250898bcf2cbf2ab530a6e49828ff7b7
|
|
| BLAKE2b-256 |
9ea61edc142abefb018d676f30b8ee61ea91ebf9911ec5a5ae61c7577b422a00
|