This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

PyResistorColorCode V0.1.0

The user and API documentation is hosted on the project homepage.

Written by Fabrice Salvaire.


PyResistorColorCode is a Python module that provides some tools to manage IEC 60062 marking codes for resistors.

The associated program resistor-decoder provides a graphical user interface to help user to decode a resistor colour-coding using an inference algorithm. This feature is an enhancement compared to a program like gresistor which is only a colour-coding calculator.

I started to develop this software a day where I had to sort a lot of unsorted resistors in a jumble. Resistors colour-coding using no more than 3 bands (2 digits and a multiplier) are no too difficult to decode when a person is experienced. But for more accurate resistors, it is more tricky. Another difficulty arises when it is difficult to recognise the colour of a band, due to an inappropriate colour contrast or tone. For strange colour-coding we can in last resort use an Ohmmeter to measure the resistance value. But it doesn’t respond to the question what is the specification of this resistor: tolerance, temperature coefficient, etc. For all theses reasons, I developed an inference algorithm coupled to an graphical user interface to help user to decode resistor colour-coding.

Inference Algorithm

The inference algorithm works as follow:

  • code orientation (left-right or right-left) doesn’t matter,
  • unset bands are not take into account,
  • at least 3 colours must be provided: 2 digits and the multiplier,
  • colour band are interpreted by priority as:
  1. resistance value,
  2. resistance tolerance,
  3. temperature coefficient,
  • the resistance value must exists in a IEC 60063 series: E6, E12, E48, E96, E192,
  • the resistance tolerance must be defined if there is a colour band assigned to it.

When there is more than one hypothesis for the given input, the hypotheses are sorted by ascending precision (series).


You can install from Pypy:

pip install PyResistorColorCode

but pip is unable to install PyQt. If you are on Linux then install the corresponding package else download the installer from PyQt download page.

Source Repository

The source code is licensed under GPL V3 and is hosted on GitHub. Also a Python package is available on PyPI. And the relative project page on is located on the ohloh project page.


  • Python 2.7
  • PyQt 4.8

Manual Installation

Alternatively you can download the source from Github or Pypi and run the following commands in a terminal within the source directory:

python build
python install


Set the terminal environment using:


then run the command:


Package for Linux

RPM .spec files are provided for Fedora (up to F18), see spec directory in the sources.

Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
PyResistorColorCode-0.1.0.tar.gz (160.0 kB) Copy SHA256 Checksum SHA256 Source Apr 8, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting