Skip to main content

A simple Python tool to generate bar-codes and programmatically insert them into Google Spreadsheets for printing.

Pre-requisites

Download and get the two plugins up and running before proceeding.

Usage

Import the script:

import BarcodePythonScript as bps

Logging into the spreadsheet client:

client=bps.spreadsheet_login(your_google_email, your_google_password)

Generating bar-code:

bps.BarcodeGen(barcode_type, barcode_gen_value, image_name)

> where ‘barcode_type’ is the type of bar-code desired, ‘barcode_gen_value’ is the value to be used with the bar-code and ‘image_name’ is the desired name of the bar-code image PNG file.

Types of bar-codes: Code 39, PZN, EAN-13, EAN-8, JAN, ISBN-13, ISBN-10, ISSN, UPC-A

Writing bar-code image to spreadsheet:

bps.BarcodeWrite(client, spreadsheet_key, image_url, cell_id, sheet_id)

> where ‘client’ is the spreadseet client, ‘spreadsheet_key’ is the key of the spreadsheet found in its URL. For example, in > ‘docs.google.com/spreadsheet/ccc?key=0AslEqHKkTxw1dGFSQmpyQnBKWXhYelRRQ3hldjFWS0E&usp=sharing#gid=14’, > the key is ‘0AslEqHKkTxw1dGFSQmpyQnBKWXhYelRRQ3hldjFWS0E’. > image_url is the absolute url of the image saved above, cell_id is the address of the spreadsheet cell where the bar-code is to be inserted (A21, F34, C6 etc) and sheet_id is the index of the sheet (0 being the first).

Metadata

Release files for python-barcode-spreadSheet 1.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-barcode-spreadSheet 1.1.3
File Size Uploaded
python-barcode-spreadSheet-1.1.3.tar.gz 1.7 kB Details

Release files / python-barcode-spreadSheet-1.1.3.tar.gz

Download URL python-barcode-spreadSheet-1.1.3.tar.gz
Size 1.7 kB
Tags Source
SHA-256 checksum
How to use checksums
dd1d0305945b13088831e03d597b62fefc953a4decc58d46f1296e69e5a8c714
BLAKE2b-256 checksum
How to use checksums
8369ae2464b62f32f071ef057860585217013774a9d2164bcf113a77edf6827f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.1.3 This release

1 release file

1.1.2

1 release file

1.1.0

1 release file

1.0.9

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page