Skip to main content
Archived

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.

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)

Source distribution for opus45 0.0.0
File Size Uploaded
opus45-0.0.0.tar.gz 1.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for opus45 0.0.0
File Interpreter ABI Platform
opus45-0.0.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page