Skip to main content

Rewrite product titles and descriptions into clean ecommerce listings using OpenAI.

Project description

product-blurb

Rewrite product titles and descriptions into clean, appealing ecommerce listings using OpenAI. It never invents specs, dimensions, materials, or features — it only rewrites what's already there, and strips brand/store names.

Install

pip install product-blurb

Setup

Set your OpenAI API key in the environment:

export OPENAI_API_KEY="sk-..."

Use as a library

from product_blurb import generate

result = generate("Vintage Gothic Pocket Watch", "old style watch bronze chain steampunk")
# {"title": "...", "description": "..."}

Use from the command line

product-blurb --title "Vintage Gothic Pocket Watch" --description "old style watch bronze chain steampunk"

Outputs JSON: {"title": "...", "description": "..."}

Optional --model flag (default gpt-5-mini).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

product_blurb-0.1.2.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

product_blurb-0.1.2-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file product_blurb-0.1.2.tar.gz.

File metadata

  • Download URL: product_blurb-0.1.2.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for product_blurb-0.1.2.tar.gz
Algorithm Hash digest
SHA256 fb7d643c5f8c77fffee2cb1159040e4cde059d8bc216da563c6594de8eb15148
MD5 220494ea9ce216d3de63c02a2a445154
BLAKE2b-256 31d782b21e3437c6b2d2e4c6fa0baee38656c7b346a6e1e77d9c38372456bf3e

See more details on using hashes here.

File details

Details for the file product_blurb-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: product_blurb-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for product_blurb-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 15604f87cd241564b298af98b666290f75002785966adb48d14cfbc136c11536
MD5 8b9e7b8758b83bd25ca1cc24a941d29a
BLAKE2b-256 67f448d7e08bf8d9665f1b8ba3b3fde3c1e964463c9126757b7f90a554a3a7d6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page