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

Use the phantom_file_forge command-line tool 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.6.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.6-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: phantom_file_forge-0.1.6.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.6.tar.gz
Algorithm Hash digest
SHA256 c9781f9b50f3059627e7d458badf490e9ce92276ab5f4cb7cc8bc84bc78cfad0
MD5 56d2ef6114296aa656b27ecb7741c159
BLAKE2b-256 885b8b69150f4c4db358bde04cc2aaabc744e2711663d9e20c47323840f7a090

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for phantom_file_forge-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 5e01e6438eb2c0634b501788a3ba326eae43e7e3fef593a4217664ba8145e95b
MD5 6f179cfe7364122c670b3f04ec0cb82e
BLAKE2b-256 d9c1f1a4a3c8038fe99a37213adc8cfb11ad05a41ac5b3fff71baea3a7ef87f6

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