Skip to main content

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.

QRClipboard

Installation

PyPi.org with pipx

https://pypi.org/project/QRClipboard/

pipx install QRClipboard

Manually

To install the package, follow these steps:

  1. 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.

  2. Once the package is built, you can install it using pipx with the make 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:

  1. Fork the repository on GitHub.
  2. Create a new branch for your feature or bug fix:
    git checkout -b feature-new-feature
    
  3. Make your changes and commit them with a meaningful message:
    git commit -m 'Add new feature'
    
  4. Push your changes to GitHub:
    git push origin feature-new-feature
    
  5. 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 the setup.py script to create the source distribution and wheel for the package.

  • To install the package, use make install. This command utilizes pipx to install the package in an isolated environment.

  • To uninstall the package, use make uninstall. This command removes the package installed by pipx.

  • To clean the build directories, use make clean. This command deletes the build, 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 the tests directory to verify that the package works as expected.

  • To upload the package to PyPI, use make upload. This command uses twine to upload the built distributions to the Python Package Index (PyPI). This step is optional and requires the twine module to be installed.

  • To run the main script of the package, use make run. This command executes the main function defined in the QRClipboard.main module.

License

This project is licensed under the MIT License. For more details, refer to the LICENSE file.

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

qrclipboard-0.1.3.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

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

qrclipboard-0.1.3-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file qrclipboard-0.1.3.tar.gz.

File metadata

  • Download URL: qrclipboard-0.1.3.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for qrclipboard-0.1.3.tar.gz
Algorithm Hash digest
SHA256 cf239ab31f5420f270f7b97b89e86eec05de2bac802bef5d625cb4af78187a61
MD5 ac899b28c27b9ce9abbb1cb47b314480
BLAKE2b-256 49a354c1bda8f8bf811d5d59c340051bb0421ab088728f11cdd32163041ba4e1

See more details on using hashes here.

File details

Details for the file qrclipboard-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: qrclipboard-0.1.3-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

Hashes for qrclipboard-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8804a439f19de7c635e10d849aae5917196e70a6ac271af2451fe5c549463986
MD5 05f6f3d37171575e3a7ee031c48e97fd
BLAKE2b-256 a943a3bec5fd96637fbb20a283fa696376022808fbbd3b5d8ab437d7d5aa8c98

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