[![PyPI version](https://badge.fury.io/py/rcoc.svg)](https://badge.fury.io/py/rcoc)
[![Downloads](https://static.pepy.tech/personalized-badge/rcoc?period=total&units=international_system&left_color=grey&right_color=orange&left_text=Downloads)](https://pepy.tech/project/rcoc)
[![GitHubIssues](https://img.shields.io/badge/issue_tracking-github-blue.svg)](https://github.com/touhf/rcoc/issues)
rcoc - Random Country or City
=======================================================================================
Simple script for
1. generating random city name (any country)
2. generating random country name
3. generating random city from of country
4. generating random location (country and city)
### usage
```python
import rcoc
print("Random city: ", rcoc.get_random_city())
rand_country = rcoc.get_random_country()
print("\nRandom country: ", rand_country)
print("Random {0} city: {1}".format(rand_country, rcoc.get_random_city_by_country(rand_country)))
print("\nRandom location: ", rcoc.get_random_location())
```
### output example
```
Random city: Gagliano Aterno
Random country: Bolivia
Random Bolivia city: Reyes
Random location: Annecy-le-Vieux, France
```
Getting list of all countries as list:
```python
all_countries = rcoc.get_all_countries()
```
Raw data
{
"_id": null,
"home_page": "https://github.com/touhf/rcoc",
"name": "rcoc",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "country,city,generator",
"author": "touhf",
"author_email": "tobytubar@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/6d/44/2dd6528eca7e7107b1eac45d1d9262c75e774dc0cdfce0ca61a141f74afa/rcoc-1.1.16.tar.gz",
"platform": null,
"description": "[![PyPI version](https://badge.fury.io/py/rcoc.svg)](https://badge.fury.io/py/rcoc)\n[![Downloads](https://static.pepy.tech/personalized-badge/rcoc?period=total&units=international_system&left_color=grey&right_color=orange&left_text=Downloads)](https://pepy.tech/project/rcoc)\n[![GitHubIssues](https://img.shields.io/badge/issue_tracking-github-blue.svg)](https://github.com/touhf/rcoc/issues)\n\nrcoc - Random Country or City\n=======================================================================================\nSimple script for\n1. generating random city name (any country)\n2. generating random country name\n3. generating random city from of country\n4. generating random location (country and city)\n### usage\n```python\nimport rcoc\n\nprint(\"Random city: \", rcoc.get_random_city())\n\nrand_country = rcoc.get_random_country()\nprint(\"\\nRandom country: \", rand_country)\nprint(\"Random {0} city: {1}\".format(rand_country, rcoc.get_random_city_by_country(rand_country)))\n\nprint(\"\\nRandom location: \", rcoc.get_random_location())\n```\n### output example\n```\nRandom city: Gagliano Aterno\n\nRandom country: Bolivia\nRandom Bolivia city: Reyes\n\nRandom location: Annecy-le-Vieux, France\n```\nGetting list of all countries as list:\n```python\nall_countries = rcoc.get_all_countries()\n```\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "RCOC - Random Country Or City name generator",
"version": "1.1.16",
"split_keywords": [
"country",
"city",
"generator"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "db7ed69f940776a2fe903596978bdf156998b2d8f09b4afc22559ccc954a7914",
"md5": "af658c024f8c2088c8647d729e862548",
"sha256": "84876c3780da0f372bc63ad723179ccd7c4f39d2ae27e1f439e03c4158244813"
},
"downloads": -1,
"filename": "rcoc-1.1.16-py3-none-any.whl",
"has_sig": false,
"md5_digest": "af658c024f8c2088c8647d729e862548",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 806691,
"upload_time": "2023-01-29T05:43:01",
"upload_time_iso_8601": "2023-01-29T05:43:01.341718Z",
"url": "https://files.pythonhosted.org/packages/db/7e/d69f940776a2fe903596978bdf156998b2d8f09b4afc22559ccc954a7914/rcoc-1.1.16-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "6d442dd6528eca7e7107b1eac45d1d9262c75e774dc0cdfce0ca61a141f74afa",
"md5": "22286c537cf7f08709b16bd1f54efd4e",
"sha256": "85f914614c82a5c012ae46200edc2922bf111ea7cd6b1c5505fa3d6f44637b31"
},
"downloads": -1,
"filename": "rcoc-1.1.16.tar.gz",
"has_sig": false,
"md5_digest": "22286c537cf7f08709b16bd1f54efd4e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 796294,
"upload_time": "2023-01-29T05:43:04",
"upload_time_iso_8601": "2023-01-29T05:43:04.228359Z",
"url": "https://files.pythonhosted.org/packages/6d/44/2dd6528eca7e7107b1eac45d1d9262c75e774dc0cdfce0ca61a141f74afa/rcoc-1.1.16.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-01-29 05:43:04",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "touhf",
"github_project": "rcoc",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "rcoc"
}