<commit_before># pyzbar

[![Python Versions](https://img.shields.io/badge/python-2.7%2C%203.4%2C%203.5-blue.svg)](https://github.com/NaturalHistoryMuseum/pyzbar)
[![PyPI version](https://badge.fury.io/py/pyzbar.svg)](https://badge.fury.io/py/pyzbar)
[![Travis status](https://travis-ci.org/NaturalHistoryMuseum/pyzbar.svg?branch=master)](https://travis-ci.org/NaturalHistoryMuseum/pyzbar)
[![Coverage Status](https://coveralls.io/repos/github/NaturalHistoryMuseum/pyzbar/badge.svg?branch=master)](https://coveralls.io/github/NaturalHistoryMuseum/pyzbar?branch=master)

A `ctypes`-based Python wrapper around the [zbar](http://zbar.sourceforge.net/)
barcode reader.

The
[zbar](https://sourceforge.net/p/zbar/code/ci/default/tree/python/)
wrapper is stuck in Python 2.x-land.
The [zbarlight](https://github.com/Polyconseil/zbarlight/) wrapper doesn't
provide support for Windows and depends upon Pillow.
This `ctypes`-based wrapper brings `zbar` to Python 2.7 and to Python 3.4 or
greater.

## Installation

The `zbar` `DLL`s are included with the Windows Python wheels.
On other operating systems, you will need to install the `zbar` shared library.

On Mac OS X:

```
brew install zbar
```

On Linux:

```
sudo apt-get install libzbar0
```<commit_msg>PyPI url<commit_after># pyzbar

[![Python Versions](https://img.shields.io/badge/python-2.7%2C%203.4%2C%203.5-blue.svg)](https://github.com/NaturalHistoryMuseum/pyzbar)
[![PyPI version](https://badge.fury.io/py/pyzbar.svg)](https://pypi.python.org/pypi/pyzbar/)
[![Travis status](https://travis-ci.org/NaturalHistoryMuseum/pyzbar.svg?branch=master)](https://travis-ci.org/NaturalHistoryMuseum/pyzbar)
[![Coverage Status](https://coveralls.io/repos/github/NaturalHistoryMuseum/pyzbar/badge.svg?branch=master)](https://coveralls.io/github/NaturalHistoryMuseum/pyzbar?branch=master)

A `ctypes`-based Python wrapper around the [zbar](http://zbar.sourceforge.net/)
barcode reader.

The
[zbar](https://sourceforge.net/p/zbar/code/ci/default/tree/python/)
wrapper is stuck in Python 2.x-land.
The [zbarlight](https://github.com/Polyconseil/zbarlight/) wrapper doesn't
provide support for Windows and depends upon Pillow.
This `ctypes`-based wrapper brings `zbar` to Python 2.7 and to Python 3.4 or
greater.

## Installation

The `zbar` `DLL`s are included with the Windows Python wheels.
On other operating systems, you will need to install the `zbar` shared library.

On Mac OS X:

```
brew install zbar
```

On Linux:

```
sudo apt-get install libzbar0
```
{'fraction_non_alphanumeric': 0.15694888178913738, 'fraction_numerical': 0.01437699680511182, 'mean_word_length': 5.341772151898734, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 20, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3033905', 'n_tokens_mistral': 955, 'n_tokens_neox': 888, 'n_words': 181}