faker-ecommerce-provider
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 -e ".[dev]"
pytest
The same dev extra installs the lint and type-check tools CI runs:
ruff check .
ruff format --check .
mypy --ignore-missing-imports --no-strict-optional .
Contributing
See CONTRIBUTING.md for supported versions, local setup, the seeded-determinism rules, and what a catalog change needs before it can be merged.
License
MIT
Metadata
Release files for faker-ecommerce-provider 1.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| faker_ecommerce_provider-1.3.0.tar.gz | 8.5 kB | With provenance | Details for faker_ecommerce_provider-1.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| faker_ecommerce_provider-1.3.0-py3-none-any.whl | Python 3 | none | any | Details for faker_ecommerce_provider-1.3.0-py3-none-any.whl |
Total release size: 17.6 kB
Release files / faker_ecommerce_provider-1.3.0.tar.gz
| Download URL | faker_ecommerce_provider-1.3.0.tar.gz |
|---|---|
| Size | 8.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a8086eacd774f433068c4691fd9e45e5b59d07e8ce49559246915faa89212aab
|
|
BLAKE2b-256 checksum How to use checksums |
fa9d9123a7ea218527e706ee1e08c237941226f350072d85b634045dc5761d61
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Oct 26, 2026.
Transparency logRelease files / faker_ecommerce_provider-1.3.0-py3-none-any.whl
| Download URL | faker_ecommerce_provider-1.3.0-py3-none-any.whl |
|---|---|
| Size | 9.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2de5478abf6df763865c7113c9560518d0658427c4d6be650398805f56aa5f59
|
|
BLAKE2b-256 checksum How to use checksums |
1977c962a55749781f7f1418deda4018abdd07e03473959f9b4d7d5a668dd888
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Oct 26, 2026.
Transparency logSecurity for faker-ecommerce-provider 1.3.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for faker_ecommerce_provider-1.3.0.tar.gz
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 Oct 26, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.