A CLI to import Digikey parts into an Inventree instance
Project description
Digikey-Inventree-Integration
A CLI to ease importing Digikey parts into an Inventree instance.
Setup
Installation
Install from Pypi
pip install inventree_digikey_integration
Install from source
- Install poetry
- Clone the repo
git clone git@github.com:EUdds/digikey-inventree-integration.git
cd digikey-inventree-integration
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for inventree_digikey_integration-0.1.2.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb9b2f4a997fc3f16eb1ee389dfd70654844e3ce4a04185afc0520ab93e1ef6a |
|
MD5 | 81199e51a19c86cd8866604a93516e0f |
|
BLAKE2b-256 | 4da2b20c9d5c14a97d65c42590b4d6ad2e6b3e6e30eca6c1872f8db528e257aa |
Close
Hashes for inventree_digikey_integration-0.1.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e50ac1b0bc8552242cc8034c11065c4ab16db81e7a941e747750ba7eb328343 |
|
MD5 | 4b5defb8cc5a621954dd527305b5e042 |
|
BLAKE2b-256 | cb219497032d6ad0dd78d7a3d59e7237d1c64c2e60d594b23c97c35d4c1a74f2 |