marvin-datacircle 0.1.0__py3-none-any.whl

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,17 @@
1
+ """Tools for Marvin 3 on Datacircle's open API (https://api.datacircle.dev/v1): find the best GTM APIs, no key."""
2
+
3
+ from marvin_datacircle._api import BASE_URL, DatacircleError
4
+ from marvin_datacircle.tools import (
5
+ FUNCTIONS,
6
+ TOOL_NAMES,
7
+ datacircle_best_plans,
8
+ datacircle_list_apis,
9
+ datacircle_provider,
10
+ datacircle_search_plans,
11
+ datacircle_tools,
12
+ run,
13
+ )
14
+
15
+ __version__ = "0.1.0"
16
+ __all__ = ["BASE_URL", "DatacircleError", "FUNCTIONS", "TOOL_NAMES", "datacircle_best_plans", "datacircle_list_apis",
17
+ "datacircle_provider", "datacircle_search_plans", "datacircle_tools", "run"]
@@ -0,0 +1,101 @@
1
+ """One HTTPS GET to Datacircle's open API (https://api.datacircle.dev/v1), no key, and what its answers are cut to for a model."""
2
+
3
+ import json
4
+ import math
5
+ import re
6
+ import time
7
+ import unicodedata
8
+ import urllib.error
9
+ import urllib.parse
10
+ import urllib.request
11
+ from typing import Any, Dict, List, Optional
12
+
13
+ BASE_URL = "https://api.datacircle.dev/v1"
14
+ TIMEOUT = 30.0
15
+ USER_AGENT = "marvin-datacircle/0.1.0"
16
+
17
+ # A plan holds about 90 keys (its terms of use, its aggregators...): the tools keep the ones that choose a plan, the rest is on its page.
18
+ PLAN_KEYS = ["api", "rank", "provider", "plan", "score", "perThousand", "notFoundPerThousand", "billing", "pay",
19
+ "currency", "units", "unit", "strengths", "latencyMs", "page", "pricingPage", "docs"]
20
+ API_KEYS = ["api", "slug", "plans", "providers", "best", "bestPage", "sheetPage"]
21
+
22
+
23
+ class DatacircleError(Exception):
24
+ """The API's refusal in its own words, why it could not be reached, or an argument it can't take: a tool gives the
25
+ model its words as its JSON text, {"error": ...}. status is the API's HTTP status, None when it gave none;
26
+ retryable, whether the same call may be answered later (the API out of reach, busy or failing)."""
27
+
28
+ def __init__(self, message: str, status: Optional[int] = None, retryable: bool = False):
29
+ super().__init__(message)
30
+ self.status = status
31
+ self.retryable = retryable
32
+
33
+
34
+ def brief(item: Dict[str, Any], keys: List[str] = PLAN_KEYS) -> Dict[str, Any]:
35
+ return {key: item[key] for key in keys if item.get(key) is not None}
36
+
37
+
38
+ def slug(value: Any) -> str:
39
+ """The API's rule for a slug: the name in lowercase letters and digits, the rest a hyphen."""
40
+ plain = unicodedata.normalize("NFKD", str(value or "").strip().lower())
41
+ plain = "".join(char for char in plain if not unicodedata.combining(char))
42
+ return re.sub(r"[^a-z0-9]+", "-", plain).strip("-")
43
+
44
+
45
+ def whole(name: str, value: Any, low: int, high: Optional[int] = None) -> Optional[int]:
46
+ """A whole number from low to high, or None when left out: a plain call may send one as text."""
47
+ if value is None or value == "":
48
+ return None
49
+ try:
50
+ number = float(value)
51
+ except (TypeError, ValueError):
52
+ number = float("nan")
53
+ if isinstance(value, bool) or not math.isfinite(number) or number != int(number):
54
+ raise DatacircleError(f"{name} must be a whole number, not {value!r}")
55
+ if number < low or (high is not None and number > high):
56
+ raise DatacircleError(f"{name} must be from {low} to {high}, not {int(number)}" if high is not None
57
+ else f"{name} must be {low} or more, not {int(number)}")
58
+ return int(number)
59
+
60
+
61
+ def _words(body: bytes) -> str:
62
+ """A refusal's words: the API's error, with every slug when the slug was unknown."""
63
+ text = body.decode("utf-8", "replace")
64
+ try:
65
+ parsed = json.loads(text)
66
+ if parsed.get("slugs"):
67
+ return f"{parsed['error']}; the slugs: {', '.join(parsed['slugs'])}"
68
+ return str(parsed.get("error", text))
69
+ except (ValueError, KeyError, TypeError, AttributeError):
70
+ return text
71
+
72
+
73
+ def get(path: str, params: Optional[Dict[str, Any]] = None) -> Any:
74
+ """The API's JSON answer, or a DatacircleError with its words: waits once when it answers 429."""
75
+ query = urllib.parse.urlencode({key: value for key, value in (params or {}).items() if value not in (None, "")})
76
+ url = f"{BASE_URL.rstrip('/')}{path}" + (f"?{query}" if query else "")
77
+ request = urllib.request.Request(url, headers={"Accept": "application/json", "User-Agent": USER_AGENT})
78
+ for attempt in range(2):
79
+ try:
80
+ with urllib.request.urlopen(request, timeout=TIMEOUT) as answer:
81
+ body = answer.read()
82
+ except urllib.error.HTTPError as error:
83
+ body = error.read()
84
+ if error.code == 429 and not attempt:
85
+ try:
86
+ wait = int(error.headers.get("Retry-After") or 30)
87
+ except ValueError:
88
+ wait = 30
89
+ time.sleep(min(max(wait, 1), 60))
90
+ continue
91
+ if error.code == 429:
92
+ raise DatacircleError("Datacircle's API answered 429 twice: wait a minute and call again", 429, True) from None
93
+ raise DatacircleError(f"Datacircle's API answered {error.code}: {_words(body)[:3000]}", error.code,
94
+ error.code >= 500) from None
95
+ except (urllib.error.URLError, OSError) as error:
96
+ raise DatacircleError(f"Datacircle's API could not be reached: {getattr(error, 'reason', error)}",
97
+ retryable=True) from None
98
+ try:
99
+ return json.loads(body)
100
+ except ValueError as error:
101
+ raise DatacircleError(f"Datacircle's API gave no JSON: {error}") from None
File without changes
@@ -0,0 +1,169 @@
1
+ """Tools for Marvin 3 on Datacircle's open API, https://api.datacircle.dev/v1: no key, no account.
2
+
3
+ Each tool is a plain typed function with a Google docstring, which Marvin gives to Pydantic AI as it is: its name, the
4
+ description before "Args:", each argument's type from the signature and its description from the docstring, and what
5
+ it gives from "Returns:". Each runs the same way in marvin.run(..., tools=[...]), an Agent(tools=[...]) and a
6
+ Task(tools=[...]), sync or async, beside an app's own tools. A tool makes one HTTPS GET and returns the API's answer as
7
+ a dict, which the model reads as JSON. A refusal (an unknown slug, an argument out of range, the API out of reach) is
8
+ the dict {"error": the API's words}, never an exception: Marvin makes a tool's exception a retry, and a tool that fails
9
+ past its retries ends the whole run.
10
+ """
11
+
12
+ import json
13
+ import urllib.parse
14
+ from collections.abc import Callable, Mapping, Sequence
15
+ from typing import Any
16
+
17
+ from marvin_datacircle import _api
18
+
19
+
20
+ def _answer(function: Callable[..., Any], *args: Any) -> dict[str, Any]:
21
+ """What a tool gives the model: its answer, or {"error": ...} when the API or its checks refused."""
22
+ try:
23
+ return function(*args)
24
+ except _api.DatacircleError as error:
25
+ return {"error": str(error)}
26
+
27
+
28
+ def _best(plans: Any) -> dict[str, Any] | None:
29
+ """A provider's best plan on an API: its lowest rank, a plan with no score having none."""
30
+ ranked = sorted(plans, key=lambda plan: plan.get("rank") if isinstance(plan.get("rank"), (int, float)) else float("inf"))
31
+ return _api.brief(ranked[0], ["plan", "score", "perThousand", "page"]) if ranked else None
32
+
33
+
34
+ def _list_apis(query: Any, limit: Any) -> dict[str, Any]:
35
+ count = _api.whole("limit", limit, 1, 200) or 20
36
+ apis = _api.get("/apis")
37
+ words = [word for word in str(query or "").lower().replace("-", " ").split() if word]
38
+ held = []
39
+ for index, api in enumerate(apis):
40
+ name = f"{api.get('api', '')} {str(api.get('slug', '')).replace('-', ' ')}".lower()
41
+ matched = sum(word in name for word in words)
42
+ if matched or not words:
43
+ held.append((-matched, index, api))
44
+ found = [_api.brief(api, _api.API_KEYS) for _, _, api in sorted(held, key=lambda h: h[:2])]
45
+ return {"total": len(found), "apis": found[:count]}
46
+
47
+
48
+ def _best_plans(slug: Any, limit: Any) -> dict[str, Any]:
49
+ made = _api.slug(slug)
50
+ if not made:
51
+ raise _api.DatacircleError("Give an API's slug, like 'email-finder': datacircle_list_apis gives every slug")
52
+ answer = _api.get(f"/apis/{urllib.parse.quote(made)}/best", {"limit": _api.whole("limit", limit, 1, 50)})
53
+ return {**answer, "plans": [_api.brief(plan) for plan in answer.get("plans") or []]}
54
+
55
+
56
+ def _search_plans(api: Any, query: Any, sort: Any, limit: Any, offset: Any) -> dict[str, Any]:
57
+ order = str(sort).strip().lower() if sort not in (None, "") else None
58
+ if order is not None and order not in ("score", "provider", "price"):
59
+ raise _api.DatacircleError(f"sort must be score, provider or price, not {sort!r}")
60
+ params = {"api": api, "query": query, "sort": order, "limit": _api.whole("limit", limit, 1, 50),
61
+ "offset": _api.whole("offset", offset, 0)}
62
+ answer = _api.get("/plans", params)
63
+ return {**answer, "plans": [_api.brief(plan) for plan in answer.get("plans") or []]}
64
+
65
+
66
+ def _provider(slug: Any) -> dict[str, Any]:
67
+ made = _api.slug(slug)
68
+ if not made:
69
+ raise _api.DatacircleError("Give a provider's slug or name, like 'bright-data' or 'Bright Data'")
70
+ answer = _api.get(f"/providers/{urllib.parse.quote(made)}")
71
+ apis = [{**_api.brief(entry, ["api", "slug", "rank", "bestPage"]), "plans": len(entry.get("plans") or []),
72
+ "best": _best(entry.get("plans") or [])} for entry in answer.get("apis") or []]
73
+ return {**answer, "apis": apis}
74
+
75
+
76
+ # The tools. sort is a str, not a Literal: the tool's own check gives the model its words for a value out of the list,
77
+ # where a schema's refusal would cost a retry of Marvin's.
78
+
79
+ def datacircle_list_apis(query: str | None = None, limit: int | None = None) -> dict[str, Any]:
80
+ """Lists the GTM APIs on Datacircle's sheet (https://datacircle.dev), with each API's slug, how many plans and providers it has and its best plan. Call it to find an API's slug when you don't know it.
81
+
82
+ Args:
83
+ query: Words of the API's name or slug, like 'email' or 'linkedin profile'. The APIs that hold the most of them come first, in the sheet's order when left out.
84
+ limit: How many APIs to give, 1 to 200. 20 when left out, of about 170.
85
+
86
+ Returns:
87
+ dict: total, the APIs found, and apis, a list of up to limit of them, each with api, slug, plans, providers and best. Or {"error": ...} in the API's words.
88
+ """
89
+ return _answer(_list_apis, query, limit)
90
+
91
+
92
+ def datacircle_best_plans(slug: str, limit: int | None = None) -> dict[str, Any]:
93
+ """Gives an API's plans best first by their score out of 100 on Datacircle's benchmark (https://datacircle.dev), each with its rank, provider, plan, $ per 1,000 calls and its page: the best providers of an API.
94
+
95
+ Args:
96
+ slug: The API's slug, like 'email-finder' or 'linkedin-profile', as datacircle_list_apis gives it.
97
+ limit: How many plans to give, 1 to 50. 10 when left out.
98
+
99
+ Returns:
100
+ dict: api, slug, total and plans, a list best first, each with rank, provider, plan, score, perThousand (a plan's price of 1,000 items in dollars), pay (the plan's whole price in its currency) and page. Or {"error": ...} in the API's words.
101
+ """
102
+ return _answer(_best_plans, slug, limit)
103
+
104
+
105
+ def datacircle_search_plans(api: str | None = None, query: str | None = None, sort: str | None = None,
106
+ limit: int | None = None, offset: int | None = None) -> dict[str, Any]:
107
+ """Searches every plan on Datacircle's sheet (https://datacircle.dev), or one API's, by provider or plan name, sorted by score, provider or price.
108
+
109
+ Args:
110
+ api: Only this API's plans, by its name or slug, like 'email-finder'. A provider's name goes in query, never here. Every API when left out.
111
+ query: Words that must all appear in the provider's or plan's name, like 'bright data'.
112
+ sort: score (best first, the default), provider (A to Z) or price ($ per 1,000, lowest first).
113
+ limit: How many plans to give, 1 to 50. 10 when left out.
114
+ offset: How many found plans to skip first. 0 when left out.
115
+
116
+ Returns:
117
+ dict: total, the plans found, offset and plans, a list of up to limit of them, each with api, rank, provider, plan, score, perThousand (a plan's price of 1,000 items in dollars), pay (the plan's whole price in its currency) and page. Or {"error": ...} in the API's words.
118
+ """
119
+ return _answer(_search_plans, api, query, sort, limit, offset)
120
+
121
+
122
+ def datacircle_provider(slug: str) -> dict[str, Any]:
123
+ """Gives each API one provider sells and its rank on each on Datacircle's benchmark (https://datacircle.dev), with its best plan there.
124
+
125
+ Args:
126
+ slug: The provider's slug, like 'bright-data', or its name, like 'Bright Data', which is made a slug.
127
+
128
+ Returns:
129
+ dict: provider, slug, website and apis, a list, each with api, slug, rank, plans (how many it has there) and best, its best plan there. Or {"error": ...} in the API's words.
130
+ """
131
+ return _answer(_provider, slug)
132
+
133
+
134
+ FUNCTIONS: dict[str, Callable[..., dict[str, Any]]] = {function.__name__: function for function in (
135
+ datacircle_list_apis, datacircle_best_plans, datacircle_search_plans, datacircle_provider)}
136
+ TOOL_NAMES = list(FUNCTIONS)
137
+ _ARGUMENTS = {"datacircle_list_apis": ("query", "limit"), "datacircle_best_plans": ("slug", "limit"),
138
+ "datacircle_search_plans": ("api", "query", "sort", "limit", "offset"),
139
+ "datacircle_provider": ("slug",)}
140
+
141
+
142
+ def datacircle_tools(tool_names: Sequence[str] | None = None) -> list[Callable[..., dict[str, Any]]]:
143
+ """The tools, for marvin.run(..., tools=datacircle_tools()), Agent(tools=...) or Task(tools=...), or beside one's
144
+ own: tools=[*datacircle_tools(), my_tool]. tool_names keeps some of them only, in their order here; all four when
145
+ left out."""
146
+ if isinstance(tool_names, str):
147
+ raise TypeError("tool_names is a list of names, like ['datacircle_best_plans']")
148
+ for name in tool_names or []:
149
+ if name not in FUNCTIONS:
150
+ raise ValueError(f"Datacircle has no tool {name!r}: its tools are {', '.join(TOOL_NAMES)}")
151
+ return [FUNCTIONS[name] for name in (TOOL_NAMES if tool_names is None else tool_names)]
152
+
153
+
154
+ def run(name: str, arguments: Any = None) -> dict[str, Any]:
155
+ """What a tool gives the model for these arguments: the API's answer, or {"error": its words}. arguments is a
156
+ mapping or its JSON text; the ones the tool doesn't take are left out."""
157
+ if name not in FUNCTIONS:
158
+ raise ValueError(f"Datacircle has no tool {name!r}: its tools are {', '.join(TOOL_NAMES)}")
159
+ if isinstance(arguments, (str, bytes)):
160
+ try:
161
+ arguments = json.loads(arguments or "{}")
162
+ except ValueError:
163
+ return {"error": f"the arguments are no JSON object: {arguments[:200]!r}"}
164
+ given = arguments if isinstance(arguments, Mapping) else {}
165
+ return FUNCTIONS[name](**{key: given.get(key) for key in _ARGUMENTS[name]})
166
+
167
+
168
+ __all__: list[str] = ["FUNCTIONS", "TOOL_NAMES", "datacircle_best_plans", "datacircle_list_apis", "datacircle_provider",
169
+ "datacircle_search_plans", "datacircle_tools", "run"]
@@ -0,0 +1,111 @@
1
+ Metadata-Version: 2.5
2
+ Name: marvin-datacircle
3
+ Version: 0.1.0
4
+ Summary: Marvin tools for the Datacircle API: find the best GTM APIs
5
+ Project-URL: Homepage, https://datacircle.dev
6
+ Project-URL: Documentation, https://api.datacircle.dev/v1/openapi.json
7
+ Project-URL: Repository, https://github.com/waynehamadi/marvin-datacircle
8
+ License-Expression: MIT
9
+ License-File: LICENSE
10
+ Keywords: agents,api,api-pricing,b2b-data,datacircle,gtm,marvin,pydantic-ai,tool-calling,tools
11
+ Classifier: Operating System :: OS Independent
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Topic :: Software Development :: Libraries
14
+ Requires-Python: >=3.11
15
+ Description-Content-Type: text/markdown
16
+
17
+ # marvin-datacircle
18
+
19
+ Find the best GTM APIs. We benchmark all the GTM APIs and we put the results on our website.
20
+
21
+ Our website: https://datacircle.dev
22
+
23
+ This package gives [Marvin](https://github.com/PrefectHQ/marvin) four tools that call Datacircle's open API, https://api.datacircle.dev/v1. Each tool is a plain Python function with type hints and a docstring. Marvin reads each tool's name, description and arguments from the type hints and the docstring. You need no key and no account.
24
+
25
+ | Tool | What the tool gives | Call |
26
+ | --- | --- | --- |
27
+ | `datacircle_list_apis` | Every GTM API on Datacircle, with the API's slug, number of plans, number of providers and best plan | `GET /apis` |
28
+ | `datacircle_best_plans` | One API's plans, sorted by score out of 100, best first. Each plan comes with a rank and a price per 1,000 calls | `GET /apis/{slug}/best` |
29
+ | `datacircle_search_plans` | Plans that match a provider or plan name, on all APIs or on one API. You can sort them by score, provider or price | `GET /plans` |
30
+ | `datacircle_provider` | The APIs a provider sells, and the provider's rank on each API | `GET /providers/{slug}` |
31
+
32
+ ## Install
33
+
34
+ ```bash
35
+ pip install marvin-datacircle marvin
36
+ ```
37
+
38
+ marvin-datacircle works with Marvin 3.2.8 and later, on Python 3.11 and later. marvin-datacircle does not import `marvin`.
39
+
40
+ Marvin uses OpenAI's `gpt-4o` by default. To use another model, set `MARVIN_AGENT_MODEL=anthropic:claude-haiku-5-5`. You can also give one agent a model: `marvin.Agent(model="anthropic:claude-haiku-5-5")`.
41
+
42
+ ## Use the tools in a run
43
+
44
+ Give the Datacircle tools to `marvin.run`:
45
+
46
+ ```python
47
+ import marvin
48
+ from marvin_datacircle import datacircle_tools
49
+
50
+ print(marvin.run("Who are the 3 best providers for the email-finder API?", tools=datacircle_tools()))
51
+ ```
52
+
53
+ `marvin.run_async` and `marvin.run_stream` take the same `tools`.
54
+
55
+ ## Use the tools in an agent
56
+
57
+ Give the Datacircle tools to an `Agent`. The agent can use the tools on every task:
58
+
59
+ ```python
60
+ import marvin
61
+ from marvin_datacircle import datacircle_tools
62
+
63
+ agent = marvin.Agent(name="GTM", tools=datacircle_tools(), instructions="Use the Datacircle tools for questions on GTM APIs.")
64
+ print(agent.run("Which provider is first for the email-finder API, and on which other APIs does it rank?"))
65
+ ```
66
+
67
+ ## Use the tools in a task
68
+
69
+ Give the Datacircle tools to a `Task`. Set `result_type` to choose the type of the task's result:
70
+
71
+ ```python
72
+ import marvin
73
+ from marvin_datacircle import datacircle_tools
74
+
75
+ task = marvin.Task("Name the 3 best providers for the email-finder API.", result_type=list[str], tools=datacircle_tools())
76
+ print(task.run())
77
+ ```
78
+
79
+ ## Use the Datacircle tools beside your own tools
80
+
81
+ Put the Datacircle tools in one list with your own tools: `tools=[*datacircle_tools(), my_tool]`.
82
+
83
+ To give the model only some of the tools, list their names: `datacircle_tools(["datacircle_best_plans"])`.
84
+
85
+ ## Call a tool yourself
86
+
87
+ You can call each tool without a model. You get the tool's answer as a dict:
88
+
89
+ ```python
90
+ from marvin_datacircle import datacircle_best_plans, run
91
+
92
+ print(datacircle_best_plans("email-finder", limit=3)["plans"])
93
+ print(run("datacircle_provider", {"slug": "Bright Data"}))
94
+ ```
95
+
96
+ ## What the model reads
97
+
98
+ Each tool returns a dict. The model reads the dict as JSON. Each plan comes with a rank, provider, plan, score, price per 1,000 (`perThousand`, in dollars) and a page on datacircle.dev. That page lists every field.
99
+
100
+ You can give a provider's name in place of a slug. The tool turns `Bright Data` into `bright-data`.
101
+
102
+ The tool returns `{"error": "..."}` with the API's message when the API gives no data, such as for an unknown slug. The error for an unknown API slug lists every valid slug. The tool checks each number from the model first. For a number out of range, the tool returns `{"error": "..."}` and makes no API call. If the network fails, the tool returns `{"error": "..."}` with the network error's message. The tool never raises an error, so your program keeps running. The model can call the tool again.
103
+
104
+ ## Network
105
+
106
+ Each tool call makes one HTTPS GET request to https://api.datacircle.dev/v1 and nothing else. The request holds only the tool's own arguments: no key and nothing from your chats. The API takes up to 60 calls a minute from one IP address. The API can ask the tool to wait. The tool then waits once, for a minute at most. Each call uses only Python's standard library. Nothing goes to disk.
107
+
108
+ ## Links
109
+
110
+ - Datacircle: https://datacircle.dev
111
+ - The API's spec: https://api.datacircle.dev/v1/openapi.json
@@ -0,0 +1,8 @@
1
+ marvin_datacircle/__init__.py,sha256=G-GJ-m__jPOODVqoGy9qqWHls8XkrFpCVEZtetJ_Teo,615
2
+ marvin_datacircle/_api.py,sha256=OeI3rJcR8Zrd02DPp1ZSKWV0rgdz8m27AoEyKEqoSKk,4867
3
+ marvin_datacircle/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ marvin_datacircle/tools.py,sha256=EXS9k4i90ckCg2e87nE4hxJFdq87E5_5ge0nopQJ8-o,9574
5
+ marvin_datacircle-0.1.0.dist-info/METADATA,sha256=DIvZloq9PP2e1gdq48sTf9TSo9C9kEo4W1l4mBlu5Fo,5210
6
+ marvin_datacircle-0.1.0.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
7
+ marvin_datacircle-0.1.0.dist-info/licenses/LICENSE,sha256=dpgF7zGxeOd9IpQ9yUGa4a-cTj8fI6ulHnuilZEonCo,1067
8
+ marvin_datacircle-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.33.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,9 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Datacircle
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.