<div dir="ltr"><div>Very welcome Pete. I hadn't considered Octopart, but there's an API for that: <a href="https://github.com/guyzmo/pyoctopart">https://github.com/guyzmo/pyoctopart</a> !!</div><div><br></div>If you keep the Hippies happy, they are highly harmless. ;)<div><br></div><div>Mike<br><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 19, 2016 at 11:16 AM, Pete Soper <span dir="ltr"><<a href="mailto:pete@soper.us" target="_blank">pete@soper.us</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
On 05/19/2016 10:35 AM, Michael Monaghan wrote:<br>
<blockquote type="cite">
<div dir="ltr">Pete,
<div><br>
</div>
<div>If these don't answer your need, at least they provide the
dataset for your target resistors:</div>
<div><br>
</div>
<div><a href="https://github.com/mogar/EE_tools" target="_blank">https://github.com/mogar/EE_tools</a><br>
</div>
<div><br>
</div>
<div><a href="https://techoverflow.net/blog/2015/05/19/finding-the-nearest-e96-resistor-value-in-python/" target="_blank">https://techoverflow.net/blog/2015/05/19/finding-the-nearest-e96-resistor-value-in-python/</a><br>
</div>
</div>
</blockquote>
<br>
Wow. This is just exactly what I was after! Complete with license
that is what the hippies would call "truly righeous". Thanks very
much. I don't intend to connect this to octopart or the like, just
to be able to generate some resistor options to give immediate
feedback about tradeoffs.<br>
<br>
-Pete<br>
<blockquote type="cite">
<div dir="ltr">
<div><br>
</div>
<div>I think the second one is a good starting point. Just need
a simple iterator to build a list of candidates. I'm not
aware of anyone with pricing information in a digestible
format and as often as it changes, it would probably be better
to build a web page scrape to get it.</div>
<div><br>
</div>
<div>Mike</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Thu, May 19, 2016 at 10:10 AM,
Pete Soper via TriEmbed <span dir="ltr"><<a href="mailto:triembed@triembed.org" target="_blank"></a><a href="mailto:triembed@triembed.org" target="_blank">triembed@triembed.org</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm
looking for existing Python code that knows about E24 and
E96 resistor values. It would be a plus if it did the
simple calculations to select, for example, two 1%
resistors in parallel that give a resistance close to a
target value. I've made a modeler for a circuit that
requires precision resistors and would like to make it
less painful to map required values into ones that happen
to be for sale at affordable prices. But I figured it
would be silly to reinvent this wheel if it's already done
in a form that I can just slurp up with attribution.<br>
<br>
Thanks,<br>
Pete<br>
<br>
<br>
_______________________________________________<br>
Triangle, NC Embedded Computing mailing list<br>
<a href="mailto:TriEmbed@triembed.org" target="_blank">TriEmbed@triembed.org</a><br>
<a href="http://mail.triembed.org/mailman/listinfo/triembed_triembed.org" rel="noreferrer" target="_blank">http://mail.triembed.org/mailman/listinfo/triembed_triembed.org</a><br>
TriEmbed web site: <a href="http://TriEmbed.org" rel="noreferrer" target="_blank">http://TriEmbed.org</a><br>
</blockquote>
</div>
<br>
</div>
</div>
</blockquote>
<br>
</div>
</blockquote></div><br></div></div>