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.4.tar.gz (3.5 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.4-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: generate_qrcode-0.1.4.tar.gz
  • Upload date:
  • Size: 3.5 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.4.tar.gz
Algorithm Hash digest
SHA256 4359388f98acb221a423d0f652bc7661ab9541e1ac12509aa945a591e076135f
MD5 fca938d53f3ad03117268205719f527c
BLAKE2b-256 a1914d052a5c04cf1ff599d6c40f033ddb8923e13845f54dd7e346865f98340d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for generate_qrcode-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5dd3187fd7af9ba39b6357f8a9691a4820e8f766d02738c83fdfa15257461d49
MD5 909772966010b4de04a7545c8009af36
BLAKE2b-256 850f33b96009c438934b30a2c3c30449a795e4815ef4de5b25f98b5814beb4d8

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