Last March I lost an entire weekend to a spreadsheet. I had 40 JPGs ready to submit to Adobe Stock, a Vecteezy batch queued, and a Dreamstime account I had been ignoring for months. I built one CSV by hand, copy-pasted the header from a forum post, and uploaded. Adobe rejected the whole batch in about four minutes. Wrong column count. I had five columns where they wanted their exact five-column layout, and one of them was in the wrong order. Vecteezy rejected the same file for the same reason on their four-column version. That was the moment I stopped hand-building metadata and wrote a script instead. That script is now one of four tools that packaged 39 products, 856 MB of output, and I want to walk through what it actually does and why the boring parts matter more than the art.
The header is the contract
All three platforms reject a malformed CSV instantly. Not "review failed", instantly. Adobe expects its 5-column header, Vecteezy its 4-column header, Dreamstime its 15-column header. Get one column wrong and nothing in the batch gets reviewed, you just get an error and your afternoon back, minus the afternoon.
So make_metadata.py writes the exact header each platform demands and nothing else. You point it at a folder:
python make_metadata.py ./my-assets --platform adobe --out metadata.csv --ext .jpg python make_metadata.py ./my-assets --platform vecteezy --out vecteezy.csv --ext .jpg python make_metadata.py ./my-assets --platform dreamstime --out dreamstime.csv --ext .jpg It walks the folder, title-cases the filename as a fallback title, and emits the CSV with the correct column count for the platform you named. There is an optional --titles titles.json flag when you have real titles and keywords written. Without it, the filename-as-title is fine for a first pass, but replace it before you submit. Stock reviewers can tell, and keyword quality directly affects how your work gets found.
Both this script and the tracker use only the Python standard library. No install step at all. If metadata and tracking are all you need, you skip pip entirely.
The second upload is the dangerous one
Here is a mistake I have not made but have watched people make: re-running a batch because you forgot whether Tuesday's upload finished. Adobe flags accounts for duplicate submissions. Vecteezy does the same. Once you have a few hundred assets in flight across three platforms, you cannot hold the state in your head.
upload_tracker.py is a flat ledger that remembers what you have already posted:
python upload_tracker.py pending items.txt python upload_tracker.py done "asset-001.jpg" python upload_tracker.py status pending shows what is not done yet, done marks one file, status gives you the picture. It is deliberately dumb. A JSON file and a few commands. The point is that a re-run can never double-post, and double-posting is the fastest way I know to get an account flagged.
Turning content into a product
Metadata gets your files accepted. It does not get them bought. The gap between "I have content" and "I have a product" is two things: a document that looks like a document, and a package that looks like a package.
md2pdf.py takes a Markdown file and renders a clean styled PDF, headings, tables, lists, links, in one command:
python md2pdf.py content.md product.pdf "My Product Title" It uses reportlab, one of only two third-party packages in the whole kit. The other is Pillow. That is it. No framework, no cloud account, no subscription.
pack_product.py bundles the rest:
python pack_product.py my-product "My Product" "A short subtitle" 9 That writes my-product.zip, a 1280×720 cover, and a 600×600 thumbnail. A zip with a real cover sells. A bare file does not. I learned that the hard way when my first listing sat at zero views with no preview image. The cover output goes into a _system folder by default, and you can redirect it with --dir or the PACK_ROOT environment variable without editing the script.
All of this ran on a 2 GB server
Every product in the catalogue of 39 was packaged on a box with 1 vCPU, 2 GB RAM, and no GPU. That constraint shaped the whole pipeline, and the habits are worth stealing even if you have better hardware:
- One process at a time. Never fan out image jobs in parallel on a single core.
- Call
gc.collect()after each asset to free memory between items. - Measure peak RSS, not average.
resource.getrusage(RUSAGE_SELF).ru_maxrsstells you your real ceiling, and average numbers lie. - Run heavy render steps as one file per subprocess so memory actually returns to the OS.
- Render at the resolution you need. Inspecting a preview at 60 dpi instead of 300 is the difference between fitting in RAM and swapping.
None of this is clever. It is just what works when the box is small.
The folder layout that kept it sane
One structure, used for all 39 products:
project/ assets/ raw output, one file per asset output/ ready-to-submit files + metadata.csv packs/ finished product zips + covers research/ notes and sources scripts/ the tools The one thing I would tell you to never skip: keep research/ forever. Your notes and scrape logs are the raw material for future products. Deleting them to "clean up" is a mistake I made once and will not repeat.
Where this came from
These four scripts are the packaging layer of a bigger system: about 19,000 lines of pipeline code, 300+ pages of research behind the rules the scripts enforce, and so far 1,860 assets made with 1,077 ready or submitted. The first paid sale through the system was $2.80, and it was for the system itself, the digital asset factory. I am telling you that number because it is real and small, and because the point of the pipeline is that it runs while you build the next thing.
If you want the same four scripts, the folder layout, the RAM notes, and the platform header rules in one place, that is the kit. It is not a course and it is not magic, it is the working tools from this exact project.
Building digital products? Free guides & kits for digital product sellers.

