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-integrationpoetry 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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file inventree_digikey_integration-0.1.2.1.tar.gz.
File metadata
- Download URL: inventree_digikey_integration-0.1.2.1.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.0 Linux/6.2.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb9b2f4a997fc3f16eb1ee389dfd70654844e3ce4a04185afc0520ab93e1ef6a
|
|
| MD5 |
81199e51a19c86cd8866604a93516e0f
|
|
| BLAKE2b-256 |
4da2b20c9d5c14a97d65c42590b4d6ad2e6b3e6e30eca6c1872f8db528e257aa
|
File details
Details for the file inventree_digikey_integration-0.1.2.1-py3-none-any.whl.
File metadata
- Download URL: inventree_digikey_integration-0.1.2.1-py3-none-any.whl
- Upload date:
- Size: 8.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.0 Linux/6.2.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e50ac1b0bc8552242cc8034c11065c4ab16db81e7a941e747750ba7eb328343
|
|
| MD5 |
4b5defb8cc5a621954dd527305b5e042
|
|
| BLAKE2b-256 |
cb219497032d6ad0dd78d7a3d59e7237d1c64c2e60d594b23c97c35d4c1a74f2
|