Code 128 Barcode

Latest version

Code 128 Examples. Code 128 incorporates GS1-128 (formerly known as EAN/UCC-128) Code 128 Regular Code 128. GS1-128 Code 128 barcodes for use in GS1 systems. Previously known as EAN/UCC-128. GS1-128 Freeform The recommended option for GS1-128. Application identifiers, parentheses and data are entered in to the software, which validates the. Free Barcode Font - Code 128. Free Barcode Font - Code 128 Code 128 is variable length format that can be read in either direction and incorporates a checksum for built in validation. Code 128 Barcode Fonts encode numbers, symbols, uppercase and lowercase text as well as functions such as returns and tabs. All Code 128 barcode fonts require a start character, checksum character, and a stop character to create readable barcodes. Due to the required calculation of a checksum, implementation of Code 128 as a barcode font may be. Code 128 is a high-density linear barcode symbology defined in ISO/IEC. It is used for alphanumeric or numeric-only barcodes. It can encode all 128 characters of ASCII and, by use of an extension symbol (FNC4), the Latin-1 characters defined in ISO/IEC 8859-1. A Code 128 barcode consists of a leading 'quiet zone', one of three start codes, the data itself, a check character, a stop character, and a trailing quiet zone.

Released:

Create code128 barcodes

Project description

Overview

code128 is a simple library to create Code-128 barcodes.

useful links:

Repository with latest source

License

Code 128 barcode font free

Copyright (c) 2014-2015 Felix Knopf

This library is free software; you can redistribute it and/ormodify it under the terms of the GNU Lesser General PublicLicense as published by the Free Software Foundation; eitherversion 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNULesser General Public License in the LICENSE.txt for more details.

Code 128 Barcode FAQ - PrecisionID.com

What’s New

0.2

Command Line Interface; PyPI integration

Features

  • optimal codes (use code128C to encode long sequences of digits; lazy switch between Code128A and B)
  • full latin-1 charset is supported
  • no additional libraries needed for svg output
  • output as PIL Image objects (PIL requiered)
  • command line tool and gui

Setup

128

This is a pure python package, for this the following steps are optional.A copy of the package (folder code128 in the source archive) in your directory will also work for this specific project.The instructions below ensure that the library is available for every python module and from the command line.

Note, that some Linux Systems use python3 and pip3 to distinguish from their Python2 versions.

For Windwos users without a Python installation there is also a ‘stand-alone’ version available.

Dependencies

  • Python3 (Tested with 3.3 and 3.4, other versions should work, too)
  • setuptools to use the setup script or pip, usually preinstalled
  • optional: PIL, or compatible fork (Pillow is recommended) to save barcodes as raster graphics

Windows Users

A convenient graphical installer is provided for the final releases.

build from source

download the zip archive or tarball, extract it and install with (you may need root access):

Usage

from shell

Code128 provides a command line interface. If you installed the library, simply type

The packet also defines a __main__.py entry point, so

will work, too.

The GUI

will start the graphical mode, where you can preview your codes.This needs PIL and tkinter.

Contribution

Use the Issue Tracker on Bitbucket to report bugs, request a feature, etc.

If you want to contribute some code, feel free to create a pull request.

Release historyRelease notifications | RSS feed

0.3

0.2

0.2b2 pre-release

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Code 128 Barcode Explained - Describes Code 128 A, B, C ...

Files for code128, version 0.3
Filename, sizeFile typePython versionUpload dateHashes
Filename, size code128-0.3-py3-none-any.whl (15.8 kB) File type Wheel Python version any Upload dateHashes
Filename, size code128-0.3.tar.bz2 (10.2 kB) File type Source Python version None Upload dateHashes
Filename, size code128-0.3.win32.msi (213.0 kB) File type Windows MSI Installer Python version any Upload dateHashes
Filename, size code128-0.3.zip (18.2 kB) File type Source Python version None Upload dateHashes
Close

Hashes for code128-0.3-py3-none-any.whl

Hashes for code128-0.3-py3-none-any.whl
AlgorithmHash digest
SHA256226811c3344f93352ffd0f9979478f8cebd211062b9e42d37d43236cc580ef1e
MD5c2f6894d4fd734b0c892de565ad5ecea
BLAKE2-25661964cd8740177d1ae8983410c0d363a35c6712d71f4adc36a7fc67c5f09a5ab
Close

Hashes for code128-0.3.tar.bz2

Hashes for code128-0.3.tar.bz2
AlgorithmHash digest
SHA256b9c6b7454a4c8e36c011e761eb550444876d1d6ff23efb40dc481201ccde3d14
MD52dd8986fa41c816d3592f7938545a524
BLAKE2-2566910b5128e1fef99c891476fcbfa3c7ad7144ec68403c753df0f999e91118db3
Close

