Skip to content

EthanYangTW/printfarmhero

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

printfarmhero

Ask DeepWiki

printfarmhero is a web-based utility designed to help manage 3D printing projects by generating a printable checklist from a collection of STL files. Simply upload a .zip archive containing your 3D models, and the application will produce an HTML checklist complete with 3D previews for each .stl file.

This tool is perfect for "print farms" or individuals managing complex projects with numerous parts, ensuring every component is accounted for before starting a print job.

Features

  • ZIP File Upload: Easily upload all your project's STL files in a single .zip archive.
  • Automatic STL Detection: The application recursively scans the uploaded archive to find all .stl files.
  • 3D Preview Generation: A 2D preview image of each 3D model is automatically generated to provide a visual reference.
  • Printable Checklist: Generates a clean, simple HTML page with filenames, file paths, visual previews, and checkboxes, ready to be printed.
  • File Count: Displays the total number of STL files found in the archive.

How to Run Locally

You can run printfarmhero directly on your machine using Python.

Prerequisites

  • Python 3.12 or newer

Installation & Execution

  1. Clone the repository:

    git clone https://github.com/fbedev/printfarmhero.git
    cd printfarmhero
  2. Install dependencies:

    pip install -r requirements.txt
  3. Run the application:

    python app.py
  4. Open your web browser and navigate to http://127.0.0.1:8000.

How to Use

  1. Once the application is running, open the web interface in your browser.
  2. Click the "Choose File" button and select a .zip file containing your STL models.
  3. Click the "Generate Checklist" (生成清單) button.
  4. A progress bar will show the status of the file upload and processing.
  5. Once complete, the checklist will be displayed on the page.
  6. Use the "Print Checklist" (列印清單) button to open your browser's print dialog.

Running with Docker

For a containerized setup, you can use the provided Dockerfile.

  1. Build the Docker image:

    docker build -t printfarmhero .
  2. Run the Docker container:

    docker run -p 8000:8000 printfarmhero
  3. The application will be accessible at http://localhost:8000.

Technologies Used

  • Backend: Python, Flask
  • 3D Model Processing: numpy-stl
  • Image Generation: matplotlib
  • Frontend: HTML, CSS, JavaScript
  • Containerization: Docker

About

print farm saver

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages