Skip to main content

A project to generate dummy files

Project description

phantom_file_forge

generate dummy data for various MIME types for testing purposes

Usage

The generate_dummy_files.py script allows you to generate dummy files for various MIME types.

Arguments

  • list of MIME types to generate files for.
    Example: text/plain image/png
  • --output-dir or -o: Directory where the generated files will be saved.
    Example: --output-dir ./dummy_files
  • --no-files: Number of files to generate for each MIME type.
    Example: --no-files 5
  • --min-gb: Minimum Size (in giga bytes) of each generated file.
    Example: --min-gb 0.006
  • --max-gb: Maximum Size (in giga bytes) of each generated file.
    Example: --max-gb 0.008

Example

phantom_file_forge image/png image/jpeg application/pdf application/vnd.openxmlformats-officedocument.spreadsheetml.sheet application/vnd.openxmlformats-officedocument.presentationml.presentation application/vnd.openxmlformats-officedocument.wordprocessingml.document --no-files 80 -o ./generated_data_set

This command generates 80 dummy files for each specified MIME type, each with file size ranging between 6MB and 8MB and saves them in the ./generated_data_set directory.

Refer to MDN Common MIME types and update the CUSTOM_MIME_HANDLERS list in the script for new MIME types as needed.

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

phantom_file_forge-0.1.5.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

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

phantom_file_forge-0.1.5-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

Details for the file phantom_file_forge-0.1.5.tar.gz.

File metadata

  • Download URL: phantom_file_forge-0.1.5.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for phantom_file_forge-0.1.5.tar.gz
Algorithm Hash digest
SHA256 e6306be8c9f5ca1c96a0538b9a1be03736da7f51d105a06ebeddd3812c8beba0
MD5 5c7b38fbb0b4c59ff238021df83fb392
BLAKE2b-256 7bcf1ea6366992a1e06dc07db6c074a2ffffb3f2e0548db59b6e5a9fd856422a

See more details on using hashes here.

File details

Details for the file phantom_file_forge-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for phantom_file_forge-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 6b7113ed0ced68b8b21908c7e0db4ce28cd7a28edadaecac239cb7a03d9de5ec
MD5 45c00209f6a6b6d8485ac6946a75d420
BLAKE2b-256 f300493dcd9ca711a251a8b77aabd198957ff9012012c38ee6dc079e170705de

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