Releases: matheusfelipeog/worldometer
Releases · matheusfelipeog/worldometer
Worldometer v2.0.0
Added
- New module structure (#22)
- new scraper module;
- new world module for public api;
- get home page counters, like in the old api, but now having a special data class;
- get population and geography data;
- set new dependencies;
- new mapped pages;
- add some tests.
- Add docstrings to the new api (#23)
- Define explicit fields in all counter dataclasses (#26)
Changed
- Reformulation of all docs (#24)
- new fully documented API;
- new package logo and icon.
- Use the new API in the old core module. This is a temporary measure until the module is completely removed. (#25)
- warn about the deprecation of the old API and indicate the use of the new one.
- Update all project metadata (#27)
- Change package manager and add action to run tests (#29)
- Support only Python
>=3.9, <3.12
(#29)
Removed
- Removed support for Python 3.7 and 3.8 (#29)
Deprecated
worldometer.core
andworldometer.api
deprecated (#25)
Fixed
Worldometer v1.0.1
Release 1.0.1
Fix error on build docs and update version from 1.0.0 to 1.0.1
Features
- Integration of readthedocs config file;
- Remove incorret title docstring of worldometer.core.
Worldometer v1.0.0
Release 1.0.0
This is first stable version of worldometer module 🎉
Features
- Now the old attribute
metrics
ofWorldometer
class is a method:
>>> from worldometer import Worldometer
>>> w = Worldometer()
>>> w.metrics()
[
7845087963,
15741371,
5676,
6608605,
2383,
9132766,
...
]
- Return dict structure in all functions of
worldometer.api
submodule:
>>> from worldometer import api
>>> api.get_metric_of(label='computers_produced_this_year')
{'computers_produced_this_year': 27760858}
>>> api.current_world_population()
{'current_world_population': 7845085923}
- Refactor all docstring in the module to make it more explicit and explanatory.
Before in worldometer.api
module:
"""
worldometer.api
---------------
Implement a simplified api of worldometer.Worldometer Class.
API usage:
>>> from worldometer import api
>>> api.current_world_population()
7845085923
>>> api.tweets_sent_today()
4539558
>>> api.get_metric_of(label='computers_produced_this_year')
27760858
More info in: github.com/matheusfelipeog/worldometer
"""
Now in worldometer.api
module:
"""
worldometer.api
---------------
Implementation of a simplified API of the worldometer module.
Here you will find all the functions available to obtain the metrics separately.
Examples
--------
>>> from worldometer import api
All worldometer.api functions use the ``get_metric_of`` function at their core.
To use it, just enter the corresponding label:
>>> api.get_metric_of(label='computers_produced_this_year')
{'computers_produced_this_year': 27760858}
There is also a simplified and self-explanatory API that provides
functions corresponding to the labels.
Autocomplete tools from the editors/IDE will help you use these
functions without having to decorate all labels:
>>> api.current_world_population()
{'current_world_population': 7845085923}
>>> api.tweets_sent_today()
{'tweets_sent_today': 4539558}
"""
- Created documentation with sphinx and hosting in readthedocs.org:
Worldometer v0.1.1
Feature:
- At times the chromium did not have enough time to open and render the content, this raised an exception. The timeout was doubled to correct this problem.
Before: timeout=15
Now: timeout=30
Worldometer v0.1.0
First published version of the Worldometer module.