Skip to main content

PyPI version License: MIT Downloads

BulkFileOperationsManager

BulkFileOperationsManager is a Python tool designed to manage and execute bulk Create, Read, Update, and Delete (CRUD) operations on files, especially useful for handling large files that need to be processed in chunks to fit into memory constraints.

Installation

To install BulkFileOperationsManager, you can use pip:

pip install BulkFileOperationsManager

Usage

As a Python Module

BulkFileOperationsManager can be used as a Python module in your scripts for orchestrating bulk file operations.

Adding and Executing Tasks

from bulkfileoperationsmanager.bulk_operations_manager import BulkOperationsManager
from filechunkcrud import FileHandler

# Initialize the manager
manager = BulkOperationsManager()

# Example of adding and executing a create task
file_path = '/path/to/your/largefile.txt'
manager.add_task(("create", file_path, "Initial content"))
manager.run()

# Example of adding and executing a read task with handler
def read_handler(chunk):
    print(chunk)  # or process the chunk

manager.add_task(("read", file_path, 1024, read_handler))
manager.run()

# Example of adding and executing an update task with content generator
def additional_data_generator():
    yield "\nMore data...\n"

manager.add_task(("update", file_path, additional_data_generator()))
manager.run()

# Example of adding and executing a delete task
manager.add_task(("delete", file_path))
manager.run()

Features

  • Manage Bulk Operations: Efficiently manage and execute multiple file operations in a queue-based system.
  • Integration with FileChunkCRUD: Seamlessly integrates with FileChunkCRUD for handling large files in chunks.
  • Supports CRUD operations: Supports creating, reading, updating, and deleting files, especially suitable for large files.

Contributing

Contributions, issues, and feature requests are welcome! Feel free to check the issues page.

License

This project is licensed under the MIT License.

Metadata

Release files for BulkFileOperationsManager 0.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for BulkFileOperationsManager 0.0.7
File Size Uploaded Provenance Actions
BulkFileOperationsManager-0.0.7.tar.gz 3.8 kB Without provenance Details for BulkFileOperationsManager-0.0.7.tar.gz

Built distribution (wheel)

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

Total release size: 9.8 kB

Release files / BulkFileOperationsManager-0.0.7.tar.gz

Download URL BulkFileOperationsManager-0.0.7.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d1ccc68a6279d11db50d3c65cd1a46076bf20bc27c977e73b30876674b453382
BLAKE2b-256 checksum
How to use checksums
e0423ea2a0f8ca896d44effa2946d93a1ee892062437a12d174688e924768bed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.3

Release files / BulkFileOperationsManager-0.0.7-py3-none-any.whl

Download URL BulkFileOperationsManager-0.0.7-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
05c74b26708e3cd116cea6d6ecb4452c7c4074de848d9b5db7437ce78d046dcf
BLAKE2b-256 checksum
How to use checksums
2f3c91802b7775887617f28769ce2f7609d76029ac7a0d139c5dc1d0bacb439e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.3

Security for BulkFileOperationsManager 0.0.7

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.

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