RCOC - Random Country Or City name generator
Project description
rcoc - Random Country or City
Simple script for
- generating random city name (any country)
- generating random country name
- generating random city from of country
- generating random location (country and city)
usage
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:
all_countries = rcoc.get_all_countries()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rcoc-1.1.15.tar.gz
(796.2 kB
view details)
Built Distribution
rcoc-1.1.15-py3-none-any.whl
(806.6 kB
view details)
File details
Details for the file rcoc-1.1.15.tar.gz
.
File metadata
- Download URL: rcoc-1.1.15.tar.gz
- Upload date:
- Size: 796.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4077312bfc50c810540788d8cec4a14440cef0eb126131a70a02395c9a8f1dc |
|
MD5 | dc771ca168110a62dd53098f83c792b7 |
|
BLAKE2b-256 | 421411e1398acb7cf925fbfc9dce4db8ad033e7b506511c33b52d1db3e94b119 |
File details
Details for the file rcoc-1.1.15-py3-none-any.whl
.
File metadata
- Download URL: rcoc-1.1.15-py3-none-any.whl
- Upload date:
- Size: 806.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42d55569a799606767a9076d1954f4dae42f08d5f5239af9205aa6cf87a0aa9c |
|
MD5 | c17681f423354e82c388c755a0910bd2 |
|
BLAKE2b-256 | 3d28555379b587361b0ebb84c278832ac3b3e8d1bf7dd978371a49d0e7757a0a |