Skip to main content

PySpark provider for Faker

Python package CodeQL

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 = Faker()
fake.add_provider(PySparkProvider)

PySpark DataFrame, Schema and more

>>> df           = fake.pyspark_dataframe()
>>> schema       = fake.pyspark_schema()
>>> df_updated   = fake.pyspark_update_dataframe(df)
>>> column_names = fake.pyspark_column_names()
>>> data         = fake.pyspark_data_dict_using_schema(schema)
>>> data         = fake.pyspark_data_dict()

CLI faker

$ faker pyspark_schema       -i faker_pyspark
$ faker pyspark_dataframe    -i faker_pyspark
$ faker pyspark_schema       -i faker_pyspark
$ faker pyspark_column_names -i faker_pyspark
$ faker pyspark_data_dict    -i faker_pyspark

Metadata

Release files for faker-pyspark 0.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for faker-pyspark 0.8.0
File Size Uploaded Provenance
faker_pyspark-0.8.0.tar.gz 3.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for faker-pyspark 0.8.0
File Interpreter ABI Platform
faker_pyspark-0.8.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.2 kB

Release files / faker_pyspark-0.8.0.tar.gz

Download URL faker_pyspark-0.8.0.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f47a57a9ece5706a1feb3983a6eec5212ee9ca1f46d41728c38bad07b1078f46
BLAKE2b-256 checksum
How to use checksums
adf60e9bc3b39117a6df5db077a97535ea0a1114090a2d6b2cc4b77f809eb70b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.11.4 Darwin/22.5.0

Release files / faker_pyspark-0.8.0-py3-none-any.whl

Download URL faker_pyspark-0.8.0-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d324135e4148cba30f4bca0518e996da8a9893eb49e45b6c343b82a12f0e3d5f
BLAKE2b-256 checksum
How to use checksums
f2f2e27f4b5fddc60f47e64193661672bfde206be92d010b5050a33b3154df0b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.11.4 Darwin/22.5.0

Security for faker-pyspark 0.8.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page