Helper methods for generating synthetic data for testing and development.
Project description
synthetic-data-generators
Introduction
The purpose of this package is to provide a set of tools for generating synthetic data for various use cases. The package includes a variety of data generators, including random number generators, text generators, image generators, and time series generators. The package is designed to be easy to use and flexible, allowing users to customize the generated data to meet their specific needs.
Key URLs
For reference, these URL's are used:
| Type | Source | URL |
|---|---|---|
| Git Repo | GitHub | https://github.com/data-science-extensions/synthetic-data-generators |
| Python Package | PyPI | https://pypi.org/project/synthetic-data-generators |
| Package Docs | Pages | https://data-science-extensions.com/synthetic-data-generators/ |
Installation
You can install and use this package multiple ways by using pip, pipenv, or poetry.
Using pip:
-
In your terminal, run:
python3 -m pip install --upgrade pip python3 -m pip install synthetic-data-generators
-
Or, in your
requirements.txtfile, add:synthetic-data-generators
Then run:
python3 -m pip install --upgrade pip python3 -m pip install --requirement=requirements.txt
Using pipenv:
-
Install using environment variables:
In your
Pipfilefile, add:[[source]] url = "https://pypi.org/simple" verify_ssl = false name = "pypi" [packages] synthetic-data-generators = "*"
Then run:
python3 -m pip install pipenv python3 -m pipenv install --verbose --skip-lock --categories=root index=pypi synthetic-data-generators
-
Or, in your
requirements.txtfile, add:synthetic-data-generators
Then run:
python3 -m run pipenv install --verbose --skip-lock --requirements=requirements.txt
-
Or just run this:
python3 -m pipenv install --verbose --skip-lock synthetic-data-generators
Using poetry:
-
In your
pyproject.tomlfile, add:[project] dependencies = [ synthetic-data-generators = "*", ]
Then run:
poetry install -
Or just run this:
poetry add synthetic-data-generators poetry install poetry sync
Using uv:
-
In your
pyproject.tomlfile, add:[project] dependencies = [ synthetic-data-generators = "*", ]
Then run:
uv sync -
Or just run this:
uv add synthetic-data-generators uv sync
Contribution
Contribution is always welcome.
-
Clone your forked/branched repo.
-
Build your environment:
-
With
pipenvon Windows:if (-not (Test-Path .venv)) {mkdir .venv} python -m pipenv install --requirements requirements.txt --requirements requirements-dev.txt --skip-lock python -m poetry run pre-commit install python -m poetry run pre-commit autoupdate python -m poetry shell
-
With
pipenvon Linux:mkdir .venv python3 -m pipenv install --requirements requirements.txt --requirements requirements-dev.txt --skip-lock python3 -m poetry run pre-commit install python3 -m poetry run pre-commit autoupdate python3 -m poetry shell
-
With
poetryon Windows:python -m pip install --upgrade pip python -m pip install poetry python -m poetry config virtualenvs.create true python -m poetry config virtualenvs.in-project true python -m poetry init python -m poetry lock python -m poetry install --no-interaction --with dev,docs,test python -m poetry run pre-commit install python -m poetry run pre-commit autoupdate python -m poetry shell
-
With
poetryon Linux:python3 -m pip install --upgrade pip python3 -m pip install poetry python3 -m poetry config virtualenvs.create true python3 -m poetry config virtualenvs.in-project true python3 -m poetry init python3 -m poetry lock python3 -m poetry install --no-interaction --with dev,docs,test python3 -m poetry run pre-commit install python3 -m poetry run pre-commit autoupdate python3 -m poetry shell
-
With
uvon Windows:python -m pip install --upgrade pip python -m pip install uv python -m uv sync --all-groups python -m uv run pre-commit install python -m uv run pre-commit autoupdate
-
With
uvon Linux:python3 -m pip install --upgrade pip python3 -m pip install uv python3 -m uv sync --all-groups python3 -m uv run pre-commit install python3 -m uv run pre-commit autoupdate
-
-
Start contributing.
-
When you're happy with the changes, raise a Pull Request to merge with the main branch again.
Build and Test
To ensure that the package is working as expected, please ensure that:
- You write your code as per PEP8 requirements.
- You write a UnitTest for each function/feature you include.
- The CodeCoverage is 100%.
- All UnitTests are passing.
- MyPy is passing 100%.
Testing
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file synthetic_data_generators-1.3.0.tar.gz.
File metadata
- Download URL: synthetic_data_generators-1.3.0.tar.gz
- Upload date:
- Size: 14.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e4c4d1c5c973e782f57cc8a37efe0cbac2d4d778b7415d90ae568308471780cf
|
|
| MD5 |
98482ac667246432fc2c37bdf3725453
|
|
| BLAKE2b-256 |
b390b9d270153450e16749c3a800652610c0daf817da5f9999c835699ca7e50b
|
File details
Details for the file synthetic_data_generators-1.3.0-py3-none-any.whl.
File metadata
- Download URL: synthetic_data_generators-1.3.0-py3-none-any.whl
- Upload date:
- Size: 14.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a3da1848bb560c054dc12f755644c411ec30d9861b08e9cb51db4669ecd54e91
|
|
| MD5 |
00e6493642b06085a40c9e0d8473d408
|
|
| BLAKE2b-256 |
2998c9708cc55ee19fb8aacba78c069d03e1a40c7722e445ee89979f0f4ad311
|