Skip to main content

Data Factory aka 'dfac'

A simple to use python app for generating data of different types and configurations. Can be run as a module or used as library.

Usage Instruction as app

Usage: dfac.py [OPTION...] [OUTPUT]... Datafactory generates random string of data for testing and other purposes.

Examples:

dfac.py -t a -v n

dfac.py -t s -v u -x [filename]

DESCRIPTION Datafactory generates random string of data for testing and other purposes.

OPTIONS -t, --datatype Option for the data type to be generated. Below are the available datatypes.

Data Types
    s, string 
        print out string as data type
    a, array 
        print out array as data type 

-v, --valuetype Option for the type of value to be generated. Below are the available value type options.

Value Types
    For String data type
        n, alphanumeric 
            print out string containing random values of latin alphabet and numbers
        a, alphabet
            print out random string alphabet in a mix of uppercase and lowercase.
        u, upper
            print out random string of alphabet in uppercase.
        l, lower
            print out random string of alphabet in lowercase.
        y, alphasymbolic
            print out random mix of alphabet and symbols.

    For Array data type
        n, alphanumeric
            print out array containing strings with random alphabets and numbers.
        a, alphabet
            print out array containing strings with random alphabets uppercase and lowercase.
        u, upper
            print out array containing strings with random alphabets uppercase.
        l, lower
            print out array containing strings with random alphabets containing lowercase.
        y, alphasymbolic
            print out array containing strings with random alphabets and symbols.
        i, integer
            print out array containing strings with random integer.
        d, decimal
            print out array containing strings with random decimal numbers.
        o, symbolic
            print out array containing string with random symbols.

-0, --length Option to print out length of string or array.

-L, --low (For Array types) Option to set minimum length of value.

-H, --high (For Array types) Option to set maximum length of value.

-x, --file Print out generated value to file, if no name is provided output.txt is used.

-h, --help Print this help text.

Usage Instruction as library

Examples:

from core.StringGenerator import StringGenerator

object=StringGenerator(7,'AlphaNumeric')

object.generate()

Example Output:

hDCyDM6

Class Available:
    a. StringGenerator(length, type) [from core.StringGenerator]
    b .ArrayGenerator(length,type, low, high) [from core.ArrayGenerator]
        low = lowest length of the data generated
        high = highest length of the data generated  

Types available for ArrayGenerator: 'AlphaNumeric', 'Alphabet', 'Alphabet_Upper', 'Alphabet_Lower', 'AlphaSymbolic', 'Integer', 'Decimal', 'Symbolic'

Types available for StringGenerator: 'AlphaNumeric', 'Alphabet', 'Alphabet_Upper', 'Alphabet_Lower', 'AlphaSymbolic'

Metadata

Release files for dfac 1.0.4

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

Source distribution (sdist)

Source distribution for dfac 1.0.4
File Size Uploaded
dfac-1.0.4.tar.gz 7.0 kB Details

Built distribution (wheel)

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

Total release size: 18.4 kB

Release files / dfac-1.0.4.tar.gz

Download URL dfac-1.0.4.tar.gz
Size 7.0 kB
Tags Source
SHA-256 checksum
How to use checksums
32e8bd849d0cf34bcca635f20fcd21d83d25308a560c2c392adf8246c7e0611f
BLAKE2b-256 checksum
How to use checksums
d3a677fbf2d30d6545a42145bfaa77a40ec041719e6a0d9766fd4ec4cab8688e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.5

Release files / dfac-1.0.4-py3-none-any.whl

Download URL dfac-1.0.4-py3-none-any.whl
Size 11.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
05a098125e246a439a5de6f6e167fcfb9a8f80feada8a5a22752b0fcfbca0c49
BLAKE2b-256 checksum
How to use checksums
2267e1099f4a87bbdca12619e23b849d3c052bac6baecee467dcc38d9567a8b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.5

Release history Release notifications | RSS feed

This release

1.0.4 This release

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.0

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