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 details)
Built Distribution
File details
Details for the file openfaker-0.0.1.tar.gz
.
File metadata
- Download URL: openfaker-0.0.1.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc9cd552cc3f404ce195ac3ef708fa8bff0b8c396b2f629925991e957ad046dd |
|
MD5 | 537314c5d0362cfc544f5b8137620e0e |
|
BLAKE2b-256 | a8d829cd96946781bafa6b52b0f14f39c001ef9a4788e247c947fd2c8a9ce936 |
File details
Details for the file openfaker-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: openfaker-0.0.1-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37b89e69eb942571747ba69e4a8cad4f5206ab59627c569083df859d3d041390 |
|
MD5 | c131dc54d973da81dc13ce7874d0f254 |
|
BLAKE2b-256 | d47c8e9c1afd1795e7fd3a9c970aee4d986e5582c86e8a3b72b0192360eae2f6 |