Skip to main content

Génération d'une colonne qrcode dans un fichier : excel

Project description

Generate QR Code from Table Column 🚀

This Python package automatically generates QR codes in memory from a specific column of an Excel (.xlsx) or CSV (.csv) file and inserts them directly into a new Excel file, without storing temporary images on your disk.

Installation

Install the package directly via pip:

pip install generate-qrcode

🛠️ Usage

To use the tool, simply import the function addColumnQRcode from the module generateColumn.

The function takes two parameters:

1 - The path or name of the source file (.xlsx or .csv). 2 - The exact column name to transform into QR codes.

Example with Excel

from generate_qrcode.generateColumn import addColumnQRcode

# 1. Define the file and target column
file_name = "file_name.csv"
target_column = "column_name"

# 2. Run the function
# The function generates and automatically returns the path of the new file created
new_file = addColumnQRcode(file_name, target_column)

print(f"Processing complete! You can open: {new_file}")

Example with CSV

from generate_qrcode.generateColumn import addColumnQRcode

file_name = "file_name.csv"
target_column = "column_name"

new_file = addColumnQRcode(file_name, target_column)

print(f"Processing complete! You can open: {new_file}")

🔄 Output

After running the function:

Original data is preserved.

A new column named QR_Code is added at the end of the table.

QR codes are inserted directly into Excel cells at the correct size (100x100).

The output file is saved as [original_name]_qr.xlsx.

📋 Requirements & Dependencies

The package installs and uses the following libraries:

pandas (for reading Excel/CSV data)

openpyxl (for generating enriched Excel files)

qrcode (for creating QR code matrices)

pillow (to customize the visual appearance of generated QR codes)

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

generate_qrcode-0.1.3.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

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

generate_qrcode-0.1.3-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: generate_qrcode-0.1.3.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for generate_qrcode-0.1.3.tar.gz
Algorithm Hash digest
SHA256 5708afaafa30520bf70831ab4b638b3256025cabed9a848d7c05b513389c7866
MD5 deaa5e98256def427e73905c63640852
BLAKE2b-256 80b027b8ffe6e9a5d7b93e351d7f2a30aa8fce864097436b20ede92ae0ec6f77

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for generate_qrcode-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 686a4ee1ecc8c5a56d84d288bd0c717fdc7747833b1776661a124e4de3e5ca7f
MD5 b7ea2650338211edc08b2a516dbc665e
BLAKE2b-256 ebbaab5fc32b3c7e057ac9783a61895b34ac856575bd8a7e810c9c1b19e37297

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