Hashes for code128-0.3.win32.msi

Hashes for code128-0.3.win32.msi
AlgorithmHash digest
SHA256fe0b7872edb5fb370f37809b26a4287e6f501c526c8e1fb6b5ce9d0e0c4ce8c8
MD579d52ace6d884a910c56397d837a1ed4
BLAKE2-2566b1902038090aba59f296ba0f852e74c60ce5d1e3c9761059803bdea629b41b3
BarcodeClose

Hashes for code128-0.3.zip

Hashes for code128-0.3.zip
AlgorithmHash digest
SHA25672e6e0b9800af07584651e6145f49ce42a8f0b1ef0ec04afcc0205ecc5d4143f
MD5687aec18eb17b6b1a849a63644a05e94
BLAKE2-256ed004ac069ed6a8ae24f7395eee9882c18145abaacff9ecafa833977d927587d

Code 128 Barcode Scanner

Example GS1-128

Sample Bar Code 128

GS1-128 is an application standard of the GS1implementation using the Code 128barcodespecification. The former correct name was UCC/EAN-128. Other no longer used names have included UCC-128 and EAN-128. The GS1-128 standard was introduced in 1989 [1] and uses a series of Application Identifiers to include additional data such as best before dates, batch numbers, quantities, weights and many other attributes needed by the user.

Overview[edit]

The GS1-128 standard is an application standard within the Code 128 barcode. It identifies data with Application Identifiers (AI). Without spaces below, a simple SSCC (Serial Shipping Container Code) barcode would look something like this:

In the example above, [FNC1] is the single character Function Code 1, which specifies that a Code 128 barcode is a GS1-128 code. 00 is the serial shipping container code ('SSCC') AI that designates the following data as a serial shipping container code. 12345678 is the company number. 0000000001 is the container number.

It is possible to encode several pieces of data in one barcode. For example, a product serial number (application identifier code 21), production date (code 11), and expiration date (code 17) together would look something like this:

An additional FNC1 is required before the production date, because the preceding product serial number is variable length. This is not required before the expiration date, because the production date is fixed length. Reordering the components to place a variable-length field last produces a more compact form:

Mapping to EPC codes[edit]

As EPC and EAN respectively UCC as code systems are not congruent, GS1-128 gets mapped to EPC-GTIN with a reference list including both codes per type of product. However, there is no mapping for the serial number with EPC-SGTIN.

Full list of Application Identifiers[edit]

This list is from 2003 and therefore out of date and possibly incorrect. Also this is copyrighted by GS1 – for the up to date list please see the link below for the GS1 General Specifications[2] Because code 128 is more efficient at coding pairs of digits, preference is given to even lengths in numeric fields.

All dates are formatted as YYMMDD.

Code 128 barcode font free

y in the AI gives a number of decimal places in the following value. The represented value is the following integer divided by 10y. For example, a net weight of 22.7 kg could be coded as 3101 000227, 3102 002270, 3103 022700, or 3104 227000.

