<commit_before># Raspberry Pi Python Library for Voltage and Current Sensors Using the INA219

[![Build Status](https://travis-ci.org/chrisb2/pi_ina219.svg?branch=master)](https://travis-ci.org/chrisb2/pi_ina219)

This Python library supports the [INA219](http://www.ti.com/lit/ds/symlink/ina219.pdf) 
current and power monitor from Texas Instruments.

The library currently only supports _continuous_ reads of voltage and 
power, but not _triggered_ reads.

The library supports the detection of _overflow_ in the current/power 
calculations which results in meaningless values for current and power. 
This support depends on the calibration of the device. If the device 
calibration does not allow overflow detection then a warning is written 
to the console. This warning may be ignored if you are confident that 
overflow cannot occur in your system. To avoid the warning and allow 
overflow detection increase the gain.<commit_msg>Add code coverage badge to README<commit_after># Raspberry Pi Python Library for Voltage and Current Sensors Using the INA219

[![Build Status](https://travis-ci.org/chrisb2/pi_ina219.svg?branch=master)](https://travis-ci.org/chrisb2/pi_ina219)
[![codecov](https://codecov.io/gh/chrisb2/pi_ina219/branch/master/graph/badge.svg)](https://codecov.io/gh/chrisb2/pi_ina219)

This Python library supports the [INA219](http://www.ti.com/lit/ds/symlink/ina219.pdf) 
current and power monitor from Texas Instruments.

The library currently only supports _continuous_ reads of voltage and 
power, but not _triggered_ reads.

The library supports the detection of _overflow_ in the current/power 
calculations which results in meaningless values for current and power. 
This support depends on the calibration of the device. If the device 
calibration does not allow overflow detection then a warning is written 
to the console. This warning may be ignored if you are confident that 
overflow cannot occur in your system. To avoid the warning and allow 
overflow detection increase the gain.
{'fraction_non_alphanumeric': 0.06643529995042141, 'fraction_numerical': 0.020823004462072386, 'mean_word_length': 4.970414201183432, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 2, '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': '3446888', 'n_tokens_mistral': 591, 'n_tokens_neox': 552, 'n_words': 239}