Skip to main content

Generate fake data with OpenAI's GPT-3 API.

Project description

OpenFaker

OpenFaker is a Python package that utilizes OpenAI's GPT series model to generate fake data.

This new project is rapidly underway, and we welcome any issues or pull requests.

Basic Usage

Install with pip:

pip install openfaker

Use faker.Faker() to create and initialize a faker generator, which can generate data by accessing properties named after the type of data you want.

from openfaker import Faker
from openfaker.utils import setup_openai

setup_openai('<api-key>')  # Get your API key from https://platform.openai.com/account/api-keys

faker = Faker()
faker.name()
# 'John Doe'

faker.address(2)
# ['426 Jordy Lodge', 'Cartwrightshire, SC 88120-6700']

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

openfaker-0.0.1.tar.gz (4.6 kB view hashes)

Uploaded Source

Built Distribution

openfaker-0.0.1-py3-none-any.whl (5.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page