Skip to main content
python-barcode-spreadSheet
==========================

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

<b>Pre-requisites: </b>

<ul>

<li>

gspread &nbsp;&nbsp;&nbsp;&nbsp; <a href="https://github.com/burnash/gspread">https://github.com/burnash/gspread</a>

</li>

<li>

pyBarcode &nbsp;&nbsp;&nbsp;&nbsp; <a href="https://pypi.python.org/pypi/pyBarcode">https://pypi.python.org/pypi/pyBarcode</a>

</li>

</ul>


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


Usage
-----
Import the script:
<pre><code>import BarcodePythonScript as bps</code></pre>

Logging into the spreadsheet client:
<pre><code>client=bps.spreadsheet_login(your_google_email, your_google_password)</code></pre>

Generating bar-code:
<pre><code>bps.BarcodeGen(barcode_type, barcode_gen_value, image_name)</code></pre>
> 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:
Here is a list: Code 39, PZN, EAN-13, EAN-8, JAN, ISBN-13, ISBN-10, ISSN, UPC-A

Writing barcode image to spreadsheet:
<pre><code>bps.BarcodeWrite(client, spreadsheet_key, image_url, cell_id, sheet_id)</code></pre>
> 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&amp;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.0

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.0
File Size Uploaded Provenance Actions
python-barcode-spreadSheet-1.1.0.tar.gz 1.8 kB Without provenance Details for python-barcode-spreadSheet-1.1.0.tar.gz

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

Download URL python-barcode-spreadSheet-1.1.0.tar.gz
Size 1.8 kB
Tags Source
SHA-256 checksum
How to use checksums
cee1de9e0d8ea44b0ba599e69d4f1b44fb5070a3bbbdbbf3a70619b19f9a4f8d
BLAKE2b-256 checksum
How to use checksums
033ca415788d41254fce0fbf47c500b5f4e4d31cc060e18db497660cd90a9d01
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for python-barcode-spreadSheet 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1.0 This release

1 release file No provenance

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