{"id":16108335,"url":"https://github.com/zh-plus/faker-openai","last_synced_at":"2025-03-18T09:30:26.650Z","repository":{"id":163433754,"uuid":"638907746","full_name":"zh-plus/faker-openai","owner":"zh-plus","description":"Generate fake data with OpenAI's GPT-3 API.","archived":false,"fork":false,"pushed_at":"2023-05-11T10:46:33.000Z","size":9,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-13T09:52:57.975Z","etag":null,"topics":["data","fake","fake-data","fake-data-generator","faker","openai-api","python","test-data","test-data-generator","testing"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zh-plus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-10T11:08:04.000Z","updated_at":"2024-04-21T18:10:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"393b4da3-d88c-48b5-b10c-0a8c2518b6c0","html_url":"https://github.com/zh-plus/faker-openai","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zh-plus%2Ffaker-openai","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zh-plus%2Ffaker-openai/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zh-plus%2Ffaker-openai/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zh-plus%2Ffaker-openai/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zh-plus","download_url":"https://codeload.github.com/zh-plus/faker-openai/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243910666,"owners_count":20367546,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["data","fake","fake-data","fake-data-generator","faker","openai-api","python","test-data","test-data-generator","testing"],"created_at":"2024-10-09T19:26:28.201Z","updated_at":"2025-03-18T09:30:26.638Z","avatar_url":"https://github.com/zh-plus.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenFaker\n\n*OpenFaker* is a Python package that utilizes OpenAI's GPT series model to generate fake data.\n\n**This new project is rapidly underway, and we welcome any issues or pull requests.**\n\n## Basic Usage\n\nInstall with pip:\n\n```shell\npip install openfaker\n```\n\nTo generate data, create and initialize a faker generator using the `faker.Faker()` method. Access properties named after the type of data you want to generate.\n\n```python\nfrom openfaker import Faker\nfrom openfaker.utils import setup_openai\n\nsetup_openai('\u003capi-key\u003e')  # Get your API key from https://platform.openai.com/account/api-keys\n\nfaker = Faker()\nfaker.name()\n# 'John Doe'\n\nfaker.address(2)\n# ['426 Jordy Lodge', 'Cartwrightshire, SC 88120-6700']\n```\n\n## Todo\n\n- Add basic faker data types (reference to [faker-js](https://github.com/faker-js/faker) and [faker-python](https://github.com/joke2k/faker))\n    - [ ] Fine-grained address (city, country, street, etc.)\n    - [ ] Fine-grained name (first name, last name, job, etc.)\n    - [ ] Color\n    - [ ] Company\n    - [ ] Internet\n    - [ ] Image\n- [ ] Store commonly used fake data locally to avoid calling the OpenAI API for small amounts of data.\n- [ ] Test the stability of the prompt.\n\n## Credits\n\n- https://github.com/faker-js/faker\n- https://github.com/joke2k/faker\n- https://github.com/openai/openai-python\n- https://github.com/flyingcircusio/pycountry\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzh-plus%2Ffaker-openai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzh-plus%2Ffaker-openai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzh-plus%2Ffaker-openai/lists"}