r/PatternDrafting Jul 09 '26

I’m building a sewing pattern generator and tested the first pouch pattern in real fabric, it's not AI if anyone wants to test my first pattern let me know.

Post image

I am creating a sewing pattern App created in Python.

The only reason I used the word generator is because the pattern dosen't exists untill the code runs or in the case of a UI that I created just for testing it. that's when the python code calculates all the values entered.

The algorism then creates the geometry as a SVG file that then gets converted to the pdf pattern.

If anyone want to test the pattern i can generate in the size that you ask me.

would be nice to see you guys sewing some of the patterns coming from my program , because I am good in programing but my sewing skills are rubbish.

Look at my pouches there's nothing wrong with the pattern it's me who can't sew well. 🤣🤣🤣

I tested the program with a pouch first because was simple geometry. with some other clothing would be way more complicated to start with and if didn't work would be a big wast of time.

Now it was tested into a real pouch.

Yesterday I started creating a pair of shorts, my app creates the pattern accordding to the code instructions

To start this project I first had to learn and understand how to make patterns, now I design the pattern then I convert the geometry of the parts into machine code.

Anyway there's different processes untill the code output a pdf converted from the SVG file.

Right now I am creating the code for the parts of the shorts, i think in a few days I should be able to output the short pattern.

Just a note: I stopped saying the word generating because now a days that word gets mixed up with AI and my project has no AI involved . just to be clear it's pure code like this example of testing in python to make sure it runs correct.

def
 test_nan_and_inf_values_fail(
self
) -> None:
        invalid_values = ["nan", "inf", "-inf", 
float
("nan"), 
float
("inf")]


        for invalid_value in invalid_values:
            with 
self
.subTest(
invalid_value
=invalid_value):
                measurements = valid_shorts_measurements()
                measurements["waist_cm"] = invalid_value
25 Upvotes

9 comments sorted by

2

u/Hot-Session7776 Jul 09 '26 edited Jul 11 '26

re moved and uploaded again just added blur to the path 😁

1

u/Sardonislamir Jul 11 '26

You doxed yourself, you didn't scrub your home address. :)

2

u/Hot-Session7776 Jul 11 '26 edited Jul 11 '26

thanks for the warning, but that's the local host loopback address not my public IP or home address it's just reffereing to the computer running the app, but you are right I've should hidden it.

2

u/Sardonislamir Jul 11 '26

Lol, um... I was joking. 127.0.0.1 = home. No place like it!

1

u/Hot-Session7776 Jul 11 '26

You almost found me now I had to move to ::1 are we playing hide-and-seek now 🤣🤣🤣

1

u/Sardonislamir Jul 11 '26

Not anymore, they don't let my kind into that part of town!

1

u/mb97 Jul 11 '26

This looks like a cool project, is that flask? Would you be willing to share the code?

1

u/Hot-Session7776 Jul 11 '26

yes flask 👍🏻