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.0.tar.gz (2.8 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.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: product_blurb-0.1.0.tar.gz
  • Upload date:
  • Size: 2.8 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.0.tar.gz
Algorithm Hash digest
SHA256 366642c22e083ba0c6058b39cd39933fec25614ea49b87f96d3d21e622f7f56b
MD5 f54c0909d913784471b9b0c55eddc5f8
BLAKE2b-256 1d0d92c004472e7a64f748edf1b197b0a5610e8e68c489d435e023480cd05201

See more details on using hashes here.

File details

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

File metadata

  • Download URL: product_blurb-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.4 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a2425902e7f4e3f97d3e89117241c330fe4eb743b092afbaab630916c9f810df
MD5 b6daeaf25f8b77b791903d9e1e3a6622
BLAKE2b-256 60197a9f05d252ee594f686ded3d6d5eea7e35797346fe58a6f3ee9a81375cb5

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