CodeDescriptiondata length (without AI)
00Serial Shipping Container Code (SSCC)18
01Global Trade Item Number (GTIN)14
02GTIN of Contained Trade Items14
10Batch/Lot Numbervariable, up to 20
11Production Date6
12Due Date6
13Packaging Date6
15Best Before Date (YYMMDD)6
17Expiration Date6
20Product Variant2
21Serial Numbervariable, up to 20
22Secondary Data Fieldsvariable, up to 29
23nLot number nvariable, up to 19
240Additional Product Identificationvariable, up to 30
241Customer Part Numbervariable, up to 30
242Made-to-Order Variation Numbervariable, up to 6
243Packaging component numbervariable, up to 20
250Secondary Serial Numbervariable, up to 30
251Reference to Source Entityvariable, up to 30
253Global Document Type Identifiervariable, 13–17
254GLN Extension Componentvariable, up to 20
255Global Coupon Number (GCN)variable, 13–25
30Count of itemsvariable, up to 8
310yProduct Net Weight in kg6
311yProduct Length/1st Dimension, in meters6
312yProduct Width/Diameter/2nd Dimension, in meters6
313yProduct Depth/Thickness/Height/3rd Dimension, in meters6
314yProduct Area, in square meters6
315yProduct Net Volume, in liters6
316yProduct Net Volume, in cubic meters6
320yProduct Net Weight, in pounds6
321yProduct Length/1st Dimension, in inches6
322yProduct Length/1st Dimension, in feet6
323yProduct Length/1st Dimension, in yards6
324yProduct Width/Diameter/2nd Dimension, in inches6
325yProduct Width/Diameter/2nd Dimension, in feet6
326yProduct Width/Diameter/2nd Dimension, in yards6
327yProduct Depth/Thickness/Height/3rd Dimension, in inches6
328yProduct Depth/Thickness/Height/3rd Dimension, in feet6
329yProduct Depth/Thickness/3rd Dimension, in yards6
330yContainer Gross Weight (kg)6
331yContainer Length/1st Dimension (Meters)6
332yContainer Width/Diameter/2nd Dimension (Meters)6
333yContainer Depth/Thickness/3rd Dimension (Meters)6
334yContainer Area (Square Meters)6
335yContainer Gross Volume (Liters)6
336yContainer Gross Volume (Cubic Meters)6
340yContainer Gross Weight (Pounds)6
341yContainer Length/1st Dimension, in inches6
342yContainer Length/1st Dimension, in feet6
343yContainer Length/1st Dimension in, in yards6
344yContainer Width/Diameter/2nd Dimension, in inches6
345yContainer Width/Diameter/2nd Dimension, in feet6
346yContainer Width/Diameter/2nd Dimension, in yards6
347yContainer Depth/Thickness/Height/3rd Dimension, in inches6
348yContainer Depth/Thickness/Height/3rd Dimension, in feet6
349yContainer Depth/Thickness/Height/3rd Dimension, in yards6
350yProduct Area (Square Inches)6
351yProduct Area (Square Feet)6
352yProduct Area (Square Yards)6
353yContainer Area (Square Inches)6
354yContainer Area (Square Feet)6
355yContainer Area (Square Yards)6
356yNet Weight (Troy Ounces)6
357yNet Weight/Volume (Ounces)6
360yProduct Volume (Quarts)6
361yProduct Volume (Gallons)6
362yContainer Gross Volume (Quarts)6
363yContainer Gross Volume (U.S. Gallons)6
364yProduct Volume (Cubic Inches)6
365yProduct Volume (Cubic Feet)6
366yProduct Volume (Cubic Yards)6
367yContainer Gross Volume (Cubic Inches)6
368yContainer Gross Volume (Cubic Feet)6
369yContainer Gross Volume (Cubic Yards)6
37Number of Units Containedvariable, up to 8
390yAmount payable (local currency)variable, up to 15
391yAmount payable (with ISO currency code)variable, 3–18
392yAmount payable per single item (local currency)variable, up to 15
393yAmount payable per single item (with ISO currency code)variable, 3–18
400Customer Purchase Order Numbervariable, up to 30
401Consignment Numbervariable, up to 30
402Bill of Lading number17
403Routing codevariable, up to 30
410Ship To/Deliver To Location Code (Global Location Number)13
411Bill To/Invoice Location Code (Global Location Number)13
412Purchase From Location Code (Global Location Number)13
413Ship for, Deliver for, or Forward to Location Code (Global Location Number)13
414Identification of a physical location (Global Location Number)13
420Ship To/Deliver To Postal Code (Single Postal Authority)variable, up to 20
421Ship To/Deliver To Postal Code (with ISO country code)variable, 3–15
422Country of Origin (ISO country code)3
423Country or countries of initial processingvariable, 3–15
424Country of processing3
425Country of disassembly3
426Country of full process chain3
7001NATO Stock Number (NSN)13
7002UN/ECE Meat Carcasses and cuts classificationvariable, up to 30
7003expiration date and time10
7004Active Potencyvariable, up to 4
703nProcessor approval (with ISO country code); n indicates sequence number of several processorsvariable, 3–30
8001Roll Products: Width/Length/Core Diameter/Direction/Splices14
8002Mobile phone identifiervariable, up to 20
8003Global Returnable Asset Identifiervariable, 14–30
8004Global Individual Asset Identifiervariable, up to 30
8005Price per Unit of Measure6
8006identification of the components of an item18
8007International Bank Account Numbervariable, up to 30
8008Date/time of productionvariable, 8–12
8018Global Service Relationship Number18
8020Payment slip reference numbervariable, up to 25
8100Coupon Extended Code: Number System and Offer6
8101Coupon Extended Code: Number System, Offer, End of Offer10
8102Coupon Extended Code: Number System preceded by 02
8110Coupon code ID (North America)variable, up to 30
8200Extended Packaging URLvariable, up to 70
90Mutually Agreed Between Trading Partnersvariable, up to 30
91–99Internal Company Codesvariable, up to 90

References[edit]

Code 128 Barcode Download

  1. ^'GS1 Historic Timeline'. GS1. Retrieved 9 October 2018.
  2. ^General specifications(PDF), GS1.

External links[edit]

Retrieved from 'https://en.wikipedia.org/w/index.php?title=GS1-128&oldid=944129964'