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

Digiglass

Search Digi-Key from your terminal

Searching Digi-Key can be a pain. Here’s a list of things I do every time I search for an item:

  • Filter by “In Stock”
  • Filter by “Quantity Desired: 1”
  • Sort by price, ascending

Each of those actions takes a click and a couple seconds to load. I can automate these tasks and do most of the work from the command line.

Usage

  • Search for blue LEDs: digiglass blue led
  • Search for 470-ohm resistors in the through-hole category: digiglass -c 'through hole resistor' 470 ohm
  • Browse all resistor kits: digiglass --category 'resistor kit'

-c and --category are interchangeable. Category names support fuzzy search - you can type part of the name and the proper category will probably appear.

Installation

This is a Python 3 script, so use pip3 to install:

pip3 install digiglass

Filters

Specify a filter to be used during a search like this: digiglass --filter some_new_filter

You can customize the filters used by Digiglass by modifying ~/.digiglass. It’s a YAML file that looks like this:

filters:
    my_filter:
        in_stock: true
        lead_free: false
        rohs_compliant: false
        sort_by: '1000011'  # Unit price, USD, ascending
        min_quantity: 1
    pb_rohs:
        lead_free: true
        rohs_compliant: true

settings:
    default_filter: my_filter

Valid options are:

  • in_stock: Item must be in stock
  • lead_free: Item must be lead free
  • rohs_compliant: Item must be RoHS compliant
  • sort_by: The column by which to sort results
  • min_quantity: At least this many of this item must be available

Every field in a filter is optional.

default_filter is used when no filter is specified.

Fields not specified in a requested filter use the default filter’s settings.

Troubleshooting

Having issues? Try clearing the app’s cache: digiglass --clear-cache

Still having issues? Odds are Digi-Key changed their HTML format. They probably broke the app’s screen scraping. Let me know and I’ll try and fix it—or dig in yourself! Screen scraping is fun.

Contributions

Bug reports, fixes, or features? Feel free to open an issue or pull request any time. You can also tweet me at [@mplewis](http://twitter.com/mplewis) or email me at matt@mplewis.com.

License

Copyright (c) 2014 Matthew Lewis. Licensed under the MIT License.

Release History

Release History

1.0.4

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

1.0.3

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

1.0.2

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

1.0.1

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
digiglass-1.0.4.tar.gz (8.0 kB) Copy SHA256 Checksum SHA256 Source May 21, 2015

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