nosible 0.3.3__tar.gz → 0.3.4__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.
Files changed (26) hide show
  1. {nosible-0.3.3/src/nosible.egg-info → nosible-0.3.4}/PKG-INFO +1 -1
  2. {nosible-0.3.3 → nosible-0.3.4}/pyproject.toml +1 -1
  3. {nosible-0.3.3 → nosible-0.3.4}/src/nosible/nosible_client.py +1 -1
  4. {nosible-0.3.3 → nosible-0.3.4}/src/nosible/utils/rate_limiter.py +5 -0
  5. {nosible-0.3.3 → nosible-0.3.4/src/nosible.egg-info}/PKG-INFO +1 -1
  6. {nosible-0.3.3 → nosible-0.3.4}/LICENSE +0 -0
  7. {nosible-0.3.3 → nosible-0.3.4}/README.md +0 -0
  8. {nosible-0.3.3 → nosible-0.3.4}/setup.cfg +0 -0
  9. {nosible-0.3.3 → nosible-0.3.4}/setup.py +0 -0
  10. {nosible-0.3.3 → nosible-0.3.4}/src/nosible/__init__.py +0 -0
  11. {nosible-0.3.3 → nosible-0.3.4}/src/nosible/classes/result.py +0 -0
  12. {nosible-0.3.3 → nosible-0.3.4}/src/nosible/classes/result_set.py +0 -0
  13. {nosible-0.3.3 → nosible-0.3.4}/src/nosible/classes/search.py +0 -0
  14. {nosible-0.3.3 → nosible-0.3.4}/src/nosible/classes/search_set.py +0 -0
  15. {nosible-0.3.3 → nosible-0.3.4}/src/nosible/classes/snippet.py +0 -0
  16. {nosible-0.3.3 → nosible-0.3.4}/src/nosible/classes/snippet_set.py +0 -0
  17. {nosible-0.3.3 → nosible-0.3.4}/src/nosible/classes/web_page.py +0 -0
  18. {nosible-0.3.3 → nosible-0.3.4}/src/nosible/utils/json_tools.py +0 -0
  19. {nosible-0.3.3 → nosible-0.3.4}/src/nosible.egg-info/SOURCES.txt +0 -0
  20. {nosible-0.3.3 → nosible-0.3.4}/src/nosible.egg-info/dependency_links.txt +0 -0
  21. {nosible-0.3.3 → nosible-0.3.4}/src/nosible.egg-info/requires.txt +0 -0
  22. {nosible-0.3.3 → nosible-0.3.4}/src/nosible.egg-info/top_level.txt +0 -0
  23. {nosible-0.3.3 → nosible-0.3.4}/tests/test_01_nosible.py +0 -0
  24. {nosible-0.3.3 → nosible-0.3.4}/tests/test_02_results.py +0 -0
  25. {nosible-0.3.3 → nosible-0.3.4}/tests/test_03_search_searchset.py +0 -0
  26. {nosible-0.3.3 → nosible-0.3.4}/tests/test_04_snippets.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nosible
3
- Version: 0.3.3
3
+ Version: 0.3.4
4
4
  Summary: Python client for the NOSIBLE Search API
5
5
  Home-page: https://github.com/NosibleAI/nosible-py
6
6
  Author: Stuart Reid, Matthew Dicks, Richard Taylor, Gareth Warburton
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "nosible"
3
- version = "0.3.3"
3
+ version = "0.3.4"
4
4
  description = "Python client for the NOSIBLE Search API"
5
5
  readme = { file = "README.md", content-type = "text/markdown" }
6
6
  requires-python = ">=3.9"
@@ -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", "basic", "pro", "pro+", "bus", "bus+", "ent", "chat", "cons", "stup", "busn"}
1735
+ plans = {"test", "self", "basic", "pro", "pro+", "bus", "bus+", "ent", "chat", "cons", "stup", "busn"}
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.")
@@ -51,6 +51,11 @@ PLAN_RATE_LIMITS = {
51
51
  "bulk": [(60, 60), (1_500_000, 24 * 3600 * 30)],
52
52
  "fast": [(360, 60), (15_000_000, 24 * 3600 * 30)],
53
53
  },
54
+ "self": {
55
+ "scrape-url": [(6000, 60), (1_500_000, 24 * 3600 * 30)],
56
+ "bulk": [(6000, 60), (1_500_000, 24 * 3600 * 30)],
57
+ "fast": [(36_000, 60), (15_000_000, 24 * 3600 * 30)],
58
+ },
54
59
  "cons": {
55
60
  "scrape-url": [(60, 60), (3000, 24 * 3600 * 30)],
56
61
  "bulk": [(60, 60), (3000, 24 * 3600 * 30)],
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nosible
3
- Version: 0.3.3
3
+ Version: 0.3.4
4
4
  Summary: Python client for the NOSIBLE Search API
5
5
  Home-page: https://github.com/NosibleAI/nosible-py
6
6
  Author: Stuart Reid, Matthew Dicks, Richard Taylor, Gareth Warburton
File without changes
File without changes
File without changes
File without changes
File without changes