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.16.tar.gz
(796.3 kB
view details)
Built Distribution
rcoc-1.1.16-py3-none-any.whl
(806.7 kB
view details)
File details
Details for the file rcoc-1.1.16.tar.gz
.
File metadata
- Download URL: rcoc-1.1.16.tar.gz
- Upload date:
- Size: 796.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85f914614c82a5c012ae46200edc2922bf111ea7cd6b1c5505fa3d6f44637b31 |
|
MD5 | 22286c537cf7f08709b16bd1f54efd4e |
|
BLAKE2b-256 | 6d442dd6528eca7e7107b1eac45d1d9262c75e774dc0cdfce0ca61a141f74afa |
File details
Details for the file rcoc-1.1.16-py3-none-any.whl
.
File metadata
- Download URL: rcoc-1.1.16-py3-none-any.whl
- Upload date:
- Size: 806.7 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 | 84876c3780da0f372bc63ad723179ccd7c4f39d2ae27e1f439e03c4158244813 |
|
MD5 | af658c024f8c2088c8647d729e862548 |
|
BLAKE2b-256 | db7ed69f940776a2fe903596978bdf156998b2d8f09b4afc22559ccc954a7914 |