Skip to main content

A simple Python library for generating random data of various types, including strings, names, addresses, numbers, and more.

Project description

RandoMorph

The RandoMorph is a simple Python library designed for generating random data of various types, including strings, names, addresses, numbers, and more. This library is ideal for creating test data, mock-ups, or demonstration samples.

Table of Contents

Getting Started

Installation

Install using pypi

pip install randomorph

or

  • Clone the GitHub repository:
     git clone https://github.com/soyll/RandoMorph.git	
    
  • Navigate to directory:
     cd RandoMorph	
    
  • (Recommended) Create a virtual environment to manage Python packages for your project:
     python3 -m venv venv
    
  • Activate the virtual enviropment
    • On windows:
       .\venv\Scripts\activate
      
    • On linux or macOs:
       source venv/bin/activate
      
  • Install the required Python packages from requirements.txt:
     pip install -r requirments.txt
    

Usage

import RandoMorph

# later... ---> ???

Arguments

Argument Name Description Conditions Example
sample Examples of data that should be included in the file. Can include addresses, dates, email addresses, user IDs, and names. Multiple options can be specified in any order. Options: Address, Date, Email, User_id, Name. Multiple options can be used in different combinations. sample='Name' 'Email'
length The length of the table, i.e., the number of rows in the generated file. Limited to values less than 100. Integer 1<N<100. length=50
filename The name of the file and its extension in which the result will be saved. A string with a valid file extension (e.g., 'xlsx', 'png', 'json', 'csv'). filename='sample_data.xlsx'
output_path The path where the file will be saved. A string representing the directory path where the file should be saved. output_path='/path/to/save/'

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

RandoMorph-0.0.8.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

RandoMorph-0.0.8-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file RandoMorph-0.0.8.tar.gz.

File metadata

  • Download URL: RandoMorph-0.0.8.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for RandoMorph-0.0.8.tar.gz
Algorithm Hash digest
SHA256 4e0e35d4df35e4ffe30ad6b716cb539dd1ca7df81512fec8004e514cf596a0b7
MD5 f1f04d4ba0ce772afeeaca474e120799
BLAKE2b-256 85720be9660aa194337997e1f1c6ae1faf2951cf39235ad70b35534fce249633

See more details on using hashes here.

File details

Details for the file RandoMorph-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: RandoMorph-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for RandoMorph-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 dbd3a1da26ef3092bfbaa797cbab3eb50d858cdb0b2023430bc8f7cfc22d29d5
MD5 7e478721a08878eb4b33d1d50a3a0a50
BLAKE2b-256 d826702832cecc2ba58d6891977cb6a6d7c1723575c75c9b55d925f6a238f680

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page