No description
  • Python 87.3%
  • HTML 6%
  • CSS 3.4%
  • JavaScript 3.3%
Find a file
GozerAI 620e0b3110
Some checks failed
CI / test (3.11) (push) Has been cancelled
CI / test (3.12) (push) Has been cancelled
CI / test (3.13) (push) Has been cancelled
chore(release): community edition — gate Pro/Enterprise engines, scrub internal data
Ship the Shopforge community edition with paid engines gated at the source
and internal fleet/business data removed.

Commercial (Pro/Enterprise) gating:
- pricing.py: PricingEngine / MarginAnalyzer / PricingRecommendation /
  MarginAnalysis replaced with license stubs — the class names stay importable
  but constructing them raises ImportError pointing to gozerai.com/pricing.
  No pricing/margin logic ships.
- audit.py: AuditEntry / AuditLog replaced with the same license stubs.
- service.py: import-guard the Pro engines so the community app still boots;
  the gated methods already raise PermissionError.
- Remove tests that exercised the withheld engines; add license-stub tests.

Security:
- Remove the internal niche-storefront roster and the Cirrus1/Zendrop
  architecture from medusa.py (now neutral example.com placeholders).
- Drop the internal "cirrus1" master-storefront key.
- Remove the dead Nexus fleet-bridge module and the internal build script.
- Remove the private gozerai-telemetry git dependency.

Free-tier package imports and the full test suite (268 tests) pass.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-03 13:01:43 -04:00
.github/workflows chore(release): community edition — gate Pro/Enterprise engines, scrub internal data 2026-07-03 13:01:43 -04:00
docs/pricing chore(release): community edition — gate Pro/Enterprise engines, scrub internal data 2026-07-03 13:01:43 -04:00
frontend chore(release): community edition — gate Pro/Enterprise engines, scrub internal data 2026-07-03 13:01:43 -04:00
src/shopforge chore(release): community edition — gate Pro/Enterprise engines, scrub internal data 2026-07-03 13:01:43 -04:00
tests chore(release): community edition — gate Pro/Enterprise engines, scrub internal data 2026-07-03 13:01:43 -04:00
.env.example chore(release): community edition — gate Pro/Enterprise engines, scrub internal data 2026-07-03 13:01:43 -04:00
.gitignore chore(release): community edition — gate Pro/Enterprise engines, scrub internal data 2026-07-03 13:01:43 -04:00
Dockerfile.api chore(release): community edition — gate Pro/Enterprise engines, scrub internal data 2026-07-03 13:01:43 -04:00
LICENSE chore(release): community edition — gate Pro/Enterprise engines, scrub internal data 2026-07-03 13:01:43 -04:00
LICENSING.md chore(release): community edition — gate Pro/Enterprise engines, scrub internal data 2026-07-03 13:01:43 -04:00
pyproject.toml chore(release): community edition — gate Pro/Enterprise engines, scrub internal data 2026-07-03 13:01:43 -04:00
README.md chore(release): community edition — gate Pro/Enterprise engines, scrub internal data 2026-07-03 13:01:43 -04:00

Shopforge

GozerAI License Python Pro & Enterprise

Multi-storefront commerce toolkit with Shopify and Medusa integration, dynamic pricing, and margin analysis.

Overview

Shopforge provides a unified interface for managing multiple e-commerce storefronts across platforms. It connects a central Shopify fulfillment hub with niche Medusa-powered storefronts, offering dynamic pricing optimization and portfolio-level margin analysis -- all with zero external dependencies.

Features

  • Multi-storefront management -- Register, connect, and manage storefronts across Shopify and Medusa from a single service layer
  • Shopify Admin API client -- Full product, collection, order, and inventory management
  • Medusa backend integration -- Niche storefronts connected to a central Shopify fulfillment hub with automatic product filtering
  • Niche storefront architecture -- Eight pre-configured segments (tech, wellness, fashion, pets, outdoor, eco, creative, productivity)
  • Dynamic pricing engine -- Eight strategies: cost-plus, competitive, value-based, dynamic, loss-leader, premium, bundle, penetration
  • Margin analysis -- Analyze margins at the product, storefront, or portfolio level with health categorization
  • Pricing recommendations -- Actionable suggestions sorted by revenue impact with configurable thresholds
  • Inventory alerts -- Low-stock and out-of-stock detection across all connected storefronts
  • Executive reports -- Role-specific reports for CRO, CFO, CMO, and COO

Installation

pip install shopforge

For development:

pip install -e ".[dev]"

Quick Start

import asyncio
from shopforge import CommerceService

service = CommerceService()

# Connect a Shopify storefront
service.connect_shopify(
    key="main_store",
    store_url="mystore.myshopify.com",
    access_token="shpat_xxxxx",
    name="Main Store",
)

# Get pricing recommendations
recommendations = asyncio.run(service.optimize_pricing(
    storefront_key="main_store",
    target_margin=40.0,
    strategy="cost_plus",
))

# Analyze margins
margin_report = asyncio.run(service.get_margin_analysis())

Architecture

src/shopforge/
    core.py      Data models (Product, Variant, Order, Storefront, Registry)
    shopify.py   Shopify Admin API client and storefront manager
    medusa.py    Medusa client, niche storefront definitions and filtering
    pricing.py   Pricing engine, margin analyzer, recommendation generator
    service.py   CommerceService -- unified interface for all operations

Running Tests

pytest tests/ -v

Requirements

  • Python >= 3.10
  • No external dependencies (stdlib only)

License

MIT License. See LICENSE for details.

Author

Chris Arseno