simplex 0.2.3__tar.gz → 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.

Potentially problematic release.


This version of simplex might be problematic. Click here for more details.

simplex-1.0.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Simplex Labs, Inc.
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.
simplex-1.0.0/PKG-INFO ADDED
@@ -0,0 +1,29 @@
1
+ Metadata-Version: 2.1
2
+ Name: simplex
3
+ Version: 1.0.0
4
+ Summary: Official Python SDK for Simplex API
5
+ Home-page: https://github.com/shreyka/simplex-python
6
+ Author: Simplex Labs, Inc.
7
+ Author-email: founders@simplex.sh
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Operating System :: OS Independent
11
+ Classifier: Development Status :: 4 - Beta
12
+ Classifier: Intended Audience :: Developers
13
+ Requires-Python: >=3.6
14
+ Description-Content-Type: text/markdown
15
+ License-File: LICENSE
16
+ Requires-Dist: openai>=1.0.0
17
+ Requires-Dist: python-dotenv>=0.19.0
18
+ Requires-Dist: tiktoken>=0.5.0
19
+ Requires-Dist: click>=8.0.0
20
+ Requires-Dist: rich>=13.0.0
21
+ Requires-Dist: prompt_toolkit>=3.0.0
22
+ Requires-Dist: playwright>=1.0.0
23
+ Requires-Dist: Pillow>=9.0.0
24
+
25
+ # Simplex AI Python SDK
26
+
27
+ A Python SDK for Simplex AI that enables browser automation using natural language commands.
28
+
29
+ ## Installation
@@ -0,0 +1,5 @@
1
+ # Simplex AI Python SDK
2
+
3
+ A Python SDK for Simplex AI that enables browser automation using natural language commands.
4
+
5
+ ## Installation
@@ -0,0 +1,3 @@
1
+ [build-system]
2
+ requires = ["setuptools>=42", "wheel"]
3
+ build-backend = "setuptools.build_meta"
simplex-1.0.0/setup.py ADDED
@@ -0,0 +1,36 @@
1
+ from setuptools import setup, find_packages
2
+
3
+ setup(
4
+ name="simplex",
5
+ version="1.0.0",
6
+ packages=find_packages(),
7
+ install_requires=[
8
+ "openai>=1.0.0",
9
+ "python-dotenv>=0.19.0",
10
+ "tiktoken>=0.5.0",
11
+ "click>=8.0.0",
12
+ "rich>=13.0.0",
13
+ "prompt_toolkit>=3.0.0",
14
+ "playwright>=1.0.0",
15
+ "Pillow>=9.0.0",
16
+ ],
17
+ entry_points={
18
+ 'console_scripts': [
19
+ 'simplex=simplex.cli:main',
20
+ ],
21
+ },
22
+ author="Simplex Labs, Inc.",
23
+ author_email="founders@simplex.sh",
24
+ description="Official Python SDK for Simplex API",
25
+ long_description=open("README.md").read(),
26
+ long_description_content_type="text/markdown",
27
+ url="https://github.com/shreyka/simplex-python",
28
+ classifiers=[
29
+ "Programming Language :: Python :: 3",
30
+ "License :: OSI Approved :: MIT License",
31
+ "Operating System :: OS Independent",
32
+ "Development Status :: 4 - Beta",
33
+ "Intended Audience :: Developers",
34
+ ],
35
+ python_requires=">=3.6",
36
+ )
@@ -0,0 +1,4 @@
1
+ from .simplex import Simplex
2
+
3
+ __version__ = "0.1.7"
4
+ __all__ = ["Simplex"]
@@ -0,0 +1 @@
1
+ BASE_URL = "https://u3mvtbirxf.us-east-1.awsapprunner.com"
@@ -0,0 +1,187 @@
1
+ from playwright.sync_api import Page, sync_playwright
2
+ from PIL import Image
3
+ import requests
4
+ from typing import List
5
+ import io
6
+
7
+ from .utils import center_bbox, screenshot_to_image
8
+
9
+ BASE_URL = "https://u3mvtbirxf.us-east-1.awsapprunner.com"
10
+
11
+ class Simplex:
12
+ def __init__(self, api_key: str, driver: Page = None):
13
+ """
14
+ Initialize Simplex instance
15
+
16
+ Args:
17
+ api_key (str): API key for authentication
18
+ driver (playwright.sync_api.Page, optional): Playwright page object. If not provided,
19
+ a new headless browser instance will be created.
20
+ """
21
+ self.api_key = api_key
22
+
23
+ if driver is None:
24
+ self.playwright = sync_playwright().start()
25
+ self.browser = self.playwright.chromium.launch(headless=True)
26
+ self.driver = self.browser.new_page()
27
+ else:
28
+ self.driver = driver
29
+ self.browser = None
30
+ self.playwright = None
31
+
32
+ def __del__(self):
33
+ """Cleanup Playwright resources"""
34
+ if self.browser:
35
+ self.browser.close()
36
+ if self.playwright:
37
+ self.playwright.stop()
38
+
39
+ def find_element(self, element_description: str, state: Image.Image | None = None) -> List[int]:
40
+ """
41
+ Find an element in the screenshot using the element description
42
+
43
+ Args:
44
+ element_description (str): Description of the element to find
45
+ screenshot (PIL.Image.Image): Screenshot of the page
46
+
47
+ Returns:
48
+ bounding_box (tuple): [x1, y1, x2, y2] bounding box of the found element
49
+ """
50
+ if state is None:
51
+ state = self.take_stable_screenshot()
52
+
53
+ endpoint = f"{BASE_URL}/find-element"
54
+
55
+ # Convert PIL Image to bytes
56
+ img_byte_arr = io.BytesIO()
57
+ state.save(img_byte_arr, format='PNG')
58
+ img_byte_arr = img_byte_arr.getvalue()
59
+
60
+ # Prepare multipart form data
61
+ files = {
62
+ 'image_data': ('screenshot.png', img_byte_arr, 'image/png'),
63
+ 'element_description': (None, element_description),
64
+ 'api_key': (None, self.api_key)
65
+ }
66
+ # Make the request
67
+ response = requests.post(
68
+ endpoint,
69
+ files=files
70
+ )
71
+
72
+ # Print the results
73
+ print(f"Status Code: {response.status_code}")
74
+ if response.status_code == 200:
75
+ res = response.json()
76
+ bbox = [int(res['x1']), int(res['y1']), int(res['x2']), int(res['y2'])]
77
+ return bbox
78
+ else:
79
+ print("Error:", response.text)
80
+
81
+ def step_to_action(self, step_description: str, state: Image.Image | None = None) -> List[List[str]]:
82
+ """
83
+ Convert a step description to an action
84
+
85
+ Args:
86
+ step_description (str): Description of the step to convert to action
87
+ screenshot (PIL.Image.Image): Screenshot of the page
88
+
89
+ Returns:
90
+ action (List[List[str, str]]): List of actions to perform
91
+ """
92
+ if state is None:
93
+ state = self.take_stable_screenshot()
94
+
95
+ endpoint = f"{BASE_URL}/step_to_action"
96
+
97
+ # Convert PIL Image to bytes
98
+ img_byte_arr = io.BytesIO()
99
+ state.save(img_byte_arr, format='PNG')
100
+ img_byte_arr = img_byte_arr.getvalue()
101
+
102
+ # Prepare form data
103
+ files = {
104
+ 'image_data': ('screenshot.png', img_byte_arr, 'image/png'),
105
+ 'step': (None, step_description),
106
+ 'api_key': (None, self.api_key)
107
+ }
108
+
109
+ # Make the request
110
+ response = requests.post(
111
+ endpoint,
112
+ files=files
113
+ )
114
+
115
+ # Handle response
116
+ if response.status_code == 200:
117
+ res = response.json()
118
+ actions = res.split('\n')
119
+ actions = [action.split(',') for action in actions]
120
+ actions = [[action.strip() for action in action_pair] for action_pair in actions]
121
+ return actions
122
+ else:
123
+ print(f"Error: {response.status_code}")
124
+ print(response.text)
125
+ return []
126
+
127
+ def goto(self, url: str) -> None:
128
+ """
129
+ Navigate to a URL
130
+ """
131
+ self.driver.goto(url)
132
+
133
+ def execute_action(self, action: List[List[str]], state: Image.Image | None = None) -> None:
134
+ """
135
+ Execute an action with playwright driver
136
+
137
+ Args:
138
+ action (List[List[str]]): List of actions to perform
139
+ """
140
+ action_type, description = action
141
+ if state is None:
142
+ state = self.take_stable_screenshot()
143
+
144
+ try:
145
+ if action_type == "CLICK":
146
+ bbox = self.find_element(description, state)
147
+ center_x, center_y = center_bbox(bbox)
148
+ self.driver.mouse.click(center_x, center_y)
149
+
150
+ elif action_type == "HOVER":
151
+ bbox = self.find_element(description, state)
152
+ center_x, center_y = center_bbox(bbox)
153
+ self.driver.mouse.move(center_x, center_y)
154
+
155
+ elif action_type == "TYPE":
156
+ self.driver.keyboard.type(description)
157
+
158
+ elif action_type == "SCROLL":
159
+ self.driver.mouse.wheel(0, int(description))
160
+
161
+ elif action_type == "WAIT":
162
+ self.driver.wait_for_timeout(int(description))
163
+
164
+ except Exception as e:
165
+ print(f"Error executing action: {e}")
166
+ return None
167
+
168
+ def do(self, step_description: str) -> None:
169
+ """
170
+ Execute a step description
171
+ """
172
+ state = self.take_stable_screenshot()
173
+ actions = self.step_to_action(step_description, state)
174
+ for action in actions:
175
+ self.execute_action(action)
176
+
177
+ def take_stable_screenshot(self) -> Image.Image:
178
+ """
179
+ Take a screenshot after ensuring the page is in a stable state.
180
+
181
+ Returns:
182
+ PIL.Image.Image: Screenshot of the current page
183
+ """
184
+ self.driver.wait_for_load_state('networkidle')
185
+ return screenshot_to_image(self.driver.screenshot())
186
+
187
+
@@ -0,0 +1,12 @@
1
+ from typing import List
2
+ from PIL import Image
3
+ import io
4
+ def center_bbox(bbox: List[int]) -> List[int]:
5
+ """
6
+ Calculate the center coordinates of a bounding box
7
+ """
8
+ return [(bbox[0] + bbox[2]) // 2, (bbox[1] + bbox[3]) // 2]
9
+
10
+
11
+ def screenshot_to_image(screenshot: bytes) -> Image:
12
+ return Image.open(io.BytesIO(screenshot))
@@ -0,0 +1,29 @@
1
+ Metadata-Version: 2.1
2
+ Name: simplex
3
+ Version: 1.0.0
4
+ Summary: Official Python SDK for Simplex API
5
+ Home-page: https://github.com/shreyka/simplex-python
6
+ Author: Simplex Labs, Inc.
7
+ Author-email: founders@simplex.sh
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Operating System :: OS Independent
11
+ Classifier: Development Status :: 4 - Beta
12
+ Classifier: Intended Audience :: Developers
13
+ Requires-Python: >=3.6
14
+ Description-Content-Type: text/markdown
15
+ License-File: LICENSE
16
+ Requires-Dist: openai>=1.0.0
17
+ Requires-Dist: python-dotenv>=0.19.0
18
+ Requires-Dist: tiktoken>=0.5.0
19
+ Requires-Dist: click>=8.0.0
20
+ Requires-Dist: rich>=13.0.0
21
+ Requires-Dist: prompt_toolkit>=3.0.0
22
+ Requires-Dist: playwright>=1.0.0
23
+ Requires-Dist: Pillow>=9.0.0
24
+
25
+ # Simplex AI Python SDK
26
+
27
+ A Python SDK for Simplex AI that enables browser automation using natural language commands.
28
+
29
+ ## Installation
@@ -0,0 +1,15 @@
1
+ LICENSE
2
+ README.md
3
+ pyproject.toml
4
+ setup.py
5
+ simplex/__init__.py
6
+ simplex/constants.py
7
+ simplex/simplex.py
8
+ simplex/utils.py
9
+ simplex.egg-info/PKG-INFO
10
+ simplex.egg-info/SOURCES.txt
11
+ simplex.egg-info/dependency_links.txt
12
+ simplex.egg-info/entry_points.txt
13
+ simplex.egg-info/requires.txt
14
+ simplex.egg-info/top_level.txt
15
+ tests/test_local.py
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ simplex = simplex.cli:main
@@ -0,0 +1,8 @@
1
+ openai>=1.0.0
2
+ python-dotenv>=0.19.0
3
+ tiktoken>=0.5.0
4
+ click>=8.0.0
5
+ rich>=13.0.0
6
+ prompt_toolkit>=3.0.0
7
+ playwright>=1.0.0
8
+ Pillow>=9.0.0
@@ -0,0 +1 @@
1
+ simplex
@@ -0,0 +1,111 @@
1
+ import sys
2
+ import os
3
+ sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
4
+ from simplex import Simplex
5
+
6
+ from PIL import ImageDraw
7
+
8
+ from playwright.sync_api import sync_playwright
9
+ from PIL import Image
10
+ import time
11
+ import tempfile
12
+ import webbrowser
13
+
14
+ from dotenv import load_dotenv
15
+
16
+ import io
17
+
18
+
19
+ load_dotenv()
20
+
21
+
22
+ def screenshot_tests():
23
+ simplex = Simplex(api_key=os.getenv("SIMPLEX_API_KEY"))
24
+ image = "/home/ubuntu/supreme-waffle/images/netflix.png"
25
+ screenshot = Image.open(image)
26
+
27
+ start_time = time.time()
28
+ bbox = simplex.find_element("dark mode icon", screenshot)
29
+ end_time = time.time()
30
+ print(f"Time taken: {end_time - start_time} seconds")
31
+ print(bbox)
32
+
33
+ start_time = time.time()
34
+ action = simplex.step_to_action("click and enter email address", screenshot)
35
+ end_time = time.time()
36
+ print(f"Time taken: {end_time - start_time} seconds")
37
+ print(action)
38
+
39
+
40
+ def execute_action_test():
41
+ playwright = sync_playwright().start()
42
+ browser = playwright.chromium.launch(headless=False)
43
+ driver = browser.new_page()
44
+
45
+ simplex = Simplex(api_key=os.getenv("SIMPLEX_API_KEY"), driver=driver)
46
+ simplex.goto("https://www.netflix.com/")
47
+ actions = [['CLICK', 'email field'], ['TYPE', 'email address']]
48
+ simplex.execute_action(actions[0])
49
+
50
+
51
+ def cgtrader_test():
52
+ assets = ["apple watch"]
53
+ urls = []
54
+
55
+ with sync_playwright() as p:
56
+ driver = p.chromium.launch(headless=False).new_page()
57
+ simplex = Simplex(api_key=os.getenv("SIMPLEX_API_KEY"), driver=driver)
58
+ simplex.goto("https://www.cgtrader.com/")
59
+
60
+ for asset in assets:
61
+ simplex.goto("https://www.cgtrader.com")
62
+ simplex.do(f"search for {asset}")
63
+ simplex.do("click on search button")
64
+ simplex.do(f"click on the first product")
65
+ driver.wait_for_timeout(3000)
66
+
67
+ urls.append(simplex.driver.url)
68
+
69
+ print(urls)
70
+
71
+
72
+ def test_find_element():
73
+ simplex = Simplex(api_key=os.getenv("SIMPLEX_API_KEY"))
74
+ simplex.goto("https://www.cgtrader.com/")
75
+
76
+ state = simplex.take_stable_screenshot()
77
+ bbox = simplex.find_element("cart")
78
+
79
+ # Save the screenshot without annotation
80
+ state.save('screenshot_with_bbox.png')
81
+
82
+ # Create a minimal HTML file with just the visualization and bbox
83
+ with open('screenshot_with_bbox.html', 'w') as f:
84
+ f.write(f"""
85
+ <div style="position: relative; display: inline-block;">
86
+ <img src="screenshot_with_bbox.png">
87
+ <div style="
88
+ position: absolute;
89
+ border: 2px solid red;
90
+ left: {bbox[0]}px;
91
+ top: {bbox[1]}px;
92
+ width: {bbox[2] - bbox[0]}px;
93
+ height: {bbox[3] - bbox[1]}px;
94
+ pointer-events: none;
95
+ "></div>
96
+ </div>
97
+ """)
98
+
99
+ # Create a second HTML file with just the screenshot
100
+ with open('screenshot.html', 'w') as f:
101
+ f.write("""
102
+ <div style="position: relative; display: inline-block;">
103
+ <img src="screenshot_with_bbox.png">
104
+ </div>
105
+ """)
106
+
107
+
108
+ if __name__ == "__main__":
109
+ cgtrader_test()
110
+
111
+
simplex-0.2.3/LICENSE DELETED
@@ -1,201 +0,0 @@
1
- Apache License
2
- Version 2.0, January 2004
3
- http://www.apache.org/licenses/
4
-
5
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
-
7
- 1. Definitions.
8
-
9
- "License" shall mean the terms and conditions for use, reproduction,
10
- and distribution as defined by Sections 1 through 9 of this document.
11
-
12
- "Licensor" shall mean the copyright owner or entity authorized by
13
- the copyright owner that is granting the License.
14
-
15
- "Legal Entity" shall mean the union of the acting entity and all
16
- other entities that control, are controlled by, or are under common
17
- control with that entity. For the purposes of this definition,
18
- "control" means (i) the power, direct or indirect, to cause the
19
- direction or management of such entity, whether by contract or
20
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
- outstanding shares, or (iii) beneficial ownership of such entity.
22
-
23
- "You" (or "Your") shall mean an individual or Legal Entity
24
- exercising permissions granted by this License.
25
-
26
- "Source" form shall mean the preferred form for making modifications,
27
- including but not limited to software source code, documentation
28
- source, and configuration files.
29
-
30
- "Object" form shall mean any form resulting from mechanical
31
- transformation or translation of a Source form, including but
32
- not limited to compiled object code, generated documentation,
33
- and conversions to other media types.
34
-
35
- "Work" shall mean the work of authorship, whether in Source or
36
- Object form, made available under the License, as indicated by a
37
- copyright notice that is included in or attached to the work
38
- (an example is provided in the Appendix below).
39
-
40
- "Derivative Works" shall mean any work, whether in Source or Object
41
- form, that is based on (or derived from) the Work and for which the
42
- editorial revisions, annotations, elaborations, or other modifications
43
- represent, as a whole, an original work of authorship. For the purposes
44
- of this License, Derivative Works shall not include works that remain
45
- separable from, or merely link (or bind by name) to the interfaces of,
46
- the Work and Derivative Works thereof.
47
-
48
- "Contribution" shall mean any work of authorship, including
49
- the original version of the Work and any modifications or additions
50
- to that Work or Derivative Works thereof, that is intentionally
51
- submitted to Licensor for inclusion in the Work by the copyright owner
52
- or by an individual or Legal Entity authorized to submit on behalf of
53
- the copyright owner. For the purposes of this definition, "submitted"
54
- means any form of electronic, verbal, or written communication sent
55
- to the Licensor or its representatives, including but not limited to
56
- communication on electronic mailing lists, source code control systems,
57
- and issue tracking systems that are managed by, or on behalf of, the
58
- Licensor for the purpose of discussing and improving the Work, but
59
- excluding communication that is conspicuously marked or otherwise
60
- designated in writing by the copyright owner as "Not a Contribution."
61
-
62
- "Contributor" shall mean Licensor and any individual or Legal Entity
63
- on behalf of whom a Contribution has been received by Licensor and
64
- subsequently incorporated within the Work.
65
-
66
- 2. Grant of Copyright License. Subject to the terms and conditions of
67
- this License, each Contributor hereby grants to You a perpetual,
68
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
- copyright license to reproduce, prepare Derivative Works of,
70
- publicly display, publicly perform, sublicense, and distribute the
71
- Work and such Derivative Works in Source or Object form.
72
-
73
- 3. Grant of Patent License. Subject to the terms and conditions of
74
- this License, each Contributor hereby grants to You a perpetual,
75
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
- (except as stated in this section) patent license to make, have made,
77
- use, offer to sell, sell, import, and otherwise transfer the Work,
78
- where such license applies only to those patent claims licensable
79
- by such Contributor that are necessarily infringed by their
80
- Contribution(s) alone or by combination of their Contribution(s)
81
- with the Work to which such Contribution(s) was submitted. If You
82
- institute patent litigation against any entity (including a
83
- cross-claim or counterclaim in a lawsuit) alleging that the Work
84
- or a Contribution incorporated within the Work constitutes direct
85
- or contributory patent infringement, then any patent licenses
86
- granted to You under this License for that Work shall terminate
87
- as of the date such litigation is filed.
88
-
89
- 4. Redistribution. You may reproduce and distribute copies of the
90
- Work or Derivative Works thereof in any medium, with or without
91
- modifications, and in Source or Object form, provided that You
92
- meet the following conditions:
93
-
94
- (a) You must give any other recipients of the Work or
95
- Derivative Works a copy of this License; and
96
-
97
- (b) You must cause any modified files to carry prominent notices
98
- stating that You changed the files; and
99
-
100
- (c) You must retain, in the Source form of any Derivative Works
101
- that You distribute, all copyright, patent, trademark, and
102
- attribution notices from the Source form of the Work,
103
- excluding those notices that do not pertain to any part of
104
- the Derivative Works; and
105
-
106
- (d) If the Work includes a "NOTICE" text file as part of its
107
- distribution, then any Derivative Works that You distribute must
108
- include a readable copy of the attribution notices contained
109
- within such NOTICE file, excluding those notices that do not
110
- pertain to any part of the Derivative Works, in at least one
111
- of the following places: within a NOTICE text file distributed
112
- as part of the Derivative Works; within the Source form or
113
- documentation, if provided along with the Derivative Works; or,
114
- within a display generated by the Derivative Works, if and
115
- wherever such third-party notices normally appear. The contents
116
- of the NOTICE file are for informational purposes only and
117
- do not modify the License. You may add Your own attribution
118
- notices within Derivative Works that You distribute, alongside
119
- or as an addendum to the NOTICE text from the Work, provided
120
- that such additional attribution notices cannot be construed
121
- as modifying the License.
122
-
123
- You may add Your own copyright statement to Your modifications and
124
- may provide additional or different license terms and conditions
125
- for use, reproduction, or distribution of Your modifications, or
126
- for any such Derivative Works as a whole, provided Your use,
127
- reproduction, and distribution of the Work otherwise complies with
128
- the conditions stated in this License.
129
-
130
- 5. Submission of Contributions. Unless You explicitly state otherwise,
131
- any Contribution intentionally submitted for inclusion in the Work
132
- by You to the Licensor shall be under the terms and conditions of
133
- this License, without any additional terms or conditions.
134
- Notwithstanding the above, nothing herein shall supersede or modify
135
- the terms of any separate license agreement you may have executed
136
- with Licensor regarding such Contributions.
137
-
138
- 6. Trademarks. This License does not grant permission to use the trade
139
- names, trademarks, service marks, or product names of the Licensor,
140
- except as required for reasonable and customary use in describing the
141
- origin of the Work and reproducing the content of the NOTICE file.
142
-
143
- 7. Disclaimer of Warranty. Unless required by applicable law or
144
- agreed to in writing, Licensor provides the Work (and each
145
- Contributor provides its Contributions) on an "AS IS" BASIS,
146
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
- implied, including, without limitation, any warranties or conditions
148
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
- PARTICULAR PURPOSE. You are solely responsible for determining the
150
- appropriateness of using or redistributing the Work and assume any
151
- risks associated with Your exercise of permissions under this License.
152
-
153
- 8. Limitation of Liability. In no event and under no legal theory,
154
- whether in tort (including negligence), contract, or otherwise,
155
- unless required by applicable law (such as deliberate and grossly
156
- negligent acts) or agreed to in writing, shall any Contributor be
157
- liable to You for damages, including any direct, indirect, special,
158
- incidental, or consequential damages of any character arising as a
159
- result of this License or out of the use or inability to use the
160
- Work (including but not limited to damages for loss of goodwill,
161
- work stoppage, computer failure or malfunction, or any and all
162
- other commercial damages or losses), even if such Contributor
163
- has been advised of the possibility of such damages.
164
-
165
- 9. Accepting Warranty or Additional Liability. While redistributing
166
- the Work or Derivative Works thereof, You may choose to offer,
167
- and charge a fee for, acceptance of support, warranty, indemnity,
168
- or other liability obligations and/or rights consistent with this
169
- License. However, in accepting such obligations, You may act only
170
- on Your own behalf and on Your sole responsibility, not on behalf
171
- of any other Contributor, and only if You agree to indemnify,
172
- defend, and hold each Contributor harmless for any liability
173
- incurred by, or claims asserted against, such Contributor by reason
174
- of your accepting any such warranty or additional liability.
175
-
176
- END OF TERMS AND CONDITIONS
177
-
178
- APPENDIX: How to apply the Apache License to your work.
179
-
180
- To apply the Apache License to your work, attach the following
181
- boilerplate notice, with the fields enclosed by brackets "[]"
182
- replaced with your own identifying information. (Don't include
183
- the brackets!) The text should be enclosed in the appropriate
184
- comment syntax for the file format. We also recommend that a
185
- file or class name and description of purpose be included on the
186
- same "printed page" as the copyright notice for easier
187
- identification within third-party archives.
188
-
189
- Copyright [yyyy] [name of copyright owner]
190
-
191
- Licensed under the Apache License, Version 2.0 (the "License");
192
- you may not use this file except in compliance with the License.
193
- You may obtain a copy of the License at
194
-
195
- http://www.apache.org/licenses/LICENSE-2.0
196
-
197
- Unless required by applicable law or agreed to in writing, software
198
- distributed under the License is distributed on an "AS IS" BASIS,
199
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
- See the License for the specific language governing permissions and
201
- limitations under the License.
simplex-0.2.3/PKG-INFO DELETED
@@ -1,21 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: simplex
3
- Version: 0.2.3
4
- Summary: A placeholder package
5
- Home-page: https://github.com/ashishbijlani/sample-pypi-package
6
- Author: Ashish Bijlani
7
- Author-email: ab@gmail.com
8
- License: UNKNOWN
9
- Platform: UNKNOWN
10
- Classifier: Programming Language :: Python :: 3.8
11
- Classifier: License :: OSI Approved :: MIT License
12
- Classifier: Operating System :: OS Independent
13
- Requires-Python: >=3.6
14
- Description-Content-Type: text/markdown
15
- License-File: LICENSE
16
-
17
- # Placeholder package
18
-
19
- This is a placeholder package
20
-
21
-
simplex-0.2.3/README.md DELETED
@@ -1,3 +0,0 @@
1
- # Placeholder package
2
-
3
- This is a placeholder package
simplex-0.2.3/setup.py DELETED
@@ -1,43 +0,0 @@
1
- # Import our newly installed setuptools package.
2
- import setuptools
3
-
4
- print("This is a placeholder package. Please contact for removal.")
5
-
6
- # Opens our README.md and assigns it to long_description.
7
- with open("README.md", "r") as fh:
8
- long_description = fh.read()
9
-
10
- # Defines requests as a requirement in order for this package to operate. The dependencies of the project.
11
- # requirements = ["requests<=2.21.0"]
12
-
13
- # Function that takes several arguments. It assigns these values to our package.
14
- setuptools.setup(
15
- # Distribution name the package. Name must be unique so adding your username at the end is common.
16
- name="simplex",
17
- # Version number of your package. Semantic versioning is commonly used.
18
- version="0.2.3",
19
- # Author name.
20
- author="Ashish Bijlani",
21
- # Author's email address.
22
- author_email="ab@gmail.com",
23
- # Short description that will show on the PyPi page.
24
- description="A placeholder package",
25
- # Long description that will display on the PyPi page. Uses the repo's README.md to populate this.
26
- long_description=long_description,
27
- # Defines the content type that the long_description is using.
28
- long_description_content_type="text/markdown",
29
- # The URL that represents the homepage of the project. Most projects link to the repo.
30
- url="https://github.com/ashishbijlani/sample-pypi-package",
31
- # Finds all packages within in the project and combines them into the distribution together.
32
- packages=setuptools.find_packages(),
33
- # requirements or dependencies that will be installed alongside your package when the user installs it via pip.
34
- # install_requires=requirements,
35
- # Gives pip some metadata about the package. Also displays on the PyPi page.
36
- classifiers=[
37
- "Programming Language :: Python :: 3.8",
38
- "License :: OSI Approved :: MIT License",
39
- "Operating System :: OS Independent",
40
- ],
41
- # The version of Python that is required.
42
- python_requires='>=3.6',
43
- )
@@ -1,21 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: simplex
3
- Version: 0.2.3
4
- Summary: A placeholder package
5
- Home-page: https://github.com/ashishbijlani/sample-pypi-package
6
- Author: Ashish Bijlani
7
- Author-email: ab@gmail.com
8
- License: UNKNOWN
9
- Platform: UNKNOWN
10
- Classifier: Programming Language :: Python :: 3.8
11
- Classifier: License :: OSI Approved :: MIT License
12
- Classifier: Operating System :: OS Independent
13
- Requires-Python: >=3.6
14
- Description-Content-Type: text/markdown
15
- License-File: LICENSE
16
-
17
- # Placeholder package
18
-
19
- This is a placeholder package
20
-
21
-
@@ -1,7 +0,0 @@
1
- LICENSE
2
- README.md
3
- setup.py
4
- simplex.egg-info/PKG-INFO
5
- simplex.egg-info/SOURCES.txt
6
- simplex.egg-info/dependency_links.txt
7
- simplex.egg-info/top_level.txt
@@ -1 +0,0 @@
1
-
File without changes