Skip to main content

Generate random text files

Project description

Random File Generator

This Python package allows you to generate multiple random text files concurrently.

Installation

You can install the package using pip:

pip install random-file-generator

## generate_files_parallel

Generates random text files concurrently using multiprocessing.

### Parameters

- `number_of_files`: Number of files to generate.
- `output_folder`: Output folder path.
- `min_file_size`: Minimum size of the files (in bytes).
- `max_file_size`: Maximum size of the files (in bytes).

## Example

```python
import random_file_generator

number_of_files = 5
output_folder = 'random_files'
min_file_size = 1024  # 1 KB
max_file_size = 1048576  # 1 MB

# Generate random files concurrently
random_file_generator.generate_files_parallel(number_of_files, output_folder, min_file_size, max_file_size)

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

random_file_generator-0.0.3.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

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

random_file_generator-0.0.3-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file random_file_generator-0.0.3.tar.gz.

File metadata

  • Download URL: random_file_generator-0.0.3.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for random_file_generator-0.0.3.tar.gz
Algorithm Hash digest
SHA256 f0fc8e34c958a93bd2e4be41adc0fd5cee776339ebc34ef90432ce3b6f54132b
MD5 09a240b742daa2995c97ff2de51df61e
BLAKE2b-256 b5d660ca97c0746214a94639620496d8517274f5a0d79a9eeae016073028846c

See more details on using hashes here.

File details

Details for the file random_file_generator-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for random_file_generator-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e77e044156bbb6ac50a6b03d6ecd861ab16c1d7027751efd1f3783dd19c9d855
MD5 022456a3daf17531f5a2893e0f0bdfb1
BLAKE2b-256 35654b33ae8c2ef5929e34560462655bee5c9fb5ae1196dfb13a88052d9f7bfe

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