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

Uploaded Source

Built Distribution

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

Uploaded Python 3

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

Hashes for rcoc-1.1.16.tar.gz
Algorithm Hash digest
SHA256 85f914614c82a5c012ae46200edc2922bf111ea7cd6b1c5505fa3d6f44637b31
MD5 22286c537cf7f08709b16bd1f54efd4e
BLAKE2b-256 6d442dd6528eca7e7107b1eac45d1d9262c75e774dc0cdfce0ca61a141f74afa

See more details on using hashes here.

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

Hashes for rcoc-1.1.16-py3-none-any.whl
Algorithm Hash digest
SHA256 84876c3780da0f372bc63ad723179ccd7c4f39d2ae27e1f439e03c4158244813
MD5 af658c024f8c2088c8647d729e862548
BLAKE2b-256 db7ed69f940776a2fe903596978bdf156998b2d8f09b4afc22559ccc954a7914

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