Skip to main content

A CLI to import Digikey parts into an Inventree instance

Project description

Digikey-Inventree-Integration

Test Results PyPI version

A CLI to ease importing Digikey parts into an Inventree instance.

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-0.1.2.2.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file inventree_digikey_integration-0.1.2.2.tar.gz.

File metadata

File hashes

Hashes for inventree_digikey_integration-0.1.2.2.tar.gz
Algorithm Hash digest
SHA256 40d55f8fbe5c871d48b07990213982aaa43ef2198fbb6ca5a3e81b8d9afe13ef
MD5 a00172b540ded6213b9901535719bceb
BLAKE2b-256 4ab2e7d21af591bb405949c62f060a6c8ad772372e27d8c76c4640b7ba29071f

See more details on using hashes here.

File details

Details for the file inventree_digikey_integration-0.1.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for inventree_digikey_integration-0.1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 72e855d433fe7cc19b5968d6a99d46770000e6a666a5a2b7dbf03b214008bc6d
MD5 15c691dfd0d3aa458e313a3dddc652d8
BLAKE2b-256 95aed8e089c098f594f4f0f22fce85dc222e76a757601cc405523bd38c269ea5

See more details on using hashes here.

Supported by

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