nosible 0.2.7__tar.gz → 0.2.8__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.2.7/src/nosible.egg-info → nosible-0.2.8}/PKG-INFO +1 -1
  2. {nosible-0.2.7 → nosible-0.2.8}/pyproject.toml +1 -1
  3. {nosible-0.2.7 → nosible-0.2.8}/src/nosible/nosible_client.py +1 -1
  4. {nosible-0.2.7 → nosible-0.2.8}/src/nosible/utils/rate_limiter.py +16 -0
  5. {nosible-0.2.7 → nosible-0.2.8/src/nosible.egg-info}/PKG-INFO +1 -1
  6. {nosible-0.2.7 → nosible-0.2.8}/LICENSE +0 -0
  7. {nosible-0.2.7 → nosible-0.2.8}/README.md +0 -0
  8. {nosible-0.2.7 → nosible-0.2.8}/setup.cfg +0 -0
  9. {nosible-0.2.7 → nosible-0.2.8}/setup.py +0 -0
  10. {nosible-0.2.7 → nosible-0.2.8}/src/nosible/__init__.py +0 -0
  11. {nosible-0.2.7 → nosible-0.2.8}/src/nosible/classes/result.py +0 -0
  12. {nosible-0.2.7 → nosible-0.2.8}/src/nosible/classes/result_set.py +0 -0
  13. {nosible-0.2.7 → nosible-0.2.8}/src/nosible/classes/search.py +0 -0
  14. {nosible-0.2.7 → nosible-0.2.8}/src/nosible/classes/search_set.py +0 -0
  15. {nosible-0.2.7 → nosible-0.2.8}/src/nosible/classes/snippet.py +0 -0
  16. {nosible-0.2.7 → nosible-0.2.8}/src/nosible/classes/snippet_set.py +0 -0
  17. {nosible-0.2.7 → nosible-0.2.8}/src/nosible/classes/web_page.py +0 -0
  18. {nosible-0.2.7 → nosible-0.2.8}/src/nosible/utils/json_tools.py +0 -0
  19. {nosible-0.2.7 → nosible-0.2.8}/src/nosible.egg-info/SOURCES.txt +0 -0
  20. {nosible-0.2.7 → nosible-0.2.8}/src/nosible.egg-info/dependency_links.txt +0 -0
  21. {nosible-0.2.7 → nosible-0.2.8}/src/nosible.egg-info/requires.txt +0 -0
  22. {nosible-0.2.7 → nosible-0.2.8}/src/nosible.egg-info/top_level.txt +0 -0
  23. {nosible-0.2.7 → nosible-0.2.8}/tests/test_01_nosible.py +0 -0
  24. {nosible-0.2.7 → nosible-0.2.8}/tests/test_02_results.py +0 -0
  25. {nosible-0.2.7 → nosible-0.2.8}/tests/test_03_search_searchset.py +0 -0
  26. {nosible-0.2.7 → nosible-0.2.8}/tests/test_04_snippets.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nosible
3
- Version: 0.2.7
3
+ Version: 0.2.8
4
4
  Summary: Python client for the NOSIBLE Search API
5
5
  Home-page: https://github.com/NosibleAI/nosible
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.2.7"
3
+ version = "0.2.8"
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"
@@ -1745,7 +1745,7 @@ class Nosible:
1745
1745
  cpm_counter = 4.0
1746
1746
 
1747
1747
  # Preserve the order you care about:
1748
- for plan in ["test", "basic", "pro", "pro+", "bus", "bus+", "ent"]:
1748
+ for plan in ["test", "basic", "pro", "pro+", "bus", "bus+", "ent", "cons", "stup", "busn"]:
1749
1749
  name = display.get(plan, plan)
1750
1750
  if plan == user_plan:
1751
1751
  current_plan = " (Your current plan)"
@@ -51,6 +51,22 @@ PLAN_RATE_LIMITS = {
51
51
  "slow": [(60, 60), (1_500_000, 24 * 3600 * 30)],
52
52
  "fast": [(360, 60), (15_000_000, 24 * 3600 * 30)],
53
53
  },
54
+ "cons": {
55
+ "visit": [(60, 60), (3000, 24 * 3600 * 30)],
56
+ "slow": [(60, 60), (3000, 24 * 3600 * 30)],
57
+ "fast": [(120, 60), (30_000, 24 * 3600 * 30)],
58
+ },
59
+ "stup": {
60
+ "visit": [(60, 60), (30_000, 24 * 3600 * 30)],
61
+ "slow": [(60, 60), (30_000, 24 * 3600 * 30)],
62
+ "fast": [(360, 60), (300_000, 24 * 3600 * 30)],
63
+ },
64
+ # This plan is used for testing in the package
65
+ "busn": {
66
+ "visit": [(60, 60), (300_000, 24 * 3600 * 30)],
67
+ "slow": [(60, 60), (300_000, 24 * 3600 * 30)],
68
+ "fast": [(360, 60), (3_000_000, 24 * 3600 * 30)],
69
+ },
54
70
  }
55
71
 
56
72
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nosible
3
- Version: 0.2.7
3
+ Version: 0.2.8
4
4
  Summary: Python client for the NOSIBLE Search API
5
5
  Home-page: https://github.com/NosibleAI/nosible
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