As a backend project, ranaroussi/multitasking has picked up 233 stars on GitHub (Python). Non-blocking Python methods using decorators
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
MultiTasking: Non-blocking Python methods using decorators
|Python version| |PyPi version| |PyPi status| |PyPi downloads|
|CodeFactor| |Star this repo| |Follow me on twitter|
MultiTasking is a lightweight Python library that lets you convert
your Python methods into asynchronous, non-blocking methods simply by
using a decorator. Perfect for I/O-bound tasks, API calls, web scraping,
and any scenario where you want to run multiple operations concurrently
without the complexity of manual thread or process management.
✨ What’s New in v0.0.12
🎯 Full Type Hint Support: Complete type annotations for better
IDE support and code safety
📚 Enhanced Documentation: Comprehensive docstrings and inline
comments for better maintainability
🔧 Improved Error Handling: More robust exception handling with
specific error types
🚀 Better Performance: Optimized task creation and management
logic
@multitasking.task # <== this is all it takes! 🎉
def hello(count):
sleep_time = random.randint(1, 10) / 2
print(f"Hello {count} (sleeping for {sleep_time}s)")
time.sleep(sleep_time)
print(f"Goodbye {count} (slept for {sleep_time}s)")
if name == "main":
# Launch 10 concurrent tasks
for i in range(10):
hello(i + 1)
# Wait for all tasks to complete
multitasking.wait_for_tasks()
print("All tasks completed!")
Output:
.. code:: bash
$ python example.py
Hello 1 (sleeping for 0.5s)
Hello 2 (sleeping for 1.0s)
Hello 3 (sleeping for 5.0s)
Hello 4 (sleeping for 0.5s)
Hello 5 (sleeping for 2.5s)
Hello 6 (sleeping for 3.0s)
Hello 7 (sleeping for 0.5s)
Hello 8 (sleeping for 4.0s)
Hello 9 (sleeping for 3.0s)
Hello 10 (sleeping for 1.0s)
Goodbye 1 (slept for 0.5s)
Goodbye 4 (slept for 0.5s)
Goodbye 7 (slept for 0.5s)
Goodbye 2 (slept for 1.0s)
Goodbye 10 (slept for 1.0s)
Goodbye 5 (slept for 2.5s)
Goodbye 6 (slept for 3.0s)
Goodbye 9 (slept for 3.0s)
Goodbye 8 (slept for 4.0s)
Goodbye 3 (slept for 5.0s)
All tasks completed!
Environments: Works in Jupyter notebooks, scripts, web
applications
Frameworks: Compatible with Flask, Django, FastAPI, and other
Python frameworks
API Reference
Decorators
@multitasking.task - Convert function to asynchronous task
Configuration Functions
set_max_threads(count) - Set maximum concurrent tasks
set_engine(type) - Choose “thread” or “process” engine
createPool(name, threads, engine) - Create custom execution pool
Task Management
wait_for_tasks(sleep=0) - Wait for all tasks to complete
get_active_tasks() - Get list of running tasks
get_list_of_tasks() - Get list of all tasks
killall() - Emergency shutdown (force exit)
.. _pool-management-1:
Pool Management
getPool(name=None) - Get pool information
createPool(name, threads=None, engine=None) - Create new pool
Performance Benchmarks
Here’s a simple benchmark comparing synchronous vs asynchronous
execution:
.. code:: python
import multitasking
import time
import requests
Synchronous version
def sync_fetch():
start = time.time()
for i in range(10):
requests.get("https://httpbin.org/delay/1")
print(f"Synchronous: {time.time() - start:.2f}s")
def concurrent_fetch():
start = time.time()
for i in range(10):
async_fetch()
multitasking.wait_for_tasks()
print(f"Concurrent: {time.time() - start:.2f}s")
How active is development on ranaroussi/multitasking?
The most recent commit recorded on ranaroussi/multitasking was 6 months ago, based on the GitHub push timestamp. The repository has 47 forks — one of the better signals of community interest.
How does ranaroussi/multitasking compare to other Backend projects?
ranaroussi/multitasking is tracked by TopGit in the Backend category, with 233 GitHub stars and written in Python. Browse the Backend topic page on TopGit to compare it against similar projects by stars and activity.
How many stars does ranaroussi/multitasking have?
ranaroussi/multitasking has 233 GitHub stars — refresh the page for the live number, or check github.com/ranaroussi/multitasking. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
Is ranaroussi/multitasking open source?
Yes — ranaroussi/multitasking ships under the Apache-2.0 license, which makes its source code freely readable (and, depending on license terms, forkable and reusable). Source: github.com/ranaroussi/multitasking.
What is ranaroussi/multitasking?
ranaroussi/multitasking (ranaroussi/multitasking) is a Python project on GitHub. From the project's own README: Non-blocking Python methods using decorators
Where do I read more about ranaroussi/multitasking?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/ranaroussi/multitasking is the definitive source.
Read full README in the tab above.
Still deciding about multitasking?
One click hands the question to an AI along with this page — see what it says about multitasking.