{"id":15144396,"url":"https://github.com/josnin/generate_combination","last_synced_at":"2025-10-23T22:30:37.633Z","repository":{"id":244083933,"uuid":"814188729","full_name":"josnin/generate_combination","owner":"josnin","description":"Generate CSV All possible combinations","archived":false,"fork":false,"pushed_at":"2024-06-13T13:25:40.000Z","size":15,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-09-27T10:41:22.232Z","etag":null,"topics":["data-driven-tests","python","robotframework","test-automation"],"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/josnin.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":"2024-06-12T14:05:26.000Z","updated_at":"2024-08-22T21:34:47.000Z","dependencies_parsed_at":"2024-06-13T16:02:49.376Z","dependency_job_id":"be4aebe0-b268-4377-87d8-e2e3b0cf52be","html_url":"https://github.com/josnin/generate_combination","commit_stats":null,"previous_names":["josnin/test_data_generator","josnin/generate_combination"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josnin%2Fgenerate_combination","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josnin%2Fgenerate_combination/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josnin%2Fgenerate_combination/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josnin%2Fgenerate_combination/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/josnin","download_url":"https://codeload.github.com/josnin/generate_combination/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219867717,"owners_count":16555814,"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-driven-tests","python","robotframework","test-automation"],"created_at":"2024-09-26T10:41:07.426Z","updated_at":"2025-10-23T22:30:32.364Z","avatar_url":"https://github.com/josnin.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Generate Combination\n\nThis Python script generates test data combinations based on predefined lists of values for each column. It can be useful for generating test data for automated testing, data analysis, or any other purposes where sample data is needed.\n\n## Features\n\n- Generates all possible combinations of values for the specified columns.\n- Supports custom lists of values for each column.\n- Outputs the generated test data to a CSV file.\n\n## Usage\n\n1. Clone the repository to your local machine:\n\n\n2. Navigate to the directory containing the script and configuration file:\n\n   ```bash\n     cd ~/generate_combination\n   ```\n\n\n4. Customize the `config.json` file to specify the columns and lists of values for each data type.\n\n5. Run the script using the following command:\n\n```python\npython generate_combination.py config.json\n```\n\n\nReplace `config.json` with the path to your customized configuration file.\n\n5. The script will generate test data combinations based on the specified configuration and save the output to a CSV file.\n\n## Configuration\n\nThe `config.json` file contains the following parameters:\n\n- **parameters**: Dictionary specifying custom lists of values for each column. Each key is a column name, and the corresponding value is a list of predefined values.\n- **csv_path**: Path to the output CSV file where the generated test data will be saved.\n\n## Example\n\n```json\n{\n \"parameters\": {\n     \"Name\": [\"John\", \"Alice\", \"Bob\"],\n     \"Age\": [0, 4, 100],\n     \"Height\": [1.2, 3.2, 4.5]\n },\n \"csv_path\": \"test_data.csv\"\n}\n```\nThis configuration will generate test data combinations for the Name, Age, and Height columns using the specified lists of values.\n\n\n## test_data.csv\n```csv\nName,Age,Height\nJohn,0,1.2\nJohn,0,3.2\nJohn,0,4.5\nJohn,4,1.2\nJohn,4,3.2\nJohn,4,4.5\nJohn,100,1.2\nJohn,100,3.2\nJohn,100,4.5\nAlice,0,1.2\nAlice,0,3.2\nAlice,0,4.5\nAlice,4,1.2\nAlice,4,3.2\nAlice,4,4.5\nAlice,100,1.2\nAlice,100,3.2\nAlice,100,4.5\nBob,0,1.2\nBob,0,3.2\nBob,0,4.5\nBob,4,1.2\nBob,4,3.2\nBob,4,4.5\nBob,100,1.2\nBob,100,3.2\nBob,100,4.5\n\n```\n\n## Help\n\nNeed help? Open an issue in: [ISSUES](https://github.com/josnin/generate_combination/issues)\n\n\n## Contributing\nWant to improve and add feature? Fork the repo, add your changes and send a pull request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosnin%2Fgenerate_combination","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjosnin%2Fgenerate_combination","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosnin%2Fgenerate_combination/lists"}