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

Uploaded Source

Built Distribution

rcoc-1.1.11-py3-none-any.whl (1.6 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rcoc-1.1.11.tar.gz
  • Upload date:
  • Size: 3.0 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.11.tar.gz
Algorithm Hash digest
SHA256 39b489bbd79a317aedd41a28ae906d94c5c154c354943bfc54fabb17a15daae5
MD5 d8885dde37d867238d580f6a62c80705
BLAKE2b-256 914880e31d7d1e1b62c3a1b5ddda9d689ae8c9d42ac1b321a7abb75df2eb761c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rcoc-1.1.11-py3-none-any.whl
  • Upload date:
  • Size: 1.6 MB
  • 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.11-py3-none-any.whl
Algorithm Hash digest
SHA256 6d13797e7aeb73619dab1681347f4da3ab00145eba4846f014317ba04d2d1d88
MD5 a03d31759a02800ae3d362d2579d78b3
BLAKE2b-256 8b27d8eb332a744fbb24e0c208e0bc73b5ac0c2a29fb70be11d6bd39624d3595

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