Skip to main content

RCOC - Random Country Or City name generator

Project description

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

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.7.tar.gz (795.1 kB view details)

Uploaded Source

Built Distribution

rcoc-1.1.7-py3-none-any.whl (806.1 kB view details)

Uploaded Python 3

File details

Details for the file rcoc-1.1.7.tar.gz.

File metadata

  • Download URL: rcoc-1.1.7.tar.gz
  • Upload date:
  • Size: 795.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for rcoc-1.1.7.tar.gz
Algorithm Hash digest
SHA256 899388d0db396b2133d3826c75f7128ac47369f3146e1ab5f1be089813c067d9
MD5 016b238deb13fb6ebca0fb7f9c1a86d8
BLAKE2b-256 33ff7017f97b7f0f21c8b2cca4996e891176bb9b995a8b7e6bc376d76c9c48af

See more details on using hashes here.

File details

Details for the file rcoc-1.1.7-py3-none-any.whl.

File metadata

  • Download URL: rcoc-1.1.7-py3-none-any.whl
  • Upload date:
  • Size: 806.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for rcoc-1.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 bc3837457c9e5d5a5458780b565671fd1f01ae290c6d99664bcfd865be2a9894
MD5 28d5410fa253e7207ef24a5a129abb51
BLAKE2b-256 a4720af0bac1b5952fb736d45400c6658e408379dc5049020c2b86d59703706a

See more details on using hashes here.

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