Skip to main content

RCOC - Random Country Or City name generator

Project description

PyPI version Downloads GitHubIssues

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

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


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 hashes)

Uploaded Source

Built Distribution

rcoc-1.1.16-py3-none-any.whl (806.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page