Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added 'digikey_link' to make a column with links to digikey P/Ns #114

Merged
merged 1 commit into from
Jul 17, 2020

Conversation

set-soft
Copy link
Contributor

Description

Digi-Key is one of the most complete electronic parts providers. Is often used as a reference.

If you have a field containing the Digi-Key part number you can make its column to contain links to the Digi-Key web page for this component.

How to use

Define the digikey_link option in the configuration file (i.e. bom.ini).

The value for this option is the column you want to convert into a link to the Digi-Key.
Note that this field must be a valid Digi-Key part number.
Example:

digikey_link = digikey#

This will make entries in the column digikey# (Digi-Key part number) links to the component's web page.

You can specify more than one fiel name using tab (ASCII 9) as separator:

digikey_link = digikey#	digikey_alt#

Limitations

  • Only available for HTML.
  • Could break if Digi-Key changes it web layout. Please report any problem.

Replaces #80 using a simpler method.

-## Description

Digi-Key is one of the most complete electronic parts providers. Is often used as a reference.

If you have a field containing the Digi-Key part number you can make its column to contain links to the Digi-Key web page for this component.

-## How to use

Define the `digikey_link` option in the configuration file (i.e. `bom.ini`).

The value for this option is the column you want to convert into a link to the Digi-Key.
Note that this field must be a valid Digi-Key part number.
Example:

```
digikey_link = digikey#
```

This will make entries in the column `digikey#` (Digi-Key part number) links to the component's web page.

You can specify more than one fiel name using tab (ASCII 9) as separator:

```
digikey_link = digikey#	digikey_alt#
```

-## Limitations

- Only available for HTML.
- Could break if Digi-Key changes it web layout. Please report any problem.

Replaces SchrodingersGat#80 using a simpler method.
set-soft added a commit to INTI-CMNB/KiBoM that referenced this pull request Jul 17, 2020
@SchrodingersGat SchrodingersGat merged commit 0551e98 into SchrodingersGat:master Jul 17, 2020
@SchrodingersGat
Copy link
Owner

I've merged this and also added some instructions to README.md

set-soft added a commit to INTI-CMNB/KiBoM that referenced this pull request Jul 20, 2020
- Added warning if boolean options aren't 0,1,yes,no,true,false
- `as_link` and `digikey_link`: avoid writing "False" boolean, which
  then is loaded as "False" string. Now using '' which is equivalent
  to False. (bool('') -> False). Introduced by me on
  SchrodingersGat#112 and SchrodingersGat#114.
- Put all SECTION_GENERAL options inside the already existing if.
- `backup` also made to default to '' instead of False for coherence.
- `hide_headers` and `hide_pcb_info` now support the same options as
  other booleans. Also write them as '0', not 'False' for coherence
  with all the other booleans.
- `board_variant` write as a string, not an array (bizarre
  ['default']" in created *bom.ini*)
- Add a checkStr method, to make it similar to checkInt and
  checkOption. Making the general options much more compact in the
  code.
- `output_file_name` and `variant_file_name_format` now use a more
  general fallback mechanism (fallback option is documented only for
  Python 3). Better than what I did in SchrodingersGat#121.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants