{"id":19766247,"url":"https://github.com/akaliutau/datum","last_synced_at":"2025-02-28T04:16:05.787Z","repository":{"id":120056001,"uuid":"347989373","full_name":"akaliutau/datum","owner":"akaliutau","description":"Identity generator to generate POJOs for testing","archived":false,"fork":false,"pushed_at":"2021-03-25T12:32:32.000Z","size":161,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-11T00:13:32.955Z","etag":null,"topics":["data-generation","faker-generator","integration-testing","java"],"latest_commit_sha":null,"homepage":"","language":"Java","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/akaliutau.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":"2021-03-15T13:53:52.000Z","updated_at":"2021-03-25T12:32:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"a90b0d27-8962-481d-818b-22dd4781c441","html_url":"https://github.com/akaliutau/datum","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/akaliutau%2Fdatum","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akaliutau%2Fdatum/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akaliutau%2Fdatum/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akaliutau%2Fdatum/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akaliutau","download_url":"https://codeload.github.com/akaliutau/datum/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241099625,"owners_count":19909578,"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-generation","faker-generator","integration-testing","java"],"created_at":"2024-11-12T04:23:32.459Z","updated_at":"2025-02-28T04:16:05.763Z","avatar_url":"https://github.com/akaliutau.png","language":"Java","readme":"About\n=========\n\nThis is the library for fake records generation (with main aim to provide sample data for database and ML integration testing, etc)\n\nIn many cases it is crucial to provide accurate data for integration testing, as quite often the input data is validated before further processing.\n\nFor example, IBAN bank account number can be validated against checksum, length and format  \n\nIn modern distributed systems the geographical location in requested json can trigger the processing of this request on very specific node in cluster, \nas routes are quite often are federated on the basis of location, and so on.\n\nOverview\n=========\n\nThe project consists from two modules, ``code`` and ``datasource``\n\nCore module includes low-level functionality, and basic data types.\n\nThe main features of core library (implemented through major classes from core module):\n\n* Fully customizable data generator classes\n\n* High-performance and memory-effective engine\n\n* Accurate, realistic and human-readable generated data (currently US and UK - styled addresses are supported, different generators for surnames, and more)\n\n\n\nThe second module, ```datasource```, is a higher level wrapper which uses core functionality and introduces the concept of Random Datasource, which can be used to build a complex POJOs.\n\nMain features:\n\n\n* Annotation-based engine with ability to inject fake data source\n\n* Rich configuration via annotations or through java code\n\n\nInstallation\n=============\n\n```\nmvn clean install\n```\n\nExamples of generated data\n===========================\n\nGeographical location (state, city, zip code and location are real, the address line is generated)\n\n```\n[\n  {\n    \"address\": \"146 Alhambra Street\",\n    \"country\": \"us\",\n    \"state\": \"ID\",\n    \"city\": \"Boise\",\n    \"zipCode\": 83709,\n    \"location\": {\n      \"latitude\": 43.54,\n      \"longitude\": -116.29\n    }\n  },\n  {\n    \"address\": \"183 Carnival Boulevard\",\n    \"country\": \"us\",\n    \"state\": \"CA\",\n    \"city\": \"Visalia\",\n    \"zipCode\": 93277,\n    \"location\": {\n      \"latitude\": 36.29,\n      \"longitude\": -119.38\n    }\n  }\n]\n```\n\nPersonal data\n\n```\n[\n  {\n    \"uid\": \"07255d42-84f2-4cc3-8514-5a226a5441c4\",\n    \"firstName\": \"Clayton\",\n    \"lastName\": \"Westanerick\",\n    \"gender\": \"MALE\",\n    \"age\": 40,\n    \"email\": \"qoju634@gmail.com\",\n    \"creditCard\": {\n      \"type\": \"VISA\",\n      \"number\": \"4071301235725643\",\n      \"securityCode\": \"107\",\n      \"expdate\": \"01/22\"\n    }\n  },\n  {\n    \"uid\": \"0845d3ef-2400-40cd-a5ba-8706d8f68433\",\n    \"firstName\": \"Miriam\",\n    \"lastName\": \"Arefield\",\n    \"gender\": \"FEMALE\",\n    \"age\": 63,\n    \"email\": \"guxi155@gmail.com\",\n    \"creditCard\": {\n      \"type\": \"MASTERCARD\",\n      \"number\": \"52707401119856489\",\n      \"securityCode\": \"360\",\n      \"expdate\": \"04/21\"\n    }\n  }\n]\n```\n\n# Example of using\n\nSee the org.datum.example.SimpleDemo class in datasource module and unit tests\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakaliutau%2Fdatum","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakaliutau%2Fdatum","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakaliutau%2Fdatum/lists"}