{"id":15773892,"url":"https://github.com/edde746/random-ip-generator","last_synced_at":"2025-03-14T05:32:12.008Z","repository":{"id":147779605,"uuid":"619049146","full_name":"edde746/random-ip-generator","owner":"edde746","description":"Python package to randomly generate IP by country","archived":false,"fork":false,"pushed_at":"2023-04-09T17:38:08.000Z","size":1938,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-11T16:11:56.303Z","etag":null,"topics":["data-generator","ip-address","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/edde746.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-03-26T05:25:51.000Z","updated_at":"2023-11-06T05:18:33.000Z","dependencies_parsed_at":"2023-05-27T12:15:09.021Z","dependency_job_id":null,"html_url":"https://github.com/edde746/random-ip-generator","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/edde746%2Frandom-ip-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edde746%2Frandom-ip-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edde746%2Frandom-ip-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edde746%2Frandom-ip-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edde746","download_url":"https://codeload.github.com/edde746/random-ip-generator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243532517,"owners_count":20306151,"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-generator","ip-address","python"],"created_at":"2024-10-04T16:03:59.901Z","updated_at":"2025-03-14T05:32:11.177Z","avatar_url":"https://github.com/edde746.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Random IP Generator\n\nRandom IP Generator is a Python package that generates a random IP address for a given country code. It uses the `IP2LOCATION-LITE-DB1.CSV` file as a source for IP ranges per country.\n\n## Installation\nYou can install the package via pip:\n\n```bash\npip install random-ip-generator\n```\n\n## Usage\nAfter installing the package, you can use the `random_ip_for_country` function in your Python script to generate a random IP address for a given country.\n\n```python\nfrom random_ip_generator import random_ip_for_country\n\ncountry_code = \"US\"\nrandom_ip = random_ip_for_country(country_code)\nprint(f\"Random IP for {country_code}: {random_ip}\")\n```\n\n## Prerequisites\nThis package requires the `ipaddress` package. It will be installed automatically if you install `random-ip-generator` via pip.\n\n## Attribution\n\nThis site or product includes IP2Location LITE data available from [https://lite.ip2location.com](https://lite.ip2location.com).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedde746%2Frandom-ip-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedde746%2Frandom-ip-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedde746%2Frandom-ip-generator/lists"}