Skip to main content

A CLI to import Digikey parts into an Inventree instance

Reason this release was yanked:

Inadvertent versioning

Project description

Digikey-Inventree-Integration

Setup

Installation

Install from Pypi

pip install inventree_digikey_integration

Install from source

  1. Install poetry
  2. Clone the repo git clone git@github.com:EUdds/digikey-inventree-integration.git
  3. cd digikey-inventree-integration
  4. poetry install

Configuration

Create a config.ini file according to the template and specify it's location with the -c <path> flag

[DIGIKEY_API]
CLIENT_ID=
CLIENT_SECRET=

[INVENTREE_API]
URL=<URL to the inventree instance>
USER=
PASSWORD=

Usage

Invoke the cli by running import_digikey_parts

usage: import_digikey_parts [-h] [-y] [-c CONFIG] query_numbers [query_numbers ...]

Import Digikey part numbers into InvenTree

positional arguments:
  query_numbers         Part number(s) to import

optional arguments:
  -h, --help            show this help message and exit
  -y, --yes             Bypass user prompts and assume "yes"
  -c CONFIG, --config CONFIG
                        Path to config file

Testing

Run the test suite by running poetry run pytest

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

inventree_digikey_integration-1.0.0.tar.gz (6.1 kB view hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page