Demography Extension (Python)
Prerequisites
This project uses uv to manage dependencies, follow the uv installation instructions if you don't have it installed already.
If you do, check that you are running a recent version with uv self update
.
Clone
Clone the github repository:
git clone https://github.com/gloodata/ext-py-demography.git
cd ext-py-demography
Run
uv run demography.py --port 8888
Register
Register the extension in Gloodata, the value depends on the host and port
where the extension is running, for example if it's running in the same
machine as Gloodata on port 8888
register it with
http://localhost:8888
, change host and port accordingly.
Learn more about how to register an extension here: How to Register a Gloodata Extension.
Try
Here are some prompts you can try:
- World fertility
- World fertility for the earliest year
- World fertility for the latest year
- World fertility in 2020
- World fertility ten years ago
- Japan's demographic pyramid
- Demography for mexico in 2010
- Demography over time for Germany
- Information about Spain
- Country table
Learn More
Check the project's README for more information, if you find any problem open an issue in the project's issue tracker.