Skip to main content

faker-pyspark is a PySpark DataFrame and Schema provider for the Faker python package

Project description

PySpark provider for Faker

Python package

faker-pyspark is a PySpark DataFrame and Schema (StructType) provider for the Faker Python package.

Description

faker-pyspark provides PySpark based fake data for testing purposes. The definition of "fake" in this context really means "random," as the data may look real. However, I make no claims about accuracy, so do not use this as real data!

Installation

Install with pip:

pip install faker-pyspark

Add as a provider to your Faker instance:

from faker import Faker
from faker_pyspark import PySparkProvider
fake.add_provider(PySparkProvider)

If you already use faker, you probably know the conventional use is:

from faker import Faker
fake = Faker()

PySpark DataFrame and Schema (StructType)

>>> df = fake.pyspark_dataframe()

>>> schema = fake.pyspark_schema()

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

faker_pyspark-0.2.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

faker_pyspark-0.2.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file faker_pyspark-0.2.0.tar.gz.

File metadata

  • Download URL: faker_pyspark-0.2.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.4 Darwin/22.5.0

File hashes

Hashes for faker_pyspark-0.2.0.tar.gz
Algorithm Hash digest
SHA256 70f85a8844733a270e6128bd6eb39aa570d447cc32429348a634cb5daa379658
MD5 0151425f5724f79b2d36d35d198d06eb
BLAKE2b-256 185184cf7c7e0a3dafd9726de8912b4e68f9711b33b40617d37a3c4cfa742b98

See more details on using hashes here.

File details

Details for the file faker_pyspark-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: faker_pyspark-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.4 Darwin/22.5.0

File hashes

Hashes for faker_pyspark-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6f39651d8a71afb6ab6d8c7455bd4a1d1249bff37557059a3b61556479b84ee7
MD5 d9173c26e96cd08ae9bf89db8afc6d8d
BLAKE2b-256 18ededf13308585888f045188f3486c0d91bea55505ca1c7efe37b70f6e29c55

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