Skip to content
Discussion options

You must be logged in to vote

Found an old closed issue that have the same problem I have, #9382
Create a python script from AI that will search database for IPN number and find PK, then add it to Kicad bom file.

import csv
import os
import tkinter as tk
from tkinter import filedialog, messagebox
from inventree.api import InvenTreeAPI
from inventree.part import Part

# Optional drag-and-drop support
try:
    from tkinterdnd2 import DND_FILES, TkinterDnD
    DND_AVAILABLE = True
except ImportError:
    DND_AVAILABLE = False

api = InvenTreeAPI(
    "http://your-inventree-server.com/api/",
    username="your_username",
    password="your_password"

api = InvenTreeAPI(SERVER_ADDRESS, username=MY_USERNAME, password=MY_PAS…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by martin323232
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants