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
- On windows:
- 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.6.tar.gz
(3.2 kB
view details)
Built Distribution
File details
Details for the file RandoMorph-0.0.6.tar.gz
.
File metadata
- Download URL: RandoMorph-0.0.6.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed9ab8d3cabfbbe28ca36f5d21facd8cc5e112565d71cba8069976293f72d42c |
|
MD5 | 4ff1b80ef86675fcdbad8cbc0b69c62f |
|
BLAKE2b-256 | b4088a45f595cacd855fa1b29502b38c5a7dd8ec18e18a9a49118673ebe93cee |
File details
Details for the file RandoMorph-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: RandoMorph-0.0.6-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | f186b1c0d5c837badc39c3c5a802e05f7dff86791b8bdd12e3ead58631671108 |
|
MD5 | ff9c2d76ca4729b9ef3cc7f1c14cbd04 |
|
BLAKE2b-256 | 4492ba466f3ba2c9f0ed0434b6ecb04e4432258a3d0ce341c676aa5075c13bce |