This project has been archived by its maintainers, and is no longer receiving any updates.
Opus
Opus is a Python package for efficient task execution, designed to handle parallel and distributed workloads seamlessly. Whether you need to execute tasks asynchronously, schedule workflows, or manage dependencies, Opus provides a simple yet powerful interface.
Features
- Asynchronous Task Execution: Run tasks concurrently using Python's async capabilities.
- Parallel Processing: Utilize multi-threading and multi-processing for performance.
- Simple API: Easy-to-use interface for defining and executing tasks.
Installation
You can install Opus using pip:
pip install opus
Quick Start
Define and Execute a Task
from opus import Task
# Define a simple task
def my_task(name):
print(f"Hello, {name}!")
# Create and execute the task
task = Task(my_task, args=("World",))
task.run()
Using Async Tasks
import asyncio
from opus import AsyncTask
async def async_task(name):
await asyncio.sleep(1)
print(f"Async Hello, {name}!")
# Run an async task
task = AsyncTask(async_task, args=("Async World",))
asyncio.run(task.run())
Contributing
Contributions is welcomed! Please open an issue or submit a pull request on GitHub.
License
Opus is licensed under the MIT License.
For more details, visit our GitHub repository.
Metadata
Release files for opus45 0.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| opus45-0.0.0.tar.gz | 1.9 kB | Without provenance | Details for opus45-0.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| opus45-0.0.0-py3-none-any.whl | Python 3 | none | any | Details for opus45-0.0.0-py3-none-any.whl |
Total release size: 3.7 kB
Release files / opus45-0.0.0.tar.gz
| Download URL | opus45-0.0.0.tar.gz |
|---|---|
| Size | 1.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d456a2e7ef54e76d2fa3859678f23085c0afaa277169b165a0f98aac5bce08c7
|
|
BLAKE2b-256 checksum How to use checksums |
14dbf1403d8ffeb07fb8901f43e390886034a5a98cdcad1d89ca734a2af8f1c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.7
|
Release files / opus45-0.0.0-py3-none-any.whl
| Download URL | opus45-0.0.0-py3-none-any.whl |
|---|---|
| Size | 1.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b32d71a8845143b3e4b824c359209dca6a9a99a5ae19344fd2a63a1f231133f6
|
|
BLAKE2b-256 checksum How to use checksums |
101b1a16f08e72336fd1a32705166755b46aa95b0a91e45212936a1a434566ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.7
|
Security for opus45 0.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.