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.
- Download and install Python.
- 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 | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file worldometers.py-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: worldometers.py-1.0.1-py3-none-any.whl
- Upload date:
- Size: 2.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.3.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5fbbba8fb1f7bbb6e04767dc805f60e9f1cb180f41b2833672c2220f011c5e35 |
|
MD5 | a091c0e528b672a66cf12f8569d12ac1 |
|
BLAKE2b-256 | 6653891e12bd43f3c33408e53a0cab7107ba91fdbf77fb023b1bf227d9ae68e1 |