First sale took 40 days. Not because art bad. Because metadata CSV wrong. Adobe reject instantly. Header row off by one column. 1,077 assets sat ready, zero submitted. Fixed header, submitted, $2.80 sale next week. Digital Asset Factory, first paid product.
That failure built this pipeline. Four scripts. No framework. No cloud. Same tools packaged 39 products on 1 vCPU, 2 GB RAM box. Here what works.
Make metadata once, stop guessing
Adobe wants 5 columns. Vecteezy wants 4. Dreamstime wants 15. Wrong header, instant reject. No email, no hint. Just gone.
make_metadata.py writes exact header each platform demands. Nothing else. Point at folder, pick platform, get CSV.
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
Pass --titles titles.json for real titles and keywords. Without it, filename gets title-cased, becomes title. Fine for first pass. Replace before submit.
Script uses stdlib alone. csv module, pathlib, json. Zero install. Zero dependency drift.
Never double-post
Batch run twice. Account flagged. Fastest way to lose channel access. upload_tracker.py is ledger. Remembers what posted. Re-run does nothing already done.
python upload_tracker.py pending items.txt
python upload_tracker.py done "asset-001.jpg"
python upload_tracker.py status
One JSON file. Read, write, compare. Stdlib only. No database. No cloud sync. Ledger lives next to assets. Copy folder, ledger follows.
Doc becomes product in one command
Content exists. Markdown file. Needs to look like product. md2pdf.py turns Markdown into styled PDF. Headings, tables, lists, links. One command.
python md2pdf.py content.md product.pdf "My Product Title"
Uses reportlab. Only third-party package this script needs. 39 products shipped with PDFs made this way. No manual layout. No design tool open.
Packaging sells
Bare zip does not sell. Cover sells. Thumbnail sells. pack_product.py makes both.
python pack_product.py my-product "My Product" "A short subtitle" 9
Writes three files: my-product.zip, my-product-cover.jpg (1280x720), my-product-thumb.jpg (600x600). Output goes to _system folder. Point elsewhere with --dir or PACK_ROOT env var. No script edit.
Pillow renders covers. One package. That is it.
Folder structure stops junk drawer
Catalogue without fixed structure becomes junk drawer. This layout works:
project/
assets/ raw output, one file per asset
output/ ready-to-submit files + metadata.csv
packs/ finished zips + covers
research/ notes and sources
scripts/ these tools
Keep research/ forever. Scrape logs, notes, sources. Raw material for future products. Deleted mine once to "clean up". Mistake. Never again.
Tiny server habits
Pipeline ran on 1 vCPU, 2 GB RAM. No GPU. Works because:
- One process at a time. Never parallel image jobs on 1-core box.
-
gc.collect()after each asset. Free memory between items. - Measure peak RSS not average.
resource.getrusage(RUSAGE_SELF).ru_maxrssshows real ceiling. - One file per subprocess for heavy renders. Memory returns to OS.
- Render at needed resolution. Preview at 60 dpi beats 300 dpi.
These habits let 39 products package on hardware most people throw away.
Where this came from
- Exact scripts packaged 39 products, 856 MB output
- ~19,000 lines pipeline code in parent project
- 300+ pages research behind rules scripts enforce
- Validated on 1 vCPU / 2 GB RAM / no GPU
Four scripts here are packaging layer. Full pipeline sits under free stack: Hermes Agent orchestrates jobs, 9Router proxies LLM access locally. Cost $0 for orchestration and LLM routing.
The kit is the working layer. Not tutorial. Not "here's how you'd do it". Same files that shipped real products. First sale $2.80. Not life changing. But pipeline works. Metadata correct. Ledger prevents flags. Packaging sells.
Building digital products? Free guides & kits for digital product sellers.
Top comments (0)