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 build
command. 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
pipx
with themake install
command. 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.py
script to create the source distribution and wheel for the package. -
To install the package, use
make install
. This command utilizespipx
to 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-info
directories to ensure a clean state. -
To run unit tests, use
make test
. This command executes all unit tests located in thetests
directory to verify that the package works as expected. -
To upload the package to PyPI, use
make upload
. This command usestwine
to upload the built distributions to the Python Package Index (PyPI). This step is optional and requires thetwine
module to be installed. -
To run the main script of the package, use
make run
. This command executes the main function defined in theQRClipboard.main
module.
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
File details
Details for the file qrclipboard-0.1.2.tar.gz
.
File metadata
- Download URL: qrclipboard-0.1.2.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f888f90210fff40ff7010049fd3883d48bfbd66f4141ccd72e1f60f30afc994b |
|
MD5 | 3b3ce69d8e2806060bad48f9be47306e |
|
BLAKE2b-256 | a1a2cd1797ce51dddd72bbe415abce5345e8338debf583ebbebfa9b18b426cf6 |
File details
Details for the file QRClipboard-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: QRClipboard-0.1.2-py3-none-any.whl
- Upload date:
- Size: 3.3 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 | 8ce0d9f470177cd1c8c23a1be2798048576381e1ab2f94c9e74f2791fdbc6cd2 |
|
MD5 | e9ff68dd6aa7ab6049e782eb9ab31a62 |
|
BLAKE2b-256 | 4486456f6b0281a5c0b9b064e38b3e4116028163c3ab481502a2d1e05b3a850e |