nextpipe 0.3.3.dev0__tar.gz → 0.3.4.dev0__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 (77) hide show
  1. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/PKG-INFO +1 -1
  2. nextpipe-0.3.4.dev0/nextpipe/__about__.py +1 -0
  3. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/nextpipe/threads.py +10 -3
  4. nextpipe-0.3.3.dev0/nextpipe/__about__.py +0 -1
  5. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/.github/workflows/lint.yml +0 -0
  6. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/.github/workflows/release.yml +0 -0
  7. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/.github/workflows/test.yml +0 -0
  8. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/.gitignore +0 -0
  9. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/.markdownlint.jsonc +0 -0
  10. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/.nextmv/bump_requirements.sh +0 -0
  11. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/.prettierrc.yml +0 -0
  12. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/.readthedocs.yaml +0 -0
  13. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/LICENSE.md +0 -0
  14. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/README.md +0 -0
  15. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/RELEASE.md +0 -0
  16. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/docs/examples/basic-chained-workflow.md +0 -0
  17. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/docs/examples/complex-workflow-csv.md +0 -0
  18. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/docs/examples/complex-workflow.md +0 -0
  19. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/docs/examples/ensemble-workflow.md +0 -0
  20. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/docs/examples/fanout-workflow.md +0 -0
  21. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/docs/images/logo-180.png +0 -0
  22. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/docs/images/nextmv-favicon.svg +0 -0
  23. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/docs/images/routing-ortools-pyvroom-selected.png +0 -0
  24. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/docs/images/routing-selected.png +0 -0
  25. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/docs/index.md +0 -0
  26. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/docs/reference/config.md +0 -0
  27. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/docs/reference/decorators.md +0 -0
  28. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/docs/reference/flow.md +0 -0
  29. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/docs/reference/graph.md +0 -0
  30. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/docs/reference/schema.md +0 -0
  31. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/docs/reference/threads.md +0 -0
  32. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/docs/reference/uplink.md +0 -0
  33. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/docs/reference/utils.md +0 -0
  34. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/docs/requirements.txt +0 -0
  35. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/docs/tutorials/echo.md +0 -0
  36. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/docs/tutorials/getting-started.md +0 -0
  37. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/mkdocs.yml +0 -0
  38. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/nextpipe/__init__.py +0 -0
  39. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/nextpipe/config.py +0 -0
  40. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/nextpipe/decorators.py +0 -0
  41. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/nextpipe/flow.py +0 -0
  42. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/nextpipe/graph.py +0 -0
  43. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/nextpipe/schema.py +0 -0
  44. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/nextpipe/uplink.py +0 -0
  45. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/nextpipe/utils.py +0 -0
  46. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/nextpipe.code-workspace +0 -0
  47. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/pyproject.toml +0 -0
  48. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/tests/.gitignore +0 -0
  49. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/tests/README.md +0 -0
  50. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/tests/__init__.py +0 -0
  51. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/tests/apps/echo/.gitignore +0 -0
  52. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/tests/apps/echo/README.md +0 -0
  53. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/tests/apps/echo/app.yaml +0 -0
  54. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/tests/apps/echo/main.py +0 -0
  55. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/tests/apps/echo/requirements.txt +0 -0
  56. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/tests/deploy/app.yaml +0 -0
  57. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/tests/deploy/main.py +0 -0
  58. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/tests/deploy/requirements.txt +0 -0
  59. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/tests/pipelines/chain.json +0 -0
  60. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/tests/pipelines/chain.json.golden +0 -0
  61. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/tests/pipelines/chain.py +0 -0
  62. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/tests/pipelines/complex.json +0 -0
  63. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/tests/pipelines/complex.json.golden +0 -0
  64. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/tests/pipelines/complex.py +0 -0
  65. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/tests/pipelines/fail.py +0 -0
  66. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/tests/pipelines/foreach-2-pred.json +0 -0
  67. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/tests/pipelines/foreach-2-pred.json.golden +0 -0
  68. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/tests/pipelines/foreach-2-pred.py +0 -0
  69. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/tests/pipelines/foreach.json +0 -0
  70. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/tests/pipelines/foreach.json.golden +0 -0
  71. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/tests/pipelines/foreach.py +0 -0
  72. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/tests/test_graph.py +0 -0
  73. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/tests/test_integration.py +0 -0
  74. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/tests/test_schema.py +0 -0
  75. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/tests/test_threads.py +0 -0
  76. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/tests/test_uplink.py +0 -0
  77. {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/tests/test_version.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nextpipe
3
- Version: 0.3.3.dev0
3
+ Version: 0.3.4.dev0
4
4
  Summary: Framework for Decision Pipeline modeling and execution
5
5
  Project-URL: Homepage, https://www.nextmv.io
6
6
  Project-URL: Documentation, https://nextpipe.docs.nextmv.io/en/latest/
@@ -0,0 +1 @@
1
+ __version__ = "v0.3.4-dev.0"
@@ -13,11 +13,18 @@ Pool
13
13
  The module also provides a thread local storage variable for thread-specific data.
14
14
  """
15
15
 
16
- import multiprocessing
17
16
  import threading
18
17
  from collections.abc import Callable
19
18
  from typing import Any, Optional
20
19
 
20
+ DEFAULT_MAX_THREADS = 24
21
+ """
22
+ Default maximum number of threads for the thread pool. This is set to 24, to allow
23
+ parallel execution of sub-runs in the pipeline (as these are typically not CPU-bound). A
24
+ lower value more fit for the respective hardware is recommended when running many
25
+ CPU-bound steps.
26
+ """
27
+
21
28
  thread_local = threading.local()
22
29
  """Thread-local storage.
23
30
 
@@ -176,11 +183,11 @@ class Pool:
176
183
  ----------
177
184
  max_threads : int, optional
178
185
  Maximum number of threads to use, by default 0.
179
- If <= 0, uses the number of CPU cores.
186
+ If <= 0, DEFAULT_MAX_THREADS is used.
180
187
  """
181
188
 
182
189
  if max_threads <= 0:
183
- max_threads = multiprocessing.cpu_count()
190
+ max_threads = DEFAULT_MAX_THREADS
184
191
  self.max_threads = max_threads
185
192
  self.counter = 0 # Used to assign unique IDs to threads
186
193
  self.waiting = {}
@@ -1 +0,0 @@
1
- __version__ = "v0.3.3-dev.0"
File without changes
File without changes
File without changes
File without changes
File without changes