Skip to main content

A powerful, yet straightforward library for managing and processing tasks concurrently.

Project description

ConcurrentTasking

ConcurrentTasking is a powerful, yet straightforward Python library for managing and processing tasks concurrently. Leveraging Python's asyncio library, it simplifies the queuing and asynchronous execution of tasks, providing real-time updates on their progress and outcomes.

Features

  • Efficient management of a task queue for concurrent processing.
  • Asynchronous execution of tasks with live updates on their status.
  • Supports any callable Python function for flexible task creation.
  • Detailed tracking of task statuses, from queued to completed or failed.

Installation

Install ConcurrentTasking using pip:

pip install ConcurrentTasking

Quick Start

Here's how to get up and running with ConcurrentTasking:

  1. Define a Task
from concurrent_tasking.models import Task

# Define an asynchronous function for your task
async def sample_task_function(arg1, arg2):
    # Task logic here
    return arg1 + arg2

# Create a task instance
task = Task(task_id="1", function=sample_task_function, args=[10, 20])
  1. Initialize the Task Manager and Add Tasks
from concurrent_tasking.task_manager import TaskManager

manager = TaskManager()

# Queue tasks for processing
await manager.add_task(task)
  1. Start Task Processing
# Begin processing queued tasks
await manager.process_tasks()

Contributing

Your contributions make ConcurrentTasking even better! Whether it's a feature request, bug report, or a pull request, we warmly welcome your input. Please feel free to open an issue or submit a PR.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ConcurrentTasking-0.2.0.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ConcurrentTasking-0.2.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file ConcurrentTasking-0.2.0.tar.gz.

File metadata

  • Download URL: ConcurrentTasking-0.2.0.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.13

File hashes

Hashes for ConcurrentTasking-0.2.0.tar.gz
Algorithm Hash digest
SHA256 cad298bdc7871da241ec97a4a6b33b09d1c8150af35740ae88cc3c43b79b4dfa
MD5 598bc59ac1071e90696d21b61726d45e
BLAKE2b-256 fdb47c6fb4664459f6fa2f3d08c50116cdac4c70e93f7327183e63225f272666

See more details on using hashes here.

File details

Details for the file ConcurrentTasking-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ConcurrentTasking-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0c22233408992805d23f24b5df64a33ef73c17c773d256be414eb64c5c800d47
MD5 ccaca349348c9e727241da3aa9e52bbc
BLAKE2b-256 f808c87625530638e5fd26466f4c2a557c8afc82c094356935a6c98e9503a84a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page