Visitar URL original
GitHub - sourcebots/bomtool: Tool for wrangling bill of materials for kit manufacture
The Wayback Machine - https://web.archive.org/web/20201226012713/https://github.com/sourcebots/bomtool
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

README.md

bomtool

Given a list of board types and their required quantities, this tool:

  • Downloads the original bills of materials from the respective Github repositories.
  • Combines the bills of materials into a single "shopping list".
  • Fetches prices and availability information from the listed distributors (currently supports Farnell, RS and Mouser).
  • Decides how many of each part we should order, taking into account minimum order quantities, spares, and favourable price breaks.
  • Exports all of this information into a Google spreadsheet.

In the future, this will hopefully:

  • Generate a costing breakdown for each board.

Usage

Check out this repo and cd to it.

python -m venv .venv
. .venv/bin/activate
pip install -e .

Set up environment variables:

  • SB_BOMTOOL_MOUSER_API_KEY: A valid Mouser API key.
  • SB_BOMTOOL_GOOGLE_API_CREDS: Filename of a Google API credentials.json file (containing client ID, client secret and metadata). You can generate one on the Google Cloud Platform Console.

Execute bomtool by running:

bomtool path/to/config.yaml OUTPUT_SPEC

where currently the only valid form of OUTPUT_SPEC is googlesheet:SPREADSHEET_ID. Here, SPREADSHEET_ID should be replaced with the long alphanumeric identifier present in the URL of the spreadsheet.

For example:

bomtool configs/smallpeice2019.yaml googlesheet:1eTEkgsXN6JzumoYiGoEkO7YOBuCE3r4QvOJFlK_qb0s

About

Tool for wrangling bill of materials for kit manufacture

Resources

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.