Skip to main content

Get real time Earth statistics related to population.

Project description

worldometers.py

Get real time Earth statistics related to population.

Parses information from countrymeters.info. Initially a test project as an introduction to Python classes but later reworked and refactored to be released to the public.


Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

  1. Download and install Python.
  2. Install worldometers.py with $ pip install worldometers.py.

Usage

Assume worldometers = Worldometers().

  • Get current world population:

        current_pop = worldometers.current_world_population()
        # Output: Integer of the order 10e9
    
  • Get births:

        births_day = worldometers.births(timescale='day')
        # Output: Integer representing number of births today.
    
        births_year= worldometers.births(timescale='year')
        # Output: Integer representing number of births in the year.
    

The code is fairly easy to understand and apply. Read worldometers.py and you should get up to speed within seconds.


Future

I've got to add a lot of stuff to this package. Keep your eyes peeled!


Authors

  • Carlos Menezes — Initial work - c-mnzs

Project details


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for worldometers.py, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size worldometers.py-1.0.1-py3-none-any.whl (2.1 kB) File type Wheel Python version py3 Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page