mercapy 0.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.
mercapy-0.0.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Joel Taylor
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
mercapy-0.0.0/PKG-INFO ADDED
@@ -0,0 +1,79 @@
1
+ Metadata-Version: 2.1
2
+ Name: mercapy
3
+ Version: 0.0.0
4
+ Summary: A Mercadona SDK for Python to track product prices, amounts, and more.
5
+ Author: Joel Taylor
6
+ Author-email: contact@joeltaylor.business
7
+ License: MIT
8
+ Keywords: mercadona,api,sdk,data science,prices,information
9
+ Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Programming Language :: Python
11
+ Classifier: Programming Language :: Python :: 3.12
12
+ Classifier: Programming Language :: Python :: Implementation :: CPython
13
+ Description-Content-Type: text/markdown
14
+ License-File: LICENSE
15
+ Requires-Dist: requests
16
+
17
+ <h1 align="center">
18
+ <br>
19
+ <img src="https://github.com/jtayped/mercapy/blob/main/images/logo.png?raw=true" alt="mercapy" width="200">
20
+ <br>
21
+ 🛍️ mercapy
22
+ <br>
23
+ </h1>
24
+
25
+ <h4 align="center">A Mercadona SDK for Python to track product prices, amounts, and more.</h4>
26
+
27
+ <div align="center">
28
+ <a href="https://pypi.org/project/mercapy/">
29
+ <img src="https://img.shields.io/pypi/v/mercapy?style=for-the-badge">
30
+ </a>
31
+ <a href="https://github.com/jtayped/mercapy/blob/main/LICENSE">
32
+ <img src="https://img.shields.io/github/license/jtayped/mercapy?style=for-the-badge" alt="License">
33
+ </a>
34
+ <a href="https://github.com/jtayped/mercapy/issues">
35
+ <img src="https://img.shields.io/github/issues/jtayped/mercapy?style=for-the-badge" alt="License">
36
+ </a>
37
+ <a href="https://www.linkedin.com/in/jtayped/">
38
+ <img src="https://img.shields.io/badge/LinkedIn-0077B5?style=for-the-badge&logo=linkedin&logoColor=white" alt="LinkedIn">
39
+ </a>
40
+ </div>
41
+
42
+ <div align="center">
43
+ <a href="#how-to-use">How to use it</a> •
44
+ <a href="#related">Related</a>
45
+ </div>
46
+
47
+
48
+ ## 🔧 How to use it
49
+
50
+ First of all, install the package using:
51
+
52
+ ```bash
53
+ pip install mercapy
54
+ ```
55
+
56
+ Now you can start tracking multiple product's prices, availability, weight, etc.
57
+ ```python
58
+ from mercapy import Product
59
+
60
+ water = Product("27335")
61
+ print(water.ean)
62
+ print(water.price)
63
+ print(water.origin)
64
+ ```
65
+
66
+ And you can also get other recommended products:
67
+ ```python
68
+ # Get recommended product's prices
69
+ recommeded = water.get_recommended()
70
+ for product in recommeded:
71
+ print(product.price)
72
+ ```
73
+
74
+ <div id="related"></div>
75
+
76
+ ## 🙋‍♂️ You may also like...
77
+
78
+ - [📷📱 pygramcore](https://github.com/jtayped/pygramcore) - A simple-to-use Instagram SDK for Python using Selenium.
79
+ - [🧑‍💼My Portfolio](https://joeltaylor.business) - Check out my front-end and SEO skills on my Portfolio!
@@ -0,0 +1,63 @@
1
+ <h1 align="center">
2
+ <br>
3
+ <img src="https://github.com/jtayped/mercapy/blob/main/images/logo.png?raw=true" alt="mercapy" width="200">
4
+ <br>
5
+ 🛍️ mercapy
6
+ <br>
7
+ </h1>
8
+
9
+ <h4 align="center">A Mercadona SDK for Python to track product prices, amounts, and more.</h4>
10
+
11
+ <div align="center">
12
+ <a href="https://pypi.org/project/mercapy/">
13
+ <img src="https://img.shields.io/pypi/v/mercapy?style=for-the-badge">
14
+ </a>
15
+ <a href="https://github.com/jtayped/mercapy/blob/main/LICENSE">
16
+ <img src="https://img.shields.io/github/license/jtayped/mercapy?style=for-the-badge" alt="License">
17
+ </a>
18
+ <a href="https://github.com/jtayped/mercapy/issues">
19
+ <img src="https://img.shields.io/github/issues/jtayped/mercapy?style=for-the-badge" alt="License">
20
+ </a>
21
+ <a href="https://www.linkedin.com/in/jtayped/">
22
+ <img src="https://img.shields.io/badge/LinkedIn-0077B5?style=for-the-badge&logo=linkedin&logoColor=white" alt="LinkedIn">
23
+ </a>
24
+ </div>
25
+
26
+ <div align="center">
27
+ <a href="#how-to-use">How to use it</a> •
28
+ <a href="#related">Related</a>
29
+ </div>
30
+
31
+
32
+ ## 🔧 How to use it
33
+
34
+ First of all, install the package using:
35
+
36
+ ```bash
37
+ pip install mercapy
38
+ ```
39
+
40
+ Now you can start tracking multiple product's prices, availability, weight, etc.
41
+ ```python
42
+ from mercapy import Product
43
+
44
+ water = Product("27335")
45
+ print(water.ean)
46
+ print(water.price)
47
+ print(water.origin)
48
+ ```
49
+
50
+ And you can also get other recommended products:
51
+ ```python
52
+ # Get recommended product's prices
53
+ recommeded = water.get_recommended()
54
+ for product in recommeded:
55
+ print(product.price)
56
+ ```
57
+
58
+ <div id="related"></div>
59
+
60
+ ## 🙋‍♂️ You may also like...
61
+
62
+ - [📷📱 pygramcore](https://github.com/jtayped/pygramcore) - A simple-to-use Instagram SDK for Python using Selenium.
63
+ - [🧑‍💼My Portfolio](https://joeltaylor.business) - Check out my front-end and SEO skills on my Portfolio!
@@ -0,0 +1 @@
1
+ from .product.product import Product
@@ -0,0 +1 @@
1
+ API_URL = "https://tienda.mercadona.es/"
File without changes
@@ -0,0 +1,79 @@
1
+ Metadata-Version: 2.1
2
+ Name: mercapy
3
+ Version: 0.0.0
4
+ Summary: A Mercadona SDK for Python to track product prices, amounts, and more.
5
+ Author: Joel Taylor
6
+ Author-email: contact@joeltaylor.business
7
+ License: MIT
8
+ Keywords: mercadona,api,sdk,data science,prices,information
9
+ Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Programming Language :: Python
11
+ Classifier: Programming Language :: Python :: 3.12
12
+ Classifier: Programming Language :: Python :: Implementation :: CPython
13
+ Description-Content-Type: text/markdown
14
+ License-File: LICENSE
15
+ Requires-Dist: requests
16
+
17
+ <h1 align="center">
18
+ <br>
19
+ <img src="https://github.com/jtayped/mercapy/blob/main/images/logo.png?raw=true" alt="mercapy" width="200">
20
+ <br>
21
+ 🛍️ mercapy
22
+ <br>
23
+ </h1>
24
+
25
+ <h4 align="center">A Mercadona SDK for Python to track product prices, amounts, and more.</h4>
26
+
27
+ <div align="center">
28
+ <a href="https://pypi.org/project/mercapy/">
29
+ <img src="https://img.shields.io/pypi/v/mercapy?style=for-the-badge">
30
+ </a>
31
+ <a href="https://github.com/jtayped/mercapy/blob/main/LICENSE">
32
+ <img src="https://img.shields.io/github/license/jtayped/mercapy?style=for-the-badge" alt="License">
33
+ </a>
34
+ <a href="https://github.com/jtayped/mercapy/issues">
35
+ <img src="https://img.shields.io/github/issues/jtayped/mercapy?style=for-the-badge" alt="License">
36
+ </a>
37
+ <a href="https://www.linkedin.com/in/jtayped/">
38
+ <img src="https://img.shields.io/badge/LinkedIn-0077B5?style=for-the-badge&logo=linkedin&logoColor=white" alt="LinkedIn">
39
+ </a>
40
+ </div>
41
+
42
+ <div align="center">
43
+ <a href="#how-to-use">How to use it</a> •
44
+ <a href="#related">Related</a>
45
+ </div>
46
+
47
+
48
+ ## 🔧 How to use it
49
+
50
+ First of all, install the package using:
51
+
52
+ ```bash
53
+ pip install mercapy
54
+ ```
55
+
56
+ Now you can start tracking multiple product's prices, availability, weight, etc.
57
+ ```python
58
+ from mercapy import Product
59
+
60
+ water = Product("27335")
61
+ print(water.ean)
62
+ print(water.price)
63
+ print(water.origin)
64
+ ```
65
+
66
+ And you can also get other recommended products:
67
+ ```python
68
+ # Get recommended product's prices
69
+ recommeded = water.get_recommended()
70
+ for product in recommeded:
71
+ print(product.price)
72
+ ```
73
+
74
+ <div id="related"></div>
75
+
76
+ ## 🙋‍♂️ You may also like...
77
+
78
+ - [📷📱 pygramcore](https://github.com/jtayped/pygramcore) - A simple-to-use Instagram SDK for Python using Selenium.
79
+ - [🧑‍💼My Portfolio](https://joeltaylor.business) - Check out my front-end and SEO skills on my Portfolio!
@@ -0,0 +1,11 @@
1
+ LICENSE
2
+ README.md
3
+ setup.py
4
+ mercapy/__init__.py
5
+ mercapy/constants.py
6
+ mercapy/merca.py
7
+ mercapy.egg-info/PKG-INFO
8
+ mercapy.egg-info/SOURCES.txt
9
+ mercapy.egg-info/dependency_links.txt
10
+ mercapy.egg-info/requires.txt
11
+ mercapy.egg-info/top_level.txt
@@ -0,0 +1 @@
1
+ requests
@@ -0,0 +1 @@
1
+ mercapy
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
mercapy-0.0.0/setup.py ADDED
@@ -0,0 +1,34 @@
1
+ from setuptools import setup, find_packages
2
+ from codecs import open
3
+ from os import path
4
+
5
+ # Read version from VERSION file
6
+ here = path.abspath(path.dirname(__file__))
7
+
8
+ VERSION = "0.0.0"
9
+ DESCRIPTION = "A Mercadona SDK for Python to track product prices, amounts, and more."
10
+
11
+ # Get the long description from the README file
12
+ with open(path.join(here, "README.md"), encoding="utf-8") as f:
13
+ LONG_DESCRIPTION = f.read()
14
+
15
+ setup(
16
+ name="mercapy",
17
+ version=VERSION,
18
+ description=DESCRIPTION,
19
+ long_description=LONG_DESCRIPTION,
20
+ long_description_content_type="text/markdown",
21
+ author="Joel Taylor",
22
+ author_email="contact@joeltaylor.business",
23
+ license="MIT",
24
+ classifiers=[
25
+ "License :: OSI Approved :: MIT License",
26
+ "Programming Language :: Python",
27
+ "Programming Language :: Python :: 3.12",
28
+ "Programming Language :: Python :: Implementation :: CPython",
29
+ ],
30
+ keywords=["mercadona", "api", "sdk", "data science", "prices", "information"],
31
+ packages=find_packages(exclude=["docs", "tests"]),
32
+ install_requires=["requests"],
33
+ setup_requires=["setuptools>=38.6.0"],
34
+ )