
Security News
npm ‘is’ Package Hijacked in Expanding Supply Chain Attack
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
Transform product photos into optimized marketplace listings with AI
ListingCraft is a powerful Python library that uses advanced AI models to automatically generate compelling product listings from images. Perfect for eBay sellers, Poshmark resellers, e-commerce businesses, and marketplace automation tools.
Feature | Benefit | Use Case |
---|---|---|
🖼️ AI Vision Analysis | Extract product details from any image | Upload photo, get instant product info |
📝 Smart Content Generation | SEO-optimized titles and descriptions | Increase search visibility by 40% |
🏪 Multi-Marketplace Support | Platform-specific optimizations | One tool for eBay, Poshmark, Mercari, etc. |
💰 Price Research | Find similar products for competitive pricing | Price items competitively from day one |
⚡ Batch Processing | Generate hundreds of listings at once | Perfect for inventory liquidation |
🔧 Multiple Integrations | Python library, REST API, CLI tool | Fits any workflow or existing system |
pip install listingcraft
from listingcraft import ListingGenerator
# Set your OpenAI API key
import os
os.environ["OPENAI_API_KEY"] = "sk-your-openai-key"
# Generate a listing
generator = ListingGenerator()
listing = generator.generate(
image_url="https://example.com/product.jpg",
marketplace="ebay",
style="descriptive"
)
print(f"Title: {listing.title}")
print(f"Description: {listing.description}")
print(f"Suggested Price: ${listing.price_suggestion}")
# Input: Photo of vintage Levi's jacket
listing = generator.generate(
image_url="https://example.com/vintage-jacket.jpg",
marketplace="ebay",
brand="Levi's",
condition="Excellent"
)
# Output:
{
"title": "Vintage Levi's Denim Jacket Size L - Classic 80s Style - Excellent Condition",
"description": "Authentic vintage Levi's denim jacket in excellent condition. Features classic 1980s styling with original Levi's red tab. Perfect for collectors or fashion enthusiasts. No stains, tears, or significant wear. Measurements: Chest 44\", Length 26\".",
"price_suggestion": 65.99,
"tags": ["vintage", "levi's", "denim", "jacket", "80s", "classic"],
"confidence_score": 0.94
}
# Bulk process inventory photos
image_urls = ["photo1.jpg", "photo2.jpg", "photo3.jpg"]
listings = generator.generate_batch(image_urls, marketplace="ebay")
# Auto-post to multiple marketplaces
for marketplace in ["ebay", "poshmark", "mercari"]:
listing = generator.generate(image_url, marketplace=marketplace)
# Integration with marketplace APIs
from listingcraft.integrations.fastapi_integration import create_listingcraft_app
# Create your own listing service
app = create_listingcraft_app()
# Add custom endpoints
@app.post("/custom/bulk-upload")
async def bulk_upload(files: List[UploadFile]):
# Your custom business logic
pass
# CLI for power users
listingcraft generate https://example.com/product.jpg \
--marketplace poshmark \
--style premium \
--output listing.json
# Start API server for web apps
listingcraft server --port 8000
from listingcraft import ListingGenerator, ListingCraftConfig
config = ListingCraftConfig(
openai_api_key="sk-...",
temperature=0.7,
enable_price_research=True
)
generator = ListingGenerator(config)
from listingcraft.integrations.fastapi_integration import run_server
# Production-ready API server
run_server(host="0.0.0.0", port=8000)
# Use from any language
curl -X POST "http://localhost:8000/generate" \
-H "Content-Type: application/json" \
-d '{"image_url": "https://example.com/product.jpg"}'
# Perfect for scripts and automation
listingcraft generate https://example.com/product.jpg --marketplace ebay
listingcraft server --port 8000
Solution | Monthly Cost | Listings/Month | Cost per Listing |
---|---|---|---|
Manual Writing | $2,000 (time) | 100 | $20.00 |
Existing Tools | $99-299 | 500 | $0.20-0.60 |
ListingCraft | $20-50 (API costs) | Unlimited | $0.02-0.05 |
# Core dependencies (automatically installed)
openai>=1.0.0 # AI model access
pydantic>=2.0.0 # Data validation
requests>=2.28.0 # HTTP requests
# Optional dependencies
fastapi>=0.100.0 # For API server
uvicorn>=0.20.0 # ASGI server
# Test with 10 products
generator = ListingGenerator()
for image in sample_images:
listing = generator.generate(image)
print(f"Generated: {listing.title}")
# Integrate with your existing system
def process_inventory(product_images):
listings = []
for image in product_images:
listing = generator.generate(image, marketplace="ebay")
listings.append(listing)
# Save to database, post to marketplace, etc.
return listings
# Production deployment
from listingcraft.integrations.fastapi_integration import create_listingcraft_app
app = create_listingcraft_app()
# Deploy to AWS, Google Cloud, etc.
ListingCraft is released under the MIT License, allowing:
pip install listingcraft
Transform your marketplace business with AI-powered listing generation. Start free, scale unlimited.
Made with ❤️ for marketplace entrepreneurs and developers
FAQs
AI-powered product listing generation for marketplaces
We found that listingcraft demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
Security News
A critical flaw in the popular npm form-data package could allow HTTP parameter pollution, affecting millions of projects until patched versions are adopted.
Security News
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.