A CLI to import Digikey parts into an Inventree instance
Reason this release was yanked:
Inadvertent versioning
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-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fefa789a5a4795c0eae5ed23271bbedd7380c976928cd20e533ce15c4f46d00c |
|
MD5 | 79f70d09d616724c9e0255f5f5be9dbf |
|
BLAKE2b-256 | e56b6d8942e560021629187e21cbd59a08578d37e4519d083a6c828126237d2f |
Close
Hashes for inventree_digikey_integration-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91e3e1e12e902cbfd4ca4563dc8cf837ff048b3ba6390b7373718a546fa96913 |
|
MD5 | beef7889cd71c4a7873e478a5c9e919a |
|
BLAKE2b-256 | a9ce9e2b8c33d897add091767853d1a65491c79e24d150c1407095f3ad40e298 |