concurra 1.0.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.
- concurra-1.0.0/LICENSE +21 -0
- concurra-1.0.0/PKG-INFO +82 -0
- concurra-1.0.0/README.md +64 -0
- concurra-1.0.0/concurra/concurra.egg-info/PKG-INFO +82 -0
- concurra-1.0.0/concurra/concurra.egg-info/SOURCES.txt +10 -0
- concurra-1.0.0/concurra/concurra.egg-info/dependency_links.txt +1 -0
- concurra-1.0.0/concurra/concurra.egg-info/requires.txt +6 -0
- concurra-1.0.0/concurra/concurra.egg-info/top_level.txt +1 -0
- concurra-1.0.0/pyproject.toml +3 -0
- concurra-1.0.0/setup.cfg +43 -0
- concurra-1.0.0/tests/test_core.py +0 -0
concurra-1.0.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Concurra
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
concurra-1.0.0/PKG-INFO
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: concurra
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: A simple parallel task execution library with error handling, progress tracking, and concurrency management.
|
|
5
|
+
Home-page: https://github.com/Concurra/concurra
|
|
6
|
+
Author: Sahil
|
|
7
|
+
Author-email: parallelexecute@gmail.com
|
|
8
|
+
License: MIT
|
|
9
|
+
Requires-Python: >=3.6
|
|
10
|
+
Description-Content-Type: text/markdown
|
|
11
|
+
License-File: LICENSE
|
|
12
|
+
Requires-Dist: tabulate>=0.8.10
|
|
13
|
+
Provides-Extra: dev
|
|
14
|
+
Requires-Dist: pytest>=6.0; extra == "dev"
|
|
15
|
+
Requires-Dist: flake8>=3.8; extra == "dev"
|
|
16
|
+
Requires-Dist: black>=21.0; extra == "dev"
|
|
17
|
+
Dynamic: license-file
|
|
18
|
+
|
|
19
|
+
# Concurra
|
|
20
|
+
|
|
21
|
+
Concurra is a Python library designed to execute tasks in parallel using a simple and efficient API. It provides a flexible solution for parallel task execution, supporting both threading and multiprocessing with an easy-to-use interface for task management, error handling, and progress monitoring.
|
|
22
|
+
|
|
23
|
+
## Features
|
|
24
|
+
- **Parallel Task Execution**: Execute multiple tasks concurrently using threads or processes.
|
|
25
|
+
- **Error Handling**: Log and handle errors during task execution.
|
|
26
|
+
- **Progress Tracking**: Track and log the progress of running tasks.
|
|
27
|
+
- **Fast Failure**: Option to stop task execution immediately upon failure of a task.
|
|
28
|
+
- **Multiprocessing Support**: Option to use multiprocessing for task execution.
|
|
29
|
+
- **Simple API**: Easy-to-use API for adding tasks and managing execution.
|
|
30
|
+
|
|
31
|
+
## Installation
|
|
32
|
+
|
|
33
|
+
You can install Concurra using pip:
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
pip install concurra
|
|
37
|
+
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Usage
|
|
41
|
+
|
|
42
|
+
Here’s a basic usage example:
|
|
43
|
+
|
|
44
|
+
```python
|
|
45
|
+
import concurra
|
|
46
|
+
|
|
47
|
+
# Create a Concurra Task Runner with max concurrency of 4
|
|
48
|
+
task_runner = concurra.Concurra(max_concurrency=4)
|
|
49
|
+
|
|
50
|
+
# Define a sample task
|
|
51
|
+
def sample_task(x):
|
|
52
|
+
return x * x
|
|
53
|
+
|
|
54
|
+
# Add tasks to the runner
|
|
55
|
+
task_runner.add_task(sample_task, 5)
|
|
56
|
+
task_runner.add_task(sample_task, 10)
|
|
57
|
+
|
|
58
|
+
# Execute tasks and get results
|
|
59
|
+
results = task_runner.run()
|
|
60
|
+
|
|
61
|
+
# Print task results
|
|
62
|
+
print(results)
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
## Key Classes and Methods
|
|
68
|
+
|
|
69
|
+
### Concurra
|
|
70
|
+
The main class responsible for managing parallel task execution.
|
|
71
|
+
|
|
72
|
+
add_task(task, *args, label=None, **kwargs): Add a task to be executed.
|
|
73
|
+
|
|
74
|
+
run(): Execute all tasks and retrieve results.
|
|
75
|
+
|
|
76
|
+
execute_in_background(): Start tasks in the background and continue main thread execution.
|
|
77
|
+
|
|
78
|
+
get_background_results(): Retrieve results after background execution.
|
|
79
|
+
|
|
80
|
+
verify(): Check if all tasks completed successfully and print a report.
|
|
81
|
+
|
|
82
|
+
abort(): Abort the execution of all tasks.
|
concurra-1.0.0/README.md
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# Concurra
|
|
2
|
+
|
|
3
|
+
Concurra is a Python library designed to execute tasks in parallel using a simple and efficient API. It provides a flexible solution for parallel task execution, supporting both threading and multiprocessing with an easy-to-use interface for task management, error handling, and progress monitoring.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
- **Parallel Task Execution**: Execute multiple tasks concurrently using threads or processes.
|
|
7
|
+
- **Error Handling**: Log and handle errors during task execution.
|
|
8
|
+
- **Progress Tracking**: Track and log the progress of running tasks.
|
|
9
|
+
- **Fast Failure**: Option to stop task execution immediately upon failure of a task.
|
|
10
|
+
- **Multiprocessing Support**: Option to use multiprocessing for task execution.
|
|
11
|
+
- **Simple API**: Easy-to-use API for adding tasks and managing execution.
|
|
12
|
+
|
|
13
|
+
## Installation
|
|
14
|
+
|
|
15
|
+
You can install Concurra using pip:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
pip install concurra
|
|
19
|
+
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Usage
|
|
23
|
+
|
|
24
|
+
Here’s a basic usage example:
|
|
25
|
+
|
|
26
|
+
```python
|
|
27
|
+
import concurra
|
|
28
|
+
|
|
29
|
+
# Create a Concurra Task Runner with max concurrency of 4
|
|
30
|
+
task_runner = concurra.Concurra(max_concurrency=4)
|
|
31
|
+
|
|
32
|
+
# Define a sample task
|
|
33
|
+
def sample_task(x):
|
|
34
|
+
return x * x
|
|
35
|
+
|
|
36
|
+
# Add tasks to the runner
|
|
37
|
+
task_runner.add_task(sample_task, 5)
|
|
38
|
+
task_runner.add_task(sample_task, 10)
|
|
39
|
+
|
|
40
|
+
# Execute tasks and get results
|
|
41
|
+
results = task_runner.run()
|
|
42
|
+
|
|
43
|
+
# Print task results
|
|
44
|
+
print(results)
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## Key Classes and Methods
|
|
50
|
+
|
|
51
|
+
### Concurra
|
|
52
|
+
The main class responsible for managing parallel task execution.
|
|
53
|
+
|
|
54
|
+
add_task(task, *args, label=None, **kwargs): Add a task to be executed.
|
|
55
|
+
|
|
56
|
+
run(): Execute all tasks and retrieve results.
|
|
57
|
+
|
|
58
|
+
execute_in_background(): Start tasks in the background and continue main thread execution.
|
|
59
|
+
|
|
60
|
+
get_background_results(): Retrieve results after background execution.
|
|
61
|
+
|
|
62
|
+
verify(): Check if all tasks completed successfully and print a report.
|
|
63
|
+
|
|
64
|
+
abort(): Abort the execution of all tasks.
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: concurra
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: A simple parallel task execution library with error handling, progress tracking, and concurrency management.
|
|
5
|
+
Home-page: https://github.com/Concurra/concurra
|
|
6
|
+
Author: Sahil
|
|
7
|
+
Author-email: parallelexecute@gmail.com
|
|
8
|
+
License: MIT
|
|
9
|
+
Requires-Python: >=3.6
|
|
10
|
+
Description-Content-Type: text/markdown
|
|
11
|
+
License-File: LICENSE
|
|
12
|
+
Requires-Dist: tabulate>=0.8.10
|
|
13
|
+
Provides-Extra: dev
|
|
14
|
+
Requires-Dist: pytest>=6.0; extra == "dev"
|
|
15
|
+
Requires-Dist: flake8>=3.8; extra == "dev"
|
|
16
|
+
Requires-Dist: black>=21.0; extra == "dev"
|
|
17
|
+
Dynamic: license-file
|
|
18
|
+
|
|
19
|
+
# Concurra
|
|
20
|
+
|
|
21
|
+
Concurra is a Python library designed to execute tasks in parallel using a simple and efficient API. It provides a flexible solution for parallel task execution, supporting both threading and multiprocessing with an easy-to-use interface for task management, error handling, and progress monitoring.
|
|
22
|
+
|
|
23
|
+
## Features
|
|
24
|
+
- **Parallel Task Execution**: Execute multiple tasks concurrently using threads or processes.
|
|
25
|
+
- **Error Handling**: Log and handle errors during task execution.
|
|
26
|
+
- **Progress Tracking**: Track and log the progress of running tasks.
|
|
27
|
+
- **Fast Failure**: Option to stop task execution immediately upon failure of a task.
|
|
28
|
+
- **Multiprocessing Support**: Option to use multiprocessing for task execution.
|
|
29
|
+
- **Simple API**: Easy-to-use API for adding tasks and managing execution.
|
|
30
|
+
|
|
31
|
+
## Installation
|
|
32
|
+
|
|
33
|
+
You can install Concurra using pip:
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
pip install concurra
|
|
37
|
+
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Usage
|
|
41
|
+
|
|
42
|
+
Here’s a basic usage example:
|
|
43
|
+
|
|
44
|
+
```python
|
|
45
|
+
import concurra
|
|
46
|
+
|
|
47
|
+
# Create a Concurra Task Runner with max concurrency of 4
|
|
48
|
+
task_runner = concurra.Concurra(max_concurrency=4)
|
|
49
|
+
|
|
50
|
+
# Define a sample task
|
|
51
|
+
def sample_task(x):
|
|
52
|
+
return x * x
|
|
53
|
+
|
|
54
|
+
# Add tasks to the runner
|
|
55
|
+
task_runner.add_task(sample_task, 5)
|
|
56
|
+
task_runner.add_task(sample_task, 10)
|
|
57
|
+
|
|
58
|
+
# Execute tasks and get results
|
|
59
|
+
results = task_runner.run()
|
|
60
|
+
|
|
61
|
+
# Print task results
|
|
62
|
+
print(results)
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
## Key Classes and Methods
|
|
68
|
+
|
|
69
|
+
### Concurra
|
|
70
|
+
The main class responsible for managing parallel task execution.
|
|
71
|
+
|
|
72
|
+
add_task(task, *args, label=None, **kwargs): Add a task to be executed.
|
|
73
|
+
|
|
74
|
+
run(): Execute all tasks and retrieve results.
|
|
75
|
+
|
|
76
|
+
execute_in_background(): Start tasks in the background and continue main thread execution.
|
|
77
|
+
|
|
78
|
+
get_background_results(): Retrieve results after background execution.
|
|
79
|
+
|
|
80
|
+
verify(): Check if all tasks completed successfully and print a report.
|
|
81
|
+
|
|
82
|
+
abort(): Abort the execution of all tasks.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
LICENSE
|
|
2
|
+
README.md
|
|
3
|
+
pyproject.toml
|
|
4
|
+
setup.cfg
|
|
5
|
+
concurra/concurra.egg-info/PKG-INFO
|
|
6
|
+
concurra/concurra.egg-info/SOURCES.txt
|
|
7
|
+
concurra/concurra.egg-info/dependency_links.txt
|
|
8
|
+
concurra/concurra.egg-info/requires.txt
|
|
9
|
+
concurra/concurra.egg-info/top_level.txt
|
|
10
|
+
tests/test_core.py
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
concurra-1.0.0/setup.cfg
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
[metadata]
|
|
2
|
+
name = concurra
|
|
3
|
+
version = 1.0.0
|
|
4
|
+
description = A simple parallel task execution library with error handling, progress tracking, and concurrency management.
|
|
5
|
+
long_description = file: README.md
|
|
6
|
+
long_description_content_type = text/markdown
|
|
7
|
+
author = Sahil
|
|
8
|
+
author_email = parallelexecute@gmail.com
|
|
9
|
+
url = https://github.com/Concurra/concurra
|
|
10
|
+
license = MIT
|
|
11
|
+
|
|
12
|
+
[options]
|
|
13
|
+
packages = find:
|
|
14
|
+
python_requires = >=3.6
|
|
15
|
+
install_requires =
|
|
16
|
+
tabulate>=0.8.10
|
|
17
|
+
|
|
18
|
+
[options.extras_require]
|
|
19
|
+
dev =
|
|
20
|
+
pytest>=6.0
|
|
21
|
+
flake8>=3.8
|
|
22
|
+
black>=21.0
|
|
23
|
+
|
|
24
|
+
[options.packages.find]
|
|
25
|
+
where = concurra
|
|
26
|
+
|
|
27
|
+
[coverage:run]
|
|
28
|
+
branch = True
|
|
29
|
+
|
|
30
|
+
[coverage:report]
|
|
31
|
+
show_missing = True
|
|
32
|
+
skip_covered = True
|
|
33
|
+
|
|
34
|
+
[coverage:html]
|
|
35
|
+
directory = coverage_html_report
|
|
36
|
+
|
|
37
|
+
[tool:pytest]
|
|
38
|
+
addopts = --maxfail=1 --disable-warnings -v
|
|
39
|
+
|
|
40
|
+
[egg_info]
|
|
41
|
+
tag_build =
|
|
42
|
+
tag_date = 0
|
|
43
|
+
|
|
File without changes
|