Is a Python Class than query the Fedora Account System and get Geographical data from groups and Fedora ASK
Find a file
2023-07-30 13:26:45 -06:00
doc/img Remove depreciated method ask_byCountry 2020-09-15 21:26:38 +01:00
.gitignore Migrating the plot_world2 method to the new Plotty API 2020-08-06 21:17:39 -05:00
fedora_all_example.py Migrating the plot_world2 method to the new Plotty API 2020-08-06 21:17:39 -05:00
fedora_join_example.py Migrating the plot_world2 method to the new Plotty API 2020-08-06 21:17:39 -05:00
geofp.py Remove depreciated method ask_byCountry 2020-09-15 21:26:38 +01:00
geofp_test.py Remove depreciated method ask_byCountry 2020-09-15 21:26:38 +01:00
myconfig.cfg.example adding config file example 2017-04-20 20:08:40 -05:00
README.md Remove depreciated method ask_byCountry 2020-09-15 21:26:38 +01:00
requirements.txt Plotly maps added 2017-05-02 09:55:01 -05:00
verify-20230725 just a file for validation, wil be removed 2023-07-30 13:26:45 -06:00

geofp

GEOFP is a Python Class that queries the Fedora Account System and gets geographical data from groups in Fedora ASK.

Requirements

Python 3

pip3 - comes with Python 3

Virtual Environment (pip3 install virtualenv)

Set-up

To set-up a new virtual environment, run virtualenv geofp

Mac OS / Linux

Enter source geofp/bin/activate to activate virtual environment.

Windows

geofp\Scripts\activate

Enter the cmd deactivate whenever you want to exit virtual environment.

While in projects root directory, run pip3 install -r requirements.txt. If you get an error regarding fedora, run pip3 install python-fedora.

It's recommended that you run the program with jupyter-notebook to be able to view the maps: pip3 install jupyter

Create a file name myconfig.cfg. Copy the content of myconfig.cfg.example and paste in myconfig.cfg. Enter your FAS credentials in the file.

In your terminal, run enter jupyter notebook. A new window should open in your browser at http://localhost:8888

For samples, open a new terminal in the jupyter web app. Run python fedora_all_example.py to see a plot map and heat map of all active users in the year 2020. sample-plot-fedorians

python fedora_join_example.py to see an example plot and heat map of Fedora Join team. sample-plot-fedorians

ToDos:

  • Error Handling