A CLI to import Digikey parts into an Inventree instance
Project description
Digikey-Inventree-Integration
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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8418b5b196f6a409da17e77d5db6e9e25a3e28d1d5b6de354ce1d73725010e3 |
|
MD5 | 057b44fc2f4877e550456b8152ea7454 |
|
BLAKE2b-256 | 4e43237e84559742ba21a89c005fe18647d79507139873a52de65f64eca53069 |
Close
Hashes for inventree_digikey_integration-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a1419aee5016fce0e89ac6a6217f0d2b86f91ca9f8b8a487f07bf1297141766 |
|
MD5 | c5557ced83a1d12d50de7f12fee0cf72 |
|
BLAKE2b-256 | d4716b4e1bbeee78bcb5ea72ca258839e909be2e31da32f82f28634cff9ee9f8 |