Skip to content

A simple script to extract statistics from extended data in Decidim user table

License

Notifications You must be signed in to change notification settings

digidemlab/decidim-export-extended-data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Export extended data

This little script can be used to extract extended data from Decidim's decidim_users column and export flat tables with statistics to Excel.

It can be useful when gathering extended data through modules such as decidim-module-extended_socio_demographic_authorization_handler or decidim-module-extra_user_fields.

Install

pip install -r requirements.txt

Use

Export the required data from your Decidim instance's database with the following command:

SELECT type, extended_data FROM decidim_users;

Export the file to CSV as decidim_users.csv and put it in the same folder as the script.

Then just run:

python create_statistics.py

In the same folder, an excel file named statistics.xlsx will be created with one tab per category of extended data.

LICENSE

Feel free to reuse this code, it is published under AGPLv3.

About

A simple script to extract statistics from extended data in Decidim user table

Topics

Resources

License

Stars

Watchers

Forks

Languages