This started as a proof of concept / modelling exercise and turned into something quite usable along the way.
Print one lid and one container (or a dozen, go wild!) and screw them onto each other!
All need to be done in vase mode / spiralized outer contour with a closed bottom and a single wall line only. Therefore, you need to place the lid with the thread pointing upwards and the container with the (slightly) larger thread pointing upwards.
I did some tinkering to get the measurements right for my printer (0.4 mm nozzle), and while I do hope that this works for you, nonetheless results may vary - please comment if you're facing difficulties, I should be able to add models with tighter or looser tolerances between male and female threads.
I just printed these today, so I'm not sure how durable they are - don't expect miracles, I guess. My focus here was definitely to reduce print time as best as I could - my machine took 37 min for the container and about 25 min for the lid.
Anyway, enjoy and tell me how they work for you - tips, improvements and constructive criticism greatly appreciated!
The author hasn't provided the model origin yet.