ecommerce-price-tracker 1.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,45 @@
1
+ Metadata-Version: 2.4
2
+ Name: ecommerce-price-tracker
3
+ Version: 1.0.0
4
+ Summary: Universal E-Commerce Cross-Store Price & Stock Tracker SDK.
5
+ Home-page: https://github.com/meanusarcanus/ecommerce-price-tracker-api
6
+ Author: Meanus Arcanus
7
+ Author-email: meanusarcanus@gmail.com
8
+ Requires-Python: >=3.8
9
+ Description-Content-Type: text/markdown
10
+ Requires-Dist: requests>=2.25.0
11
+ Requires-Dist: beautifulsoup4>=4.12.0
12
+ Dynamic: author
13
+ Dynamic: author-email
14
+ Dynamic: home-page
15
+ Dynamic: requires-python
16
+
17
+ # 🛍️ Universal E-Commerce Cross-Store Price Tracker SDK
18
+
19
+ Official Python client for **Universal E-Commerce Cross-Store Price & Stock Tracker** (Amazon, Shopee, Lazada, eBay, and Shopify).
20
+
21
+ ---
22
+
23
+ ## ⚡ Quickstart
24
+
25
+ ```bash
26
+ pip install ecommerce-price-tracker
27
+ ```
28
+
29
+ ```python
30
+ from ecommerce_price_tracker import extract_product_price, compare_stores
31
+
32
+ # 1. Extract Price & Stock for Any Store
33
+ product = extract_product_price("https://www.amazon.com/dp/B098XYZ123")
34
+ print(f"Store: {product['store']} | Price: {product['currency']} {product['current_price']} (USD ${product['price_usd']})")
35
+
36
+ # 2. Cross-Store Arbitrage Comparison
37
+ comparison = compare_stores([
38
+ "https://www.amazon.com/dp/B098XYZ123",
39
+ "https://shopee.ph/product/12345/67890",
40
+ "https://www.ebay.com/itm/392019482104"
41
+ ])
42
+
43
+ print(f"Cheapest Deal: {comparison['arbitrage_summary']['cheapest_store']} at ${comparison['arbitrage_summary']['lowest_price_usd']}")
44
+ print(f"Max Savings: {comparison['arbitrage_summary']['max_savings_percentage']}%")
45
+ ```
@@ -0,0 +1,29 @@
1
+ # 🛍️ Universal E-Commerce Cross-Store Price Tracker SDK
2
+
3
+ Official Python client for **Universal E-Commerce Cross-Store Price & Stock Tracker** (Amazon, Shopee, Lazada, eBay, and Shopify).
4
+
5
+ ---
6
+
7
+ ## ⚡ Quickstart
8
+
9
+ ```bash
10
+ pip install ecommerce-price-tracker
11
+ ```
12
+
13
+ ```python
14
+ from ecommerce_price_tracker import extract_product_price, compare_stores
15
+
16
+ # 1. Extract Price & Stock for Any Store
17
+ product = extract_product_price("https://www.amazon.com/dp/B098XYZ123")
18
+ print(f"Store: {product['store']} | Price: {product['currency']} {product['current_price']} (USD ${product['price_usd']})")
19
+
20
+ # 2. Cross-Store Arbitrage Comparison
21
+ comparison = compare_stores([
22
+ "https://www.amazon.com/dp/B098XYZ123",
23
+ "https://shopee.ph/product/12345/67890",
24
+ "https://www.ebay.com/itm/392019482104"
25
+ ])
26
+
27
+ print(f"Cheapest Deal: {comparison['arbitrage_summary']['cheapest_store']} at ${comparison['arbitrage_summary']['lowest_price_usd']}")
28
+ print(f"Max Savings: {comparison['arbitrage_summary']['max_savings_percentage']}%")
29
+ ```
@@ -0,0 +1,9 @@
1
+ """
2
+ Universal E-Commerce Cross-Store Price & Stock Tracker SDK
3
+ Official Python client for cross-store price comparison and currency arbitrage across Amazon, Shopee, Lazada, eBay, and Shopify.
4
+ """
5
+
6
+ from .client import ECommercePriceTracker, extract_product_price, compare_stores
7
+
8
+ __version__ = "1.0.0"
9
+ __all__ = ["ECommercePriceTracker", "extract_product_price", "compare_stores"]
@@ -0,0 +1,31 @@
1
+ import requests
2
+ from typing import Dict, Any, List, Optional
3
+
4
+ def extract_product_price(product_url: str, base_url: str = "https://ecommerce-price-tracker-api.vercel.app") -> Dict[str, Any]:
5
+ """Extract price & stock for any single e-commerce URL."""
6
+ endpoint = f"{base_url.rstrip('/')}/api/v1/extract-price"
7
+ try:
8
+ res = requests.post(endpoint, json={"product_url": product_url}, timeout=20)
9
+ return res.json()
10
+ except Exception as e:
11
+ return {"status": "error", "message": str(e)}
12
+
13
+ def compare_stores(product_urls: List[str], base_url: str = "https://ecommerce-price-tracker-api.vercel.app") -> Dict[str, Any]:
14
+ """Cross-store comparison and arbitrage calculation."""
15
+ endpoint = f"{base_url.rstrip('/')}/api/v1/compare-stores"
16
+ try:
17
+ res = requests.post(endpoint, json={"product_urls": product_urls}, timeout=25)
18
+ return res.json()
19
+ except Exception as e:
20
+ return {"status": "error", "message": str(e)}
21
+
22
+ class ECommercePriceTracker:
23
+ def __init__(self, api_key: Optional[str] = None, base_url: str = "https://ecommerce-price-tracker-api.vercel.app"):
24
+ self.api_key = api_key
25
+ self.base_url = base_url.rstrip("/")
26
+
27
+ def get_price(self, product_url: str) -> Dict[str, Any]:
28
+ return extract_product_price(product_url, base_url=self.base_url)
29
+
30
+ def compare(self, product_urls: List[str]) -> Dict[str, Any]:
31
+ return compare_stores(product_urls, base_url=self.base_url)
@@ -0,0 +1,45 @@
1
+ Metadata-Version: 2.4
2
+ Name: ecommerce-price-tracker
3
+ Version: 1.0.0
4
+ Summary: Universal E-Commerce Cross-Store Price & Stock Tracker SDK.
5
+ Home-page: https://github.com/meanusarcanus/ecommerce-price-tracker-api
6
+ Author: Meanus Arcanus
7
+ Author-email: meanusarcanus@gmail.com
8
+ Requires-Python: >=3.8
9
+ Description-Content-Type: text/markdown
10
+ Requires-Dist: requests>=2.25.0
11
+ Requires-Dist: beautifulsoup4>=4.12.0
12
+ Dynamic: author
13
+ Dynamic: author-email
14
+ Dynamic: home-page
15
+ Dynamic: requires-python
16
+
17
+ # 🛍️ Universal E-Commerce Cross-Store Price Tracker SDK
18
+
19
+ Official Python client for **Universal E-Commerce Cross-Store Price & Stock Tracker** (Amazon, Shopee, Lazada, eBay, and Shopify).
20
+
21
+ ---
22
+
23
+ ## ⚡ Quickstart
24
+
25
+ ```bash
26
+ pip install ecommerce-price-tracker
27
+ ```
28
+
29
+ ```python
30
+ from ecommerce_price_tracker import extract_product_price, compare_stores
31
+
32
+ # 1. Extract Price & Stock for Any Store
33
+ product = extract_product_price("https://www.amazon.com/dp/B098XYZ123")
34
+ print(f"Store: {product['store']} | Price: {product['currency']} {product['current_price']} (USD ${product['price_usd']})")
35
+
36
+ # 2. Cross-Store Arbitrage Comparison
37
+ comparison = compare_stores([
38
+ "https://www.amazon.com/dp/B098XYZ123",
39
+ "https://shopee.ph/product/12345/67890",
40
+ "https://www.ebay.com/itm/392019482104"
41
+ ])
42
+
43
+ print(f"Cheapest Deal: {comparison['arbitrage_summary']['cheapest_store']} at ${comparison['arbitrage_summary']['lowest_price_usd']}")
44
+ print(f"Max Savings: {comparison['arbitrage_summary']['max_savings_percentage']}%")
45
+ ```
@@ -0,0 +1,10 @@
1
+ README.md
2
+ pyproject.toml
3
+ setup.py
4
+ ecommerce_price_tracker/__init__.py
5
+ ecommerce_price_tracker/client.py
6
+ ecommerce_price_tracker.egg-info/PKG-INFO
7
+ ecommerce_price_tracker.egg-info/SOURCES.txt
8
+ ecommerce_price_tracker.egg-info/dependency_links.txt
9
+ ecommerce_price_tracker.egg-info/requires.txt
10
+ ecommerce_price_tracker.egg-info/top_level.txt
@@ -0,0 +1,2 @@
1
+ requests>=2.25.0
2
+ beautifulsoup4>=4.12.0
@@ -0,0 +1 @@
1
+ ecommerce_price_tracker
@@ -0,0 +1,14 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "ecommerce-price-tracker"
7
+ version = "1.0.0"
8
+ description = "Universal E-Commerce Cross-Store Price & Stock Tracker SDK."
9
+ readme = "README.md"
10
+ requires-python = ">=3.8"
11
+ dependencies = [
12
+ "requests>=2.25.0",
13
+ "beautifulsoup4>=4.12.0"
14
+ ]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,23 @@
1
+ from setuptools import setup, find_packages
2
+
3
+ setup(
4
+ name="ecommerce-price-tracker",
5
+ version="1.0.0",
6
+ description="Universal E-Commerce Cross-Store Price & Stock Tracker SDK (Amazon, Shopee, Lazada, eBay, Shopify).",
7
+ long_description=open("README.md").read() if open("README.md") else "",
8
+ long_description_content_type="text/markdown",
9
+ author="Meanus Arcanus",
10
+ author_email="meanusarcanus@gmail.com",
11
+ url="https://github.com/meanusarcanus/ecommerce-price-tracker-api",
12
+ packages=find_packages(),
13
+ install_requires=[
14
+ "requests>=2.25.0",
15
+ "beautifulsoup4>=4.12.0",
16
+ ],
17
+ classifiers=[
18
+ "Programming Language :: Python :: 3",
19
+ "License :: OSI Approved :: MIT License",
20
+ "Operating System :: OS Independent",
21
+ ],
22
+ python_requires=">=3.8",
23
+ )