Skip to main content

A Synthetic Data Generation Python package

Project description

SYNTHETICFAKER

Introducing "Synthetic Faker", the new Python library for generating realistic and business-specific fake data. This library is an alternative to existing libraries like Faker, but with a focus on generating data that is specifically tailored to business use cases.

With Synthetic Faker, you can easily generate color, toys, songs, medical, entertainment, online shopping, merchandisem , etc related data. It also includes other data sets that are useful for testing and development such as phone numbers, emails, and more.

The library is easy to use and can be integrated into your existing projects with just a few lines of code. It also offers a wide range of customizable options, allowing you to control the type and format of the data generated.

Synthetic Faker is perfect for developers and testers who need to use fake data in their applications without using real data. It saves you time and effort by providing realistic and relevant fake data that can be used in testing and development environments.

You can find syntheticfaker on PyPi and on Github with the documentation for the usage. Give it a try and let us know what you think. We're constantly working to improve and add more features to the library.

Install

pip install syntheticfaker

Requirements

Create a yaml file in your local environment as given below.

example.yaml


metadata:
  columns: {"name": "varchar","surname": "varchar", "favorite_toy": "varchar"}

fields:
  name: first_name
  surname: last_name
  favorite_toy: m_toys

Above example of yaml file includes metadata and fields. Metadata includes the column names with its data type. Current version supports only Varchar and Integer data types. Fields includes the type of value you want to assign to you column. Each column from metadata dictionary needs to be mentioned in Fields layer. If a column is present in metadata and not in fields layer then it will create random values as per your data type i.e varchar or integer

from syntheticfaker import main

data=main.main_data('location/example.yaml', number_of_records_to_be_generated)
print(data.get_data())


from syntheticfaker import main

data=main.main_data('/Users/ninadmagdum/example.yaml', 5)
print(data.get_data())


Result Set

                                        favorite_toy surname     name
0             Hathaway Quattro 4 in A Row Board Game   Franco   Gerald
1                     Hathaway Deluxe Bocce Ball Set   Ramos   Dennis
2          Living Textiles Ava Cat Knitted Plush Toy    Gray     Sara
3   Pure Fun 36 Jumper Kids Trampoline with Handrail    Rios     Lisa
4                    GigaTent Kids 10 Play Parachute   Berry  Timothy

GITHUB Link

https://github.com/dominic12/synthetic_faker

Fields available

first_name
last_name
name
first_name_male
first_name_male
name_male
name_female
prefix
random_letter
language_code
harcoded_value
swid
random_int
random_number
barcode13 (13lengthbarcodenumber)
barcode8 (8lengthbarcodenumber)
boolean
float_number
decimal_number
address
building_number
city
country
country_code
postcode
street_address
street_name
ip_address
ipv4
ipv6
product_number
license_plate
http_method
uri
user_name
email
free_email
bban (basicbankaccount)
iban (internationalbankaccount)
credit_card_number
currency_symbol
amount
date
date_between
date_time_between
day_of_month
day_of_week
month_name
month
color
shoe_brand
shoe_name
electronics_brand
songs
restaurant_names
wdw_park_name
dlr_park_name
wdw_entertainment_name
d_characters
d_movies_series
d_toys
d_toys_collectibles
d_clothing
d_accessories
d_home
alcohol
diseases
pharma_company
pharma_medicines
pharma_drugs
m_womens_clothing
m_mens_clothing
m_baby_clothing
m_girls_clothing
m_boys_clothing
m_toys
m_home_luggage
m_dining
m_home_bath_shower
m_home_cleaning
m_home_bed
m_home_kitchen
m_mens_shoes
m_womens_shoes
m_handbags_wallets
m_jewelry

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

syntheticfaker-1.0.7.tar.gz (1.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

syntheticfaker-1.0.7-py3-none-any.whl (1.4 MB view details)

Uploaded Python 3

File details

Details for the file syntheticfaker-1.0.7.tar.gz.

File metadata

  • Download URL: syntheticfaker-1.0.7.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.12

File hashes

Hashes for syntheticfaker-1.0.7.tar.gz
Algorithm Hash digest
SHA256 1021f6a6b2e8dd9066f7db00c22e1d23a8b09cea753343c8a20c07a3e69e0231
MD5 f53b4530bc0e50b18cc4ad47c59667e1
BLAKE2b-256 0aa368a5fdf7f1dbc6394e7905ba0276137ce72332755aa2798f3f3b312ad1d8

See more details on using hashes here.

File details

Details for the file syntheticfaker-1.0.7-py3-none-any.whl.

File metadata

  • Download URL: syntheticfaker-1.0.7-py3-none-any.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.12

File hashes

Hashes for syntheticfaker-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 80b4da35cc34d7d169e2433430664cfe25115a7ebf6493c79782490673a4a21c
MD5 bb0d9e34e8db7cfb4bd9d5469173a730
BLAKE2b-256 a07e36bc14c7f89505ddc02f5aaf1f0599b8cdd224aa2f678a334cb3093001ad

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