Skip to main content

faker-ecommerce-provider

PyPI version License

Faker provider for generating realistic e-commerce fake data.

Installation

pip install faker-ecommerce-provider

Usage

from faker import Faker
from faker_ecommerce import EcommerceProvider

fake = Faker()
fake.add_provider(EcommerceProvider)

# Basic usage
fake.product_name()       # 'Premium Leather Electronics Item'
fake.product_name(include_brand=True) # 'Sony Modern Wireless Headphones'
fake.brand_name()         # 'Samsung'
fake.product_description() # 'A modern headphones made with high-quality stainless steel.'
fake.sku()                # 'ABC-1234-XY'
fake.order_id()           # 'ORD-123456789'
fake.tracking_number()    # '1ZABCD1234567890'
fake.tracking_number(carrier="USPS") # '9400100000000000000000'
fake.price()              # '$49.99'
fake.shipping_carrier()   # 'FedEx'
fake.payment_method()     # 'Apple Pay'

# Generate a complete order
order = fake.full_order()
print(order)
# {
#   'order_id': 'ORD-891234567',
#   'product': 'Apple Classic Aluminum Laptop',
#   'sku': 'DLL-4821-KP',
#   'price': '$899.99',
#   'payment_method': 'Credit Card',
#   'customer_type': 'Prime',
#   'status': 'Shipped',
#   'carrier': 'UPS',
#   'tracking_number': '1Z87654...',
#   'review_rating': 5
# }

💡 Tip: Run python showcase.py to see all available features and examples!

Available Methods

Method Example
product_name() Premium Leather Electronics Item
product_name(include_brand=True) Samsung Modern Smartphone
brand_name() Apple, Sony, Nike
product_description() A modern laptop made with high-quality aluminum.
product_category() Electronics, Clothing, Home & Garden
sku() ABC-1234-XY
order_id() ORD-123456789
tracking_number() 1ZABCD1234567890
price() $49.99
discount_percentage() 25%
shipping_carrier() FedEx, UPS, DHL
payment_method() Credit Card, PayPal, Apple Pay
order_status() Pending, Shipped, Delivered
customer_type() Guest, VIP, Prime
return_reason() Wrong Size, Defective
coupon_code() SAVE20
review_rating() 1-5
full_order() Dictionary with complete order details

Running Tests

To run the tests, install the dependencies and run pytest:

pip install .[dev]
pytest tests/

License

MIT

Metadata

Release files for faker-ecommerce-provider 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for faker-ecommerce-provider 1.2.0
File Size Uploaded
faker_ecommerce_provider-1.2.0.tar.gz 8.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for faker-ecommerce-provider 1.2.0
File Interpreter ABI Platform
faker_ecommerce_provider-1.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 17.0 kB

Release files / faker_ecommerce_provider-1.2.0.tar.gz

Download URL faker_ecommerce_provider-1.2.0.tar.gz
Size 8.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b61ca793440144909f3388eea57bc91b78c4efbf9f0eccdc58fbc59d571b3664
BLAKE2b-256 checksum
How to use checksums
d6e48e644ad4c85539d01036e0354ad6d0ecb4eb746101688c2c94ca5a5f0279
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 3, 2026.

Transparency log

Release files / faker_ecommerce_provider-1.2.0-py3-none-any.whl

Download URL faker_ecommerce_provider-1.2.0-py3-none-any.whl
Size 8.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5d77ca722237c1bcc8891a4183f4a99fde97b7861f2f5ac6f5e447b2965ed9c3
BLAKE2b-256 checksum
How to use checksums
eb6015404c392711694866249ab19c326b845ff9b278c6e50e04bc694a757960
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 3, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 release files

1.1.0

2 release files

1.0.2

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page