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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40d55f8fbe5c871d48b07990213982aaa43ef2198fbb6ca5a3e81b8d9afe13ef |
|
MD5 | a00172b540ded6213b9901535719bceb |
|
BLAKE2b-256 | 4ab2e7d21af591bb405949c62f060a6c8ad772372e27d8c76c4640b7ba29071f |
Close
Hashes for inventree_digikey_integration-0.1.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72e855d433fe7cc19b5968d6a99d46770000e6a666a5a2b7dbf03b214008bc6d |
|
MD5 | 15c691dfd0d3aa458e313a3dddc652d8 |
|
BLAKE2b-256 | 95aed8e089c098f594f4f0f22fce85dc222e76a757601cc405523bd38c269ea5 |