nosible 0.3.4__py3-none-any.whl → 0.3.5__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.
- nosible/nosible_client.py +2 -2
- nosible/utils/rate_limiter.py +5 -0
- {nosible-0.3.4.dist-info → nosible-0.3.5.dist-info}/METADATA +1 -1
- {nosible-0.3.4.dist-info → nosible-0.3.5.dist-info}/RECORD +7 -7
- {nosible-0.3.4.dist-info → nosible-0.3.5.dist-info}/WHEEL +0 -0
- {nosible-0.3.4.dist-info → nosible-0.3.5.dist-info}/licenses/LICENSE +0 -0
- {nosible-0.3.4.dist-info → nosible-0.3.5.dist-info}/top_level.txt +0 -0
nosible/nosible_client.py
CHANGED
|
@@ -356,7 +356,7 @@ class Nosible:
|
|
|
356
356
|
search : Search
|
|
357
357
|
Search object to search with.
|
|
358
358
|
expansions : list of str, optional
|
|
359
|
-
|
|
359
|
+
Up to 10 semantically/lexically related queries to boost recall.
|
|
360
360
|
sql_filter : list of str, optional
|
|
361
361
|
SQL‐style filter clauses.
|
|
362
362
|
n_results : int
|
|
@@ -1732,7 +1732,7 @@ class Nosible:
|
|
|
1732
1732
|
prefix = (self.nosible_api_key or "").split("|", 1)[0]
|
|
1733
1733
|
|
|
1734
1734
|
# Map prefixes -> plan names
|
|
1735
|
-
plans = {"test", "self", "basic", "pro", "pro+", "bus", "bus+", "ent", "chat", "cons", "stup", "busn"}
|
|
1735
|
+
plans = {"test", "self", "basic", "pro", "pro+", "bus", "bus+", "ent", "chat", "cons", "stup", "busn", "prod"}
|
|
1736
1736
|
|
|
1737
1737
|
if prefix not in plans:
|
|
1738
1738
|
raise ValueError(f"Your API key is not valid: {prefix} is not a valid plan prefix.")
|
nosible/utils/rate_limiter.py
CHANGED
|
@@ -45,6 +45,11 @@ PLAN_RATE_LIMITS = {
|
|
|
45
45
|
"bulk": [(60, 60), (1_500_000, 24 * 3600 * 30)],
|
|
46
46
|
"fast": [(360, 60), (15_000_000, 24 * 3600 * 30)],
|
|
47
47
|
},
|
|
48
|
+
"prod": {
|
|
49
|
+
"scrape-url": [(60, 60), (1_500_000, 24 * 3600 * 30)],
|
|
50
|
+
"bulk": [(60, 60), (1_500_000, 24 * 3600 * 30)],
|
|
51
|
+
"fast": [(360, 60), (15_000_000, 24 * 3600 * 30)],
|
|
52
|
+
},
|
|
48
53
|
# This plan is used for testing in the package
|
|
49
54
|
"chat": {
|
|
50
55
|
"scrape-url": [(60, 60), (1_500_000, 24 * 3600 * 30)],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
nosible/__init__.py,sha256=11QmG9Wjprp_zB0VnPxGjqKwHmaoB0hoT8AGO6cGVMM,1426
|
|
2
|
-
nosible/nosible_client.py,sha256=
|
|
2
|
+
nosible/nosible_client.py,sha256=VOwc2nYOL-OtO9Xp3yyUOdJ3aUzr9_9lxDHJoCiADio,88665
|
|
3
3
|
nosible/classes/result.py,sha256=c1YOFdhZOnSjdcNqpc3YjXxKcoJ2c0ik6wgfIsXTAP0,22697
|
|
4
4
|
nosible/classes/result_set.py,sha256=8XrnnpGdm5lskqE0E7qSRR_mofPZfEHxtOFrkmfpbEM,52662
|
|
5
5
|
nosible/classes/search.py,sha256=VrpuAsS4pxcirR6l6WStJN0gPIfahZ_9Cx3YdNKczSw,13860
|
|
@@ -8,9 +8,9 @@ nosible/classes/snippet.py,sha256=m2qxgnMxIxx4ZOIMqUAViGLf7C1Y4NCGaioyEKw2-Zg,49
|
|
|
8
8
|
nosible/classes/snippet_set.py,sha256=0jPMDhJNCO02WhvY1QR1HedvADvBxRcN6x3FItEgSiI,5099
|
|
9
9
|
nosible/classes/web_page.py,sha256=cvwQspxS0pU2nFgPLqnDtDWlLONHp1KwxerflHueLJ8,5838
|
|
10
10
|
nosible/utils/json_tools.py,sha256=PcSMjcLEhbA626jAIn0SuD_1-4QDduapZUenTSt3N2E,4569
|
|
11
|
-
nosible/utils/rate_limiter.py,sha256=
|
|
12
|
-
nosible-0.3.
|
|
13
|
-
nosible-0.3.
|
|
14
|
-
nosible-0.3.
|
|
15
|
-
nosible-0.3.
|
|
16
|
-
nosible-0.3.
|
|
11
|
+
nosible/utils/rate_limiter.py,sha256=zbzEGtVnHooknEbwQSK2dtk_afsmbM0diz5t9JF68Bw,6470
|
|
12
|
+
nosible-0.3.5.dist-info/licenses/LICENSE,sha256=8ifsV4DrsiKi8KVBFy8SBb3KXPXhofE3pYq07q1TSCQ,1117
|
|
13
|
+
nosible-0.3.5.dist-info/METADATA,sha256=C4STEONiV1xeNydUKV3ZrHIlzFXDwQslGp2W99BN03w,5503
|
|
14
|
+
nosible-0.3.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
15
|
+
nosible-0.3.5.dist-info/top_level.txt,sha256=mOconHuKcNJ1jTAj3DapQP_xB8YOmjTMyHg5txKH3uA,8
|
|
16
|
+
nosible-0.3.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|