Python script to manage your filaments in a SpoolmanDB format, facilitating the creation and maintenance of a comprehensive and centralized filament database. This database is used in Spoolman by Donkie.
You can use the pre-built Docker image from GitHub Container Registry.
- Pull the Docker image:
docker pull ghcr.io/fwartner/spoolman-importer:main- Create an
.envfile based on.env.exampleand add your Spoolman URL:
SPOOLMAN_URL=http://your-spoolman-url:port
- Run the Docker container with the desired action (create or delete):
To create vendors and filaments:
docker run --env-file .env ghcr.io/fwartner/spoolman-importer:main createTo delete all vendors and filaments:
docker run --env-file .env ghcr.io/fwartner/spoolman-importer:main delete- Clone the repository and install dependencies:
git clone https://github.com/fwartner/spoolman-importer.git
cd spoolman-importer
pip install -r requirements.txt- Create an
.envfile based on.env.exampleand add your Spoolman URL:
SPOOLMAN_URL=http://your-spoolman-url:port
To create vendors and filaments from the provided JSON data, run:
python main.py createTo delete all vendors and filaments from your Spoolman instance, run:
python main.py deleteThe script will provide a summary of actions taken during the execution, such as the number of vendors and filaments created or merged.