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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for openfaker-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37b89e69eb942571747ba69e4a8cad4f5206ab59627c569083df859d3d041390 |
|
MD5 | c131dc54d973da81dc13ce7874d0f254 |
|
BLAKE2b-256 | d47c8e9c1afd1795e7fd3a9c970aee4d986e5582c86e8a3b72b0192360eae2f6 |