pipe21 1.0.11__tar.gz → 1.1.0__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pipe21
3
- Version: 1.0.11
3
+ Version: 1.1.0
4
4
  Summary: simple functional pipes
5
5
  Home-page: https://github.com/tandav/pipe21
6
6
  Author: Alexander Rodionov
@@ -1,4 +1,3 @@
1
- import concurrent.futures
2
1
  import itertools
3
2
  import operator
4
3
  import re
@@ -6,7 +5,7 @@ import subprocess
6
5
  from functools import partial
7
6
  from functools import reduce
8
7
 
9
- __version__ = '1.0.11'
8
+ __version__ = '1.1.0'
10
9
 
11
10
 
12
11
  class B:
@@ -57,7 +56,7 @@ class Unique(B):
57
56
  yield item
58
57
 
59
58
 
60
- class ApplyInplace(B):
59
+ class Apply(B):
61
60
  def __ror__(self, x):
62
61
  self.f(x)
63
62
  return x
@@ -66,15 +65,3 @@ class ApplyInplace(B):
66
65
  class ForEach(B):
67
66
  def __ror__(self, x):
68
67
  for e in x: self.f(e)
69
-
70
-
71
- class ThreadMap(B):
72
- def __ror__(self, it):
73
- with concurrent.futures.ThreadPoolExecutor() as pool:
74
- return pool.map(self.f, it) | Pipe(tuple)
75
-
76
-
77
- class ProcessMap(B):
78
- def __ror__(self, it):
79
- with concurrent.futures.ProcessPoolExecutor() as pool:
80
- return pool.map(self.f, it) | Pipe(tuple)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pipe21
3
- Version: 1.0.11
3
+ Version: 1.1.0
4
4
  Summary: simple functional pipes
5
5
  Home-page: https://github.com/tandav/pipe21
6
6
  Author: Alexander Rodionov
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = pipe21
3
- version = 1.0.11
3
+ version = 1.1.0
4
4
  description = simple functional pipes
5
5
  long_description = file: README.md
6
6
  long_description_content_type = text/markdown
@@ -64,7 +64,7 @@ aggressive = 3
64
64
  jobs = 8
65
65
 
66
66
  [bumpver]
67
- current_version = "v1.0.11"
67
+ current_version = "v1.1.0"
68
68
  version_pattern = "vMAJOR.MINOR.PATCH"
69
69
  commit_message = "bump version {old_version} -> {new_version}"
70
70
  commit = True
@@ -162,6 +162,6 @@ def test_key_by_value_by():
162
162
  assert range(2) | ValueBy(str) | Pipe(list) == [(0, '0'), (1, '1')]
163
163
 
164
164
 
165
- def test_apply_inplace():
165
+ def test_apply():
166
166
  random.seed(42)
167
- assert list(range(5)) | ApplyInplace(random.shuffle) | Pipe(list) == [3, 1, 2, 4, 0]
167
+ assert range(5) | Pipe(list) | Apply(random.shuffle) == [3, 1, 2, 4, 0]
File without changes
File without changes