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


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

worldometers.py-1.0.1-py3-none-any.whl (2.1 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