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.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86d829f6324ba1041c14d915c8439ddab175c3160c697159af39e1164bc88b90 |
|
MD5 | 32c43ea45de9e9692d495d880e62eb16 |
|
BLAKE2b-256 | f8491bcefb02db4ff36b05330c8c3bc488d4faaa22a3274f8d483eb7e7b6d4a9 |
Close
Hashes for inventree_digikey_integration-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee5cd06dcf038a1d2391d7ca25479d57d8d47ec173f9b4f876e951f74bf9b4c3 |
|
MD5 | bc96713c3c811c47f721780e5ef2f0ee |
|
BLAKE2b-256 | 560c339d546ef1f8c12365169bfce20a36cb03138f932094f7fc4609c1e98f2e |