{"id":13516471,"url":"https://github.com/thisisqubika/fakeit","last_synced_at":"2026-01-17T11:05:36.866Z","repository":{"id":51783860,"uuid":"79579060","full_name":"thisisqubika/fakeit","owner":"thisisqubika","description":"The Kotlin fake data generator library!","archived":false,"fork":false,"pushed_at":"2021-05-10T01:35:37.000Z","size":728,"stargazers_count":537,"open_issues_count":18,"forks_count":49,"subscribers_count":24,"default_branch":"master","last_synced_at":"2024-12-06T08:03:14.833Z","etag":null,"topics":["android","android-library","data-faker","fakeit","inactive-repo","kotlin","library","open-source","test-driven-development","tests","utility","utility-library"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/thisisqubika.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-20T17:06:44.000Z","updated_at":"2024-11-29T10:27:44.000Z","dependencies_parsed_at":"2022-08-23T07:40:44.016Z","dependency_job_id":null,"html_url":"https://github.com/thisisqubika/fakeit","commit_stats":null,"previous_names":["thisisqubika/fakeit","moove-it/fakeit"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisisqubika%2Ffakeit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisisqubika%2Ffakeit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisisqubika%2Ffakeit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisisqubika%2Ffakeit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thisisqubika","download_url":"https://codeload.github.com/thisisqubika/fakeit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246429459,"owners_count":20775805,"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":["android","android-library","data-faker","fakeit","inactive-repo","kotlin","library","open-source","test-driven-development","tests","utility","utility-library"],"created_at":"2024-08-01T05:01:22.535Z","updated_at":"2026-01-17T11:05:36.854Z","avatar_url":"https://github.com/thisisqubika.png","language":"Kotlin","funding_links":[],"categories":["开源库"],"sub_categories":["工具"],"readme":"Fakeit\n========\n\n![alt text](https://github.com/moove-it/fakeit/blob/master/banner.png \"Fakeit Github banner\")\n\nThis library is a port of the Ruby gem [Faker](https://github.com/stympy/faker). It generates realistic fake data — like names, emails, dates, countries — for a variety of scenarios, including automated testing and database population.\n\nThe library was originally created for Android projects, but it can be used in any Java or Kotlin project.\n\nDownload\n--------\n\nYou can use either Maven:\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.github.moove-it\u003c/groupId\u003e\n  \u003cartifactId\u003efakeit\u003c/artifactId\u003e\n  \u003cversion\u003ev0.5\u003c/version\u003e\n\u003c/dependency\u003e\n```\nor Gradle:\n```groovy\n// In your project's build.gradle\nallprojects {\n  repositories {\n    maven { url 'https://jitpack.io' }\n  }\n}\n\n//In your module's build.gradle\ndependencies {\n  compile 'com.github.moove-it:fakeit:v0.5'\n}\n```\n\nBasic Usage\n--------\n\nFakeit can be used in Java and Kotlin applications - no Android context needed!\n\nRun the sample app to check all the available models and generate some random values.\n\nFirst you need to initialize Fakeit:\n\n```java\n// Default locale is en for english data.\nFakeit.init()\n\n// You can also pass a Locale or a String locale to change the language.\n// See supported languages below.\nFakeit.init(locale)\n```\n\nThen, you need to import the module into each file where it will be used with:\n```java\nimport com.mooveit.library.Fakeit;\n```\n\nFinally, generate fake data like this:\n\n```java\nFakeit.name().lastName()\nFakeit.business().type()\nFakeit.address().city()\nFakeit.card().name()\n```\n\nSupported Data Models\n--------\n\n- Address\n- Ancient\n- App\n- Artist\n- Bank\n- Beer\n- Book\n- Business\n- Card\n- Cat\n- Chuck Norris\n- Code\n- Company\n- Compass\n- Date\n- Demographic\n- Educator\n- Esport\n- File\n- Food\n- Friends\n- Game of Thrones\n- Hacker\n- Harry Potter\n- Hey Arnold\n- Hipster\n- Internet\n- Job\n- Lord of the Rings\n- Lorem\n- Music\n- Name\n- Phone number\n- Pokemon\n- Rick and Morty\n- Rock band\n\nSupported Languages\n--------\n\n- Catalan - Catalunya (ca-CAT)\n- Catalan (ca)\n- Danish - Denmark (da-DK)\n- Deutsch - Österreich (de-AT)\n- Deutsch - Schweiz (de-CH)\n- Deutsch (de)\n- English - Australia (en-AU)\n- English - Australian Slang (en-au-ocker)\n- English - Phonetic Nonsense from The Muppet's Swedish Chef (en-BORK)\n- English - Canada (en-CA)\n- English - Great Britain (en-GB)\n- English - India (en-IND)\n- English - Nepal (en-NEP)\n- English - Nigeria (en-NG)\n- English - New Zealand (en-NZ)\n- English - Pakistan (en-PAK)\n- English - Singapore (en-SG)\n- English - Uganda (en-UG)\n- English - United States (en-US)\n- English - South Africa (en-ZA)\n- English (en)\n- Spanish - Mexico (es-MX)\n- Spanish (es)\n- Farsi (fa)\n- Finnish - Finland (fi-FI)\n- French (fr)\n- Hebrew (he)\n- Indonesian (id)\n- Italian (it)\n- Japenese (ja)\n- Korean (ko)\n- Norwegian - Norway (nb-NO)\n- Netherlands (nl)\n- Polish (pl)\n- Portuguese - Brazil (pt-BR)\n- Portuguese (pt)\n- Russian (ru)\n- Slovak (sk)\n- Swedish (sv)\n- Turkish (tr)\n- Ukranian (uk)\n- Vietnamese (vi)\n- Chinese - China (zh-CN)\n- Chinese - Taiwan (zh-TW)\n\nUnique Values\n--------\n\nYou can also use Fakeit to generate unique values:\n\n```java\nFakeit.getUniqueValue()\n```\n\nQuestions and Issues\n--------\n\nFor bug reports and feature requests, use [Github issue tracker](https://github.com/moove-it/fakeit/issues)\n\nContributing\n--------\n\nSee the [contribution guide](CONTRIBUTING.md).\n\nLicense\n--------\n\n[MIT](https://github.com/moove-it/fakeit/blob/master/LICENSE)\n\nFakeit is maintained by © [Moove-it](http://www.moove-it.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthisisqubika%2Ffakeit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthisisqubika%2Ffakeit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthisisqubika%2Ffakeit/lists"}