{"id":18875579,"url":"https://github.com/yzfly/aifaker","last_synced_at":"2026-02-08T22:33:00.361Z","repository":{"id":249466489,"uuid":"831598581","full_name":"yzfly/aifaker","owner":"yzfly","description":"Generate fake data for various purposes, powered by AI. AI functions, AI Code, Software 2.0","archived":false,"fork":false,"pushed_at":"2024-07-22T00:45:41.000Z","size":5,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-13T12:00:22.634Z","etag":null,"topics":["ai","aicodes","aifunctions","fake-api","faker-generator","faker-provider","llm"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yzfly.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2024-07-21T03:46:48.000Z","updated_at":"2024-07-31T07:02:56.000Z","dependencies_parsed_at":"2024-07-21T04:39:15.632Z","dependency_job_id":"4fe68b5c-ca88-42eb-a71b-14b1ac34f7ac","html_url":"https://github.com/yzfly/aifaker","commit_stats":null,"previous_names":["yzfly/aifaker"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yzfly/aifaker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yzfly%2Faifaker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yzfly%2Faifaker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yzfly%2Faifaker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yzfly%2Faifaker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yzfly","download_url":"https://codeload.github.com/yzfly/aifaker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yzfly%2Faifaker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29247756,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-08T21:42:34.334Z","status":"ssl_error","status_checked_at":"2026-02-08T21:41:38.468Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["ai","aicodes","aifunctions","fake-api","faker-generator","faker-provider","llm"],"created_at":"2024-11-08T06:08:10.742Z","updated_at":"2026-02-08T22:33:00.341Z","avatar_url":"https://github.com/yzfly.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# AiFaker\n\nAiFaker is a Python library that uses the LLM API to generate fake data for various purposes. It provides a simple and easy-to-use interface for generating fake names, birthdays, addresses, emails, and more.\n\n## Suggestions:\nYou can visit [siliconflow](https://siliconflow.cn/zh-cn/pricing) for free LLM API key and base URL, and you can use the Qwen/Qwen2-7B-Instruct model for free.\n \n## 🚀 Quick Start\n\n### 📦 Installation\n\n```bash\npip install aifaker\n```\n\n### Basic Usage\n```\nimport os\nfrom aifaker import AiFaker\n\n# set the environment variables\nos.environ[\"LLM_API_KEY\"] = \"sk-xxx\"  # replace with your API key\nos.environ[\"LLM_BASE_URL\"] = \"https://api.siliconflow.cn/v1\" # replace with your base URL\nos.environ[\"LLM_MODEL_NAME\"] = \"Qwen/Qwen2-7B-Instruct\" # replace with your model name\n\n# create an instance of the AiFaker class\nfaker = AiFaker(country=\"zh\") # set the country to \"en\" for English, \"cn\" for Chinese\n\n# generate a fake name\nprint(faker.name())\n\n# generate a fake birthday\nprint(faker.birthday())\n\n# generate a fake address\nprint(faker.address())\n\n# generate a fake email\nprint(faker.email())\n\n# generate a fake person\nprint(faker.person())\n\n# generate a fake phone number\nprint(faker.phone_number())\n\n# generate a fake address\nprint(faker.address())\n\n# generate anything you want just by passing in the data description\nprint(faker.meta_fake(data=\"美国地址\"))\n\n# generate anything you want just by passing in the data description and example\nprint(faker.meta_fake(data=\"美国手机号\", example=\"123-456-7890\"))\n```\n\nThe results should be like:\n```\n张三\n1985-12-15\n上海市徐汇区漕溪北路595号\nexample_zh_account@sample.com\n{'name': '张伟', 'birthday': '2000-03-15', 'address': '上海市浦东新区陆家嘴环路1088号', 'phone_number': '13612345678', 'email': 'icebergmailuser@gmail.com', 'id_card': '310107199005017276', 'bank_card': '6222020282119830358'}\n13812345678\n北京市海淀区知春路甲45号量子银座18层\n123 Main St, Anytown, USA, 12345\n135-432-1098\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyzfly%2Faifaker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyzfly%2Faifaker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyzfly%2Faifaker/lists